Object BlockBreakHelper

  • All Implemented Interfaces:

    
    public class BlockBreakHelper
    
                        

    Utilities for attempting to break blocks if they're in a specific tag.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Unit tryBreakCircuit(LevelAccessor level, BlockPos pos) Break a block at the given position if it's in the circuitbreakable tag.
      final Unit tryBreakNull(LevelAccessor level, BlockPos pos) Break a block at the given position if it's in the nullbreakablefixed tag.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • tryBreakCircuit

         final Unit tryBreakCircuit(LevelAccessor level, BlockPos pos)

        Break a block at the given position if it's in the circuitbreakable tag.

      • tryBreakNull

         final Unit tryBreakNull(LevelAccessor level, BlockPos pos)

        Break a block at the given position if it's in the nullbreakablefixed tag.