public class BlockPistonStructureHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private BlockPos |
blockToMove |
private EnumFacing |
moveDirection |
private BlockPos |
pistonPos |
private java.util.List<BlockPos> |
toDestroy |
private java.util.List<BlockPos> |
toMove |
private World |
world |
Constructor and Description |
---|
BlockPistonStructureHelper(World worldIn,
BlockPos posIn,
EnumFacing pistonFacing,
boolean extending) |
Modifier and Type | Method and Description |
---|---|
private boolean |
addBlockLine(BlockPos origin,
EnumFacing p_177251_2_) |
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 BlockPos blockToMove
private final EnumFacing moveDirection
private final java.util.List<BlockPos> toMove
private final java.util.List<BlockPos> toDestroy
public BlockPistonStructureHelper(World worldIn, BlockPos posIn, EnumFacing pistonFacing, boolean extending)
public boolean canMove()
private boolean addBlockLine(BlockPos origin, EnumFacing p_177251_2_)
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()