onAttackInteraction

abstract boolean onAttackInteraction(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, Direction direction)

Return

True if the block accepted the player and it should no longer be processed.

Sources

jvm source
Link copied to clipboard