Class PistonBlockStructureHelper


  • public class PistonBlockStructureHelper
    extends java.lang.Object
    • Field Detail

      • level

        private final World level
      • pistonPos

        private final BlockPos pistonPos
      • extending

        private final boolean extending
      • startPos

        private final BlockPos startPos
      • pushDirection

        private final Direction pushDirection
      • toPush

        private final java.util.List<BlockPos> toPush
      • toDestroy

        private final java.util.List<BlockPos> toDestroy
      • pistonDirection

        private final Direction pistonDirection
    • Constructor Detail

      • PistonBlockStructureHelper

        public PistonBlockStructureHelper​(World p_i45664_1_,
                                          BlockPos p_i45664_2_,
                                          Direction p_i45664_3_,
                                          boolean p_i45664_4_)
    • Method Detail

      • resolve

        public boolean resolve()
      • addBlockLine

        private boolean addBlockLine​(BlockPos p_177251_1_,
                                     Direction p_177251_2_)
      • reorderListAtCollision

        private void reorderListAtCollision​(int p_177255_1_,
                                            int p_177255_2_)
      • addBranchingBlocks

        private boolean addBranchingBlocks​(BlockPos p_177250_1_)
      • getToPush

        public java.util.List<BlockPos> getToPush()
      • getToDestroy

        public java.util.List<BlockPos> getToDestroy()