Package net.fabricmc.fabric.api.block
Interface BlockAttackInteractionAware
public interface BlockAttackInteractionAware
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)
-
Method Details
-
onAttackInteraction
boolean onAttackInteraction(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, Direction direction) - Returns:
- True if the block accepted the player and it should no longer be processed.
-