Class LivingEntityUseItemEvent.Finish

Enclosing class:
LivingEntityUseItemEvent

public static class LivingEntityUseItemEvent.Finish extends LivingEntityUseItemEvent
Fired after an item has fully finished being used. The item has been notified that it was used, and the item/result stacks reflect after that state. This means that when this is fired for a Potion, the potion effect has already been applied. LivingEntityUseItemEvent.item is a copy of the item BEFORE it was used. If you wish to cancel those effects, you should cancel one of the above events. The result item stack is the stack that is placed in the player's inventory in replacement of the stack that is currently being used.
  • Field Details

    • result

      private net.minecraft.world.item.ItemStack result
  • Constructor Details

    • Finish

      public Finish(net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.item.ItemStack item, int duration, net.minecraft.world.item.ItemStack result)
  • Method Details

    • getResultStack

      public net.minecraft.world.item.ItemStack getResultStack()
    • setResultStack

      public void setResultStack(net.minecraft.world.item.ItemStack result)