Interface BlockEvents
public interface BlockEvents
Contains events triggered by players interact with blocks.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic interface -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Event<BlockEvents.UseItemOnCallback> Callback that runs whenBlockBehaviour.BlockStateBase.useItemOn(ItemStack, Level, Player, InteractionHand, BlockHitResult)is called.static final Event<BlockEvents.UseWithoutItemCallback> Callback that runs whenBlockBehaviour.BlockStateBase.useWithoutItem(Level, Player, BlockHitResult)is called.
-
Field Details
-
USE_ITEM_ON
Callback that runs whenBlockBehaviour.BlockStateBase.useItemOn(ItemStack, Level, Player, InteractionHand, BlockHitResult)is called. -
USE_WITHOUT_ITEM
Callback that runs whenBlockBehaviour.BlockStateBase.useWithoutItem(Level, Player, BlockHitResult)is called.
-