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.SyncBlockPositionorg.core.world.position.impl.sync.SyncBlockPositionorg.core.world.position.block.details.BlockDetailssetAfterPosition(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, waitMethods 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:
getBeforePositionin interfaceMovingBlock
-
getAfterPosition
public org.core.world.position.impl.sync.SyncBlockPosition getAfterPosition()- Specified by:
getAfterPositionin interfaceMovingBlock
-
setBeforePosition
- Specified by:
setBeforePositionin interfaceMovingBlock
-
setAfterPosition
- Specified by:
setAfterPositionin interfaceMovingBlock
-
getStoredBlockData
public org.core.world.position.block.details.BlockDetails getStoredBlockData()- Specified by:
getStoredBlockDatain interfaceMovingBlock
-
setStoredBlockData
public MovingBlock setStoredBlockData(org.core.world.position.block.details.BlockDetails blockDetails) - Specified by:
setStoredBlockDatain interfaceMovingBlock
-
getBlockPriority
- Specified by:
getBlockPriorityin interfaceMovingBlock
-