public class PistonBlockStructureHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private BlockPos |
blockToMove |
private boolean |
extending |
private Direction |
facing |
private Direction |
moveDirection |
private BlockPos |
pistonPos |
private java.util.List<BlockPos> |
toDestroy |
private java.util.List<BlockPos> |
toMove |
private World |
world |
Constructor and Description |
---|
PistonBlockStructureHelper(World worldIn,
BlockPos posIn,
Direction pistonFacing,
boolean extending) |
Modifier and Type | Method and Description |
---|---|
private boolean |
addBlockLine(BlockPos origin,
Direction facingIn) |
private boolean |
addBranchingBlocks(BlockPos fromPos) |
boolean |
canMove() |
java.util.List<BlockPos> |
getBlocksToDestroy() |
java.util.List<BlockPos> |
getBlocksToMove() |
private void |
reorderListAtCollision(int p_177255_1_,
int p_177255_2_) |
private final World world
private final BlockPos pistonPos
private final boolean extending
private final BlockPos blockToMove
private final Direction moveDirection
private final java.util.List<BlockPos> toMove
private final java.util.List<BlockPos> toDestroy
private final Direction facing
public boolean canMove()
private void reorderListAtCollision(int p_177255_1_, int p_177255_2_)
private boolean addBranchingBlocks(BlockPos fromPos)
public java.util.List<BlockPos> getBlocksToMove()
public java.util.List<BlockPos> getBlocksToDestroy()