# Index

B C G M O P S U V
All Classes and Interfaces|All Packages|Constant Field Values

## B

BLOCK - Enum constant in enum class commoble.useitemonblockevent.api.UseItemOnBlockEvent.UsePhase
  The block's right-click-block interaction.

## C

cancelWithResult(InteractionResult) - Method in class commoble.useitemonblockevent.api.UseItemOnBlockEvent
  Cancels the use interaction (preventing the item from being used) and provides the specified result to the interaction logic instead.
commoble.useitemonblockevent.api - package commoble.useitemonblockevent.api
commoble.useitemonblockevent.internal - package commoble.useitemonblockevent.internal
commoble.useitemonblockevent.internal.mixins - package commoble.useitemonblockevent.internal.mixins

## G

getCancellationResult() - Method in class commoble.useitemonblockevent.api.UseItemOnBlockEvent
getUseOnContext() - Method in class commoble.useitemonblockevent.api.UseItemOnBlockEvent
getUsePhase() - Method in class commoble.useitemonblockevent.api.UseItemOnBlockEvent

## M

MixinCallbacks - Class in commoble.useitemonblockevent.internal
MixinCallbacks() - Constructor for class commoble.useitemonblockevent.internal.MixinCallbacks
MODID - Static variable in class commoble.useitemonblockevent.internal.UseItemOnBlockEventMod
MultiPlayerGameModeMixin - Class in commoble.useitemonblockevent.internal.mixins
MultiPlayerGameModeMixin() - Constructor for class commoble.useitemonblockevent.internal.mixins.MultiPlayerGameModeMixin

## O

onBlockUse(BlockState, Level, Player, InteractionHand, BlockHitResult) - Static method in class commoble.useitemonblockevent.internal.MixinCallbacks
onItemUseFirst(ItemStack, UseOnContext) - Static method in class commoble.useitemonblockevent.internal.MixinCallbacks
onUseItemOnBlock(ItemStack, UseOnContext) - Static method in class commoble.useitemonblockevent.internal.MixinCallbacks

## P

POST_BLOCK - Enum constant in enum class commoble.useitemonblockevent.api.UseItemOnBlockEvent.UsePhase
  The item's standard use-item-on-block interaction.
PRE_BLOCK - Enum constant in enum class commoble.useitemonblockevent.api.UseItemOnBlockEvent.UsePhase
  The item's pre-block use-item-on-block interaction (this is a forge extension and not used by vanilla items).

## S

ServerPlayerGameModeMixin - Class in commoble.useitemonblockevent.internal.mixins
ServerPlayerGameModeMixin() - Constructor for class commoble.useitemonblockevent.internal.mixins.ServerPlayerGameModeMixin

## U

UseItemOnBlockEvent - Class in commoble.useitemonblockevent.api
  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(UseOnContext, UseItemOnBlockEvent.UsePhase) - Constructor for class commoble.useitemonblockevent.api.UseItemOnBlockEvent
UseItemOnBlockEvent.UsePhase - Enum Class in commoble.useitemonblockevent.api
UseItemOnBlockEventMod - Class in commoble.useitemonblockevent.internal
UseItemOnBlockEventMod() - Constructor for class commoble.useitemonblockevent.internal.UseItemOnBlockEventMod

## V

valueOf(String) - Static method in enum class commoble.useitemonblockevent.api.UseItemOnBlockEvent.UsePhase
  Returns the enum constant of this class with the specified name.
values() - Static method in enum class commoble.useitemonblockevent.api.UseItemOnBlockEvent.UsePhase
  Returns an array containing the constants of this enum class, in the order they are declared.

B C G M O P S U V
All Classes and Interfaces|All Packages|Constant Field Values