BlockAttackInteractionAware

public interface BlockAttackInteractionAware

Convienence interface for blocks which listen to "break interactions" (left-click).

Functions

onAttackInteraction
Link copied to clipboard
abstract boolean onAttackInteraction(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, Direction direction)
True if the block accepted the player and it should no longer be processed.

Sources

jvm source
Link copied to clipboard