Package org.ships.movement
Class SetMovingBlock
java.lang.Object
org.ships.movement.SetMovingBlock
- All Implemented Interfaces:
MovingBlock
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSetMovingBlock
(org.core.world.position.impl.sync.SyncBlockPosition before, org.core.world.position.impl.sync.SyncBlockPosition after) SetMovingBlock
(org.core.world.position.impl.sync.SyncBlockPosition before, org.core.world.position.impl.sync.SyncBlockPosition after, org.core.world.position.block.details.BlockDetails details) -
Method Summary
Modifier and TypeMethodDescriptionorg.core.world.position.impl.sync.SyncBlockPosition
org.core.world.position.impl.sync.SyncBlockPosition
org.core.world.position.block.details.BlockDetails
setAfterPosition
(org.core.world.position.impl.sync.SyncBlockPosition position) setBeforePosition
(org.core.world.position.impl.sync.SyncBlockPosition position) setStoredBlockData
(org.core.world.position.block.details.BlockDetails blockDetails) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ships.movement.MovingBlock
getCurrentBlockData, removeBeforePosition, removeBeforePositionOverAir, removeBeforePositionUnderWater, rotateLeft, rotateRight, setMovingTo
-
Field Details
-
before
protected org.core.world.position.impl.sync.SyncBlockPosition before -
after
protected org.core.world.position.impl.sync.SyncBlockPosition after -
detail
protected org.core.world.position.block.details.BlockDetails detail
-
-
Constructor Details
-
SetMovingBlock
public SetMovingBlock(org.core.world.position.impl.sync.SyncBlockPosition before, org.core.world.position.impl.sync.SyncBlockPosition after) -
SetMovingBlock
public SetMovingBlock(org.core.world.position.impl.sync.SyncBlockPosition before, org.core.world.position.impl.sync.SyncBlockPosition after, org.core.world.position.block.details.BlockDetails details)
-
-
Method Details
-
getBeforePosition
public org.core.world.position.impl.sync.SyncBlockPosition getBeforePosition()- Specified by:
getBeforePosition
in interfaceMovingBlock
-
getAfterPosition
public org.core.world.position.impl.sync.SyncBlockPosition getAfterPosition()- Specified by:
getAfterPosition
in interfaceMovingBlock
-
setBeforePosition
- Specified by:
setBeforePosition
in interfaceMovingBlock
-
setAfterPosition
- Specified by:
setAfterPosition
in interfaceMovingBlock
-
getStoredBlockData
public org.core.world.position.block.details.BlockDetails getStoredBlockData()- Specified by:
getStoredBlockData
in interfaceMovingBlock
-
setStoredBlockData
public MovingBlock setStoredBlockData(org.core.world.position.block.details.BlockDetails blockDetails) - Specified by:
setStoredBlockData
in interfaceMovingBlock
-
getBlockPriority
- Specified by:
getBlockPriority
in interfaceMovingBlock
-