PistonStructureResolver
Importing the class
If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.
Members
Getter
Gets the direction that the piston is moving.
This is usually the direction that the piston block is facing, however if the piston is retracting, the direction is the opposite.
Return Type:
Direction
pushDirection() as Direction
Gets the direction that the piston is moving.
This is usually the direction that the piston block is facing, however if the piston is retracting, the direction is the opposite.
Returns: The direction that the piston is moving.
Return Type:
Direction
resolve() as bool
Calculates and caches the blocks to push and the blocks to destroy.
Returns: True if blocks should move, false otherwise
Return Type:
bool