Class PistonStructureResolver
java.lang.Object
net.minecraft.world.level.block.piston.PistonStructureResolver
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPistonStructureResolver
(Level level, BlockPos pistonPos, Direction pistonDirection, boolean extending) -
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
addBlockLine
(BlockPos originPos, Direction direction) private boolean
addBranchingBlocks
(BlockPos fromPos) private void
reorderListAtCollision
(int offsets, int index) boolean
resolve()
-
Field Details
-
MAX_PUSH_DEPTH
public static final int MAX_PUSH_DEPTH- See Also:
-
level
-
pistonPos
-
extending
private final boolean extending -
startPos
-
pushDirection
-
toPush
All block positions to be moved by the piston -
toDestroy
All blocks to be destroyed by the piston -
pistonDirection
-
-
Constructor Details
-
PistonStructureResolver
-
-
Method Details
-
resolve
public boolean resolve() -
addBlockLine
-
reorderListAtCollision
private void reorderListAtCollision(int offsets, int index) -
addBranchingBlocks
-
getPushDirection
-
getToPush
-
getToDestroy
-