Package net.fabricmc.fabric.api.block
Interface BlockAttackInteractionAware
Deprecated.
Convenience interface for blocks which listen to "break interactions" (left-click).
-
Method Summary
Modifier and TypeMethodDescriptionboolean
onAttackInteraction
(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, Direction direction) Deprecated.
-
Method Details
-
onAttackInteraction
boolean onAttackInteraction(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, Direction direction) Deprecated.- Returns:
- True if the block accepted the player and it should no longer be processed.
-
AttackBlockCallback
instead and check for the block. This gives more control over the different cancellation outcomes.