Package net.minecraft.block
Class PistonBlockStructureHelper
- java.lang.Object
-
- net.minecraft.block.PistonBlockStructureHelper
-
public class PistonBlockStructureHelper extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
extending
private World
level
private Direction
pistonDirection
private BlockPos
pistonPos
private Direction
pushDirection
private BlockPos
startPos
private java.util.List<BlockPos>
toDestroy
private java.util.List<BlockPos>
toPush
-
Constructor Summary
Constructors Constructor Description PistonBlockStructureHelper(World p_i45664_1_, BlockPos p_i45664_2_, Direction p_i45664_3_, boolean p_i45664_4_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private boolean
addBlockLine(BlockPos p_177251_1_, Direction p_177251_2_)
private boolean
addBranchingBlocks(BlockPos p_177250_1_)
java.util.List<BlockPos>
getToDestroy()
java.util.List<BlockPos>
getToPush()
private void
reorderListAtCollision(int p_177255_1_, int p_177255_2_)
boolean
resolve()
-
-
-
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
-
-
Method Detail
-
resolve
public boolean resolve()
-
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()
-
-