Class PistonStructureResolver

java.lang.Object
net.minecraft.world.level.block.piston.PistonStructureResolver

public class PistonStructureResolver extends Object
  • Field Details

    • MAX_PUSH_DEPTH

      public static final int MAX_PUSH_DEPTH
      See Also:
    • level

      private final Level level
    • pistonPos

      private final BlockPos pistonPos
    • extending

      private final boolean extending
    • startPos

      private final BlockPos startPos
    • pushDirection

      private final Direction pushDirection
    • toPush

      private final List<BlockPos> toPush
    • toDestroy

      private final List<BlockPos> toDestroy
    • pistonDirection

      private final Direction pistonDirection
  • Constructor Details

    • PistonStructureResolver

      public PistonStructureResolver(Level p_60418_, BlockPos p_60419_, Direction p_60420_, boolean p_60421_)
  • Method Details

    • resolve

      public boolean resolve()
    • addBlockLine

      private boolean addBlockLine(BlockPos p_60434_, Direction p_60435_)
    • reorderListAtCollision

      private void reorderListAtCollision(int p_60424_, int p_60425_)
    • addBranchingBlocks

      private boolean addBranchingBlocks(BlockPos p_60432_)
    • getPushDirection

      public Direction getPushDirection()
    • getToPush

      public List<BlockPos> getToPush()
    • getToDestroy

      public List<BlockPos> getToDestroy()