Package net.fabricmc.fabric.api.block
Interface BlockAttackInteractionAware
public interface BlockAttackInteractionAware
Convienence interface for blocks which listen to "break interactions" (left-click).
-
Method Summary
Modifier and TypeMethodDescriptionboolean
onAttackInteraction
(net.minecraft.block.BlockState state, net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos, net.minecraft.entity.player.PlayerEntity player, net.minecraft.util.Hand hand, net.minecraft.util.math.Direction direction)
-
Method Details
-
onAttackInteraction
boolean onAttackInteraction(net.minecraft.block.BlockState state, net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos, net.minecraft.entity.player.PlayerEntity player, net.minecraft.util.Hand hand, net.minecraft.util.math.Direction direction) - Returns:
- True if the block accepted the player and it should no longer be processed.
-