Class LivingEntityUseItemEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.entity.EntityEvent
net.minecraftforge.event.entity.living.LivingEvent
net.minecraftforge.event.entity.living.LivingEntityUseItemEvent
Direct Known Subclasses:
LivingEntityUseItemEvent.Finish, LivingEntityUseItemEvent.Start, LivingEntityUseItemEvent.Stop, LivingEntityUseItemEvent.Tick

public class LivingEntityUseItemEvent extends LivingEvent
  • Field Details

    • item

      private final ItemStack item
    • duration

      private int duration
  • Constructor Details

    • LivingEntityUseItemEvent

      private LivingEntityUseItemEvent(LivingEntity entity, @Nonnull ItemStack item, int duration)
  • Method Details

    • getItem

      @Nonnull public ItemStack getItem()
    • getDuration

      public int getDuration()
    • setDuration

      public void setDuration(int duration)