Bassebombecraft

Bassebombecraft

18.5k Downloads

1.14.3 build fails with error: cannot find symbol import net.minecraft.util.EnumActionResult

Closed this issue ยท 2 comments

commented

GenericNullItem.java:23: error: cannot find symbol
import net.minecraft.util.EnumActionResult;
^

commented

Solution:

  1. 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);

  1. EnumActionResult.SUCCESS seems to be replaced by usage of ActionResultType.SUCCESS in Item.onItemUse(ItemUseContext context):
commented

Closed with commit c9181d4.