Interface ItemEvents
public interface ItemEvents
Contains events triggered by players interact with item.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic interface -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Event<ItemEvents.UseCallback> Callback that runs whenItem.use(Level, Player, InteractionHand)is called withinItemStack.use(Level, Player, InteractionHand).static final Event<ItemEvents.UseOnCallback> Callback that runs whenItem.useOn(UseOnContext)is called withinItemStack.useOn(UseOnContext).
-
Field Details
-
USE_ON
Callback that runs whenItem.useOn(UseOnContext)is called withinItemStack.useOn(UseOnContext). -
USE
Callback that runs whenItem.use(Level, Player, InteractionHand)is called withinItemStack.use(Level, Player, InteractionHand).
-