类 LivingEntityUseItemEvent

java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.event.entity.EntityEvent
net.neoforged.neoforge.event.entity.living.LivingEvent
net.neoforged.neoforge.event.entity.living.LivingEntityUseItemEvent
直接已知子类:
LivingEntityUseItemEvent.Finish, LivingEntityUseItemEvent.Start, LivingEntityUseItemEvent.Stop, LivingEntityUseItemEvent.Tick

public class LivingEntityUseItemEvent extends LivingEvent
  • 字段详细资料

  • 构造器详细资料

  • 方法详细资料

    • getItem

      public ItemStack getItem()
    • getDuration

      public int getDuration()
    • setDuration

      public void setDuration(int duration)
    • getHand

      public InteractionHand getHand()
      返回 the hand the entity is using the item in。
      返回:
      the hand the entity is using the item in