# Package commoble.useitemonblockevent.api

package commoble.useitemonblockevent.api

Class
Description
UseItemOnBlockEvent
Event that provides fine-grained control over what happens when an item is used on a block.
This event called on both the client and server threads when an item is used on a block.
Cancelling the event with `UseItemOnBlockEvent.cancelWithResult(net.minecraft.world.InteractionResult)` will prevent the item/block's use-item-on-block logic from running.
UseItemOnBlockEvent.UsePhase