1.14.3 build fails with error: cannot find symbol import net.minecraft.util.EnumActionResult
Closed this issue ยท 2 comments
GenericNullItem.java:23: error: cannot find symbol
import net.minecraft.util.EnumActionResult;
^
Solution:
- EnumActionResult.SUCCESS seems to be replaced by usage of ActionResultType.SUCCESS in Item.onItemRightClick(..):
public class Item ....
public ActionResult<ItemStack> onItemRightClick(World worldIn, PlayerEntity playerIn, Hand handIn) {
if (this.isFood()) {
ItemStack itemstack = playerIn.getHeldItem(handIn);
if (playerIn.canEat(this.getFood().canEatWhenFull())) {
playerIn.setActiveHand(handIn);
return new ActionResult<>(ActionResultType.SUCCESS, itemstack);
- EnumActionResult.SUCCESS seems to be replaced by usage of ActionResultType.SUCCESS in Item.onItemUse(ItemUseContext context):
Closed with commit c9181d4.