Event System
Hook into game events with @EventHandler. Player connections, chat, combat, and more.
Interaction Events
6InteractivelyPickupItemEvent
Cancellable
Item pickup interaction
LivingEntityUseBlockEvent
Entity used a block
PlayerInteractEvent
Cancellable
Fired when player interacts with world. Has actionType (InteractionType), itemInHand (ItemStack), targetBlock (Vector3i), targetEntity (Entity). Cancellable.
UseBlockEvent
Fired when a block is used/activated. Has Pre and Post variants. ECS event.
UseBlockEvent.Post
After block use
UseBlockEvent.Pre
Cancellable
Before block use