Class LivingEntityUseItemEvent.Start

All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
Enclosing class:
LivingEntityUseItemEvent

public static class LivingEntityUseItemEvent.Start extends LivingEntityUseItemEvent implements net.neoforged.bus.api.ICancellableEvent
Fired when a player starts 'using' an item, typically when they hold right mouse. Examples: Drawing a bow Eating Food Drinking Potions/Milk Guarding with a sword Cancel the event, or set the duration or <= 0 to prevent it from processing.
  • Constructor Details

    • Start

      @Deprecated(since="1.21.5", forRemoval=true) public Start(net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.item.ItemStack item, int duration)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use the hand sensitive version as this version provides wrong hand information
    • Start

      public Start(net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.item.ItemStack item, net.minecraft.world.InteractionHand hand, int duration)