Interface BlockAttackInteractionAware


@Deprecated public interface BlockAttackInteractionAware
Deprecated.
Use AttackBlockCallback instead and check for the block. This gives more control over the different cancellation outcomes.
Convenience interface for blocks which listen to "break interactions" (left-click).
  • 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.