Package org.ships.movement.instruction
Class MovementInstructionBuilder
java.lang.Object
org.ships.movement.instruction.MovementInstructionBuilder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
@NotNull MidMovement[]
@NotNull BasicMovement
@NotNull PostMovement[]
boolean
setAddToMovementBlocks
(PositionableShipsStructure structure, int x, int y, int z) setAddToMovementBlocks
(PositionableShipsStructure structure, org.core.vector.type.Vector3<Integer> addTo) setMidMoveEvent
(MidMovement... midMoveEvent) setMovementAlgorithm
(BasicMovement movementAlgorithm) setMovementBlocks
(PositionableShipsStructure structure, Function<org.core.world.position.impl.sync.SyncBlockPosition, MovingBlock> function) setMovingBlocks
(MovingBlockSet movingBlocks) setPostMoveEvent
(PostMovement... postMoveEvent) setRotateLeftAroundPosition
(PositionableShipsStructure structure, org.core.world.position.impl.BlockPosition position) setRotateRightAroundPosition
(PositionableShipsStructure structure, org.core.world.position.impl.BlockPosition position) setStrictMovement
(boolean strictMovement) setTeleportToMovementBlocks
(PositionableShipsStructure structure, org.core.world.position.impl.BlockPosition position)
-
Constructor Details
-
MovementInstructionBuilder
public MovementInstructionBuilder()
-
-
Method Details
-
getMovingBlocks
-
setMovingBlocks
-
setTeleportToMovementBlocks
public MovementInstructionBuilder setTeleportToMovementBlocks(PositionableShipsStructure structure, org.core.world.position.impl.BlockPosition position) -
setAddToMovementBlocks
public MovementInstructionBuilder setAddToMovementBlocks(PositionableShipsStructure structure, int x, int y, int z) -
setAddToMovementBlocks
public MovementInstructionBuilder setAddToMovementBlocks(PositionableShipsStructure structure, org.core.vector.type.Vector3<Integer> addTo) -
setRotateLeftAroundPosition
public MovementInstructionBuilder setRotateLeftAroundPosition(PositionableShipsStructure structure, org.core.world.position.impl.BlockPosition position) -
setRotateLeftAroundPosition
-
setRotateRightAroundPosition
public MovementInstructionBuilder setRotateRightAroundPosition(PositionableShipsStructure structure, org.core.world.position.impl.BlockPosition position) -
setRotateRightAroundPosition
public MovementInstructionBuilder setRotateRightAroundPosition(PositionableShipsStructure structure) -
setMovementBlocks
public MovementInstructionBuilder setMovementBlocks(PositionableShipsStructure structure, Function<org.core.world.position.impl.sync.SyncBlockPosition, MovingBlock> function) -
isStrictMovement
public boolean isStrictMovement() -
setStrictMovement
-
getMidMoveEvent
-
setMidMoveEvent
-
getPostMoveEvent
-
setPostMoveEvent
-
getMovementAlgorithm
-
setMovementAlgorithm
-
build
-