Package org.ships.vessel.structure
Class AbstractPositionableShipsStructure
java.lang.Object
org.ships.vessel.structure.AbstractPositionableShipsStructure
- All Implemented Interfaces:
org.core.world.position.Positionable<org.core.world.position.impl.sync.SyncBlockPosition>
,PositionableShipsStructure
public class AbstractPositionableShipsStructure
extends Object
implements PositionableShipsStructure
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractPositionableShipsStructure
(org.core.world.position.impl.sync.SyncBlockPosition position) -
Method Summary
Modifier and TypeMethodDescriptionboolean
addPositionRelativeToCenter
(org.core.vector.type.Vector3<Integer> add) @NotNull AbstractPositionableShipsStructure
clear()
void
copyFrom
(@NotNull PositionableShipsStructure structure) fillAir()
org.core.utils.Bounds<Integer>
Collection<org.core.vector.type.Vector3<Integer>>
Collection<org.core.vector.type.Vector3<Integer>>
Collection<org.core.vector.type.Vector3<Integer>>
Collection<org.core.vector.type.Vector3<Integer>>
getOutsidePositionsRelativeToCenter
(@NotNull org.core.world.direction.FourFacingDirection direction) org.core.world.position.impl.sync.SyncBlockPosition
boolean
isEmpty()
boolean
matchRelativeToCenter
(PositionableShipsStructure structure) boolean
removePositionRelativeToCenter
(@NotNull org.core.vector.type.Vector3<Integer> remove) setPosition
(@NotNull org.core.world.position.impl.sync.SyncBlockPosition pos) setRawPositionsRelativeToCenter
(Collection<? extends org.core.vector.type.Vector3<Integer>> collection) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ships.vessel.structure.PositionableShipsStructure
addAir, addPosition, addPosition, addPositionRelativeToWorld, getAll, getAll, getAll, getAllLike, getAsyncedPositions, getAsyncedPositionsRelativeToWorld, getChunks, getChunksAsynced, getOriginalRelativePositions, getOriginalRelativePositionsToCenter, getOutsideBlocks, getOutsideBlocks, getOutsidePositionsRelativeToWorld, getPositions, getPositionsRelativeTo, getPositionsRelativeTo, getPositionsRelativeTo, getRelativePositions, getRelativePositionsToCenter, getSpecificSize, getSyncedPositions, getSyncedPositionsRelativeToWorld, getXSize, getYSize, getZSize, removePosition, removePosition, removePositionRelativeToWorld, setRaw
-
Constructor Details
-
AbstractPositionableShipsStructure
public AbstractPositionableShipsStructure(org.core.world.position.impl.sync.SyncBlockPosition position)
-
-
Method Details
-
isEmpty
public boolean isEmpty() -
getPosition
public org.core.world.position.impl.sync.SyncBlockPosition getPosition()- Specified by:
getPosition
in interfaceorg.core.world.position.Positionable<org.core.world.position.impl.sync.SyncBlockPosition>
-
setPosition
public PositionableShipsStructure setPosition(@NotNull @NotNull org.core.world.position.impl.sync.SyncBlockPosition pos) - Specified by:
setPosition
in interfacePositionableShipsStructure
-
getOutsidePositionsRelativeToCenter
public Collection<org.core.vector.type.Vector3<Integer>> getOutsidePositionsRelativeToCenter(@NotNull @NotNull org.core.world.direction.FourFacingDirection direction) - Specified by:
getOutsidePositionsRelativeToCenter
in interfacePositionableShipsStructure
-
fillAir
- Specified by:
fillAir
in interfacePositionableShipsStructure
-
getOutsidePositionsRelativeToCenter
- Specified by:
getOutsidePositionsRelativeToCenter
in interfacePositionableShipsStructure
-
getBounds
- Specified by:
getBounds
in interfacePositionableShipsStructure
-
getOriginalRelativeVectorsToWorld
- Specified by:
getOriginalRelativeVectorsToWorld
in interfacePositionableShipsStructure
-
getOriginalRelativeVectorsToCenter
- Specified by:
getOriginalRelativeVectorsToCenter
in interfacePositionableShipsStructure
-
addPositionRelativeToCenter
- Specified by:
addPositionRelativeToCenter
in interfacePositionableShipsStructure
-
removePositionRelativeToCenter
public boolean removePositionRelativeToCenter(@NotNull @NotNull org.core.vector.type.Vector3<Integer> remove) - Specified by:
removePositionRelativeToCenter
in interfacePositionableShipsStructure
-
copyFrom
- Specified by:
copyFrom
in interfacePositionableShipsStructure
-
matchRelativeToCenter
- Specified by:
matchRelativeToCenter
in interfacePositionableShipsStructure
-
clear
- Specified by:
clear
in interfacePositionableShipsStructure
-
setRawPositionsRelativeToCenter
public PositionableShipsStructure setRawPositionsRelativeToCenter(Collection<? extends org.core.vector.type.Vector3<Integer>> collection) - Specified by:
setRawPositionsRelativeToCenter
in interfacePositionableShipsStructure
-