Package org.ships.vessel.common.assits
Interface VesselRequirement
- All Superinterfaces:
org.core.world.position.Positionable<org.core.world.position.impl.BlockPosition>,Vessel
- All Known Subinterfaces:
FallableRequirementVessel
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidcheckRequirements(@NotNull MovementContext context) default voidfinishRequirements(@NotNull MovementContext context) default <R extends Requirement<?>>
Optional<R>getRequirement(Class<R> clazz) voidsetRequirement(@NotNull Requirement<?> updated) Methods inherited from interface org.ships.vessel.common.types.Vessel
get, getAltitudeSpeed, getCachedName, getEntities, getEntities, getEntities, getEntitiesAsynced, getEntitiesAsynced, getEntitiesOvertime, getEntitiesOvertime, getMaxSpeed, getName, getPosition, getStructure, getType, getValue, getWaterLevel, getWaterLevel, isAltitudeSpeedSpecified, isLoading, isMaxSpeedSpecified, moveTo, moveTowards, moveTowards, rotateAnticlockwiseAround, rotateClockwiseAround, rotateLeftAround, rotateRightAround, save, set, set, setAltitudeSpeed, setLoading, setMaxSpeed, setStructure, updateStructure, updateStructure
-
Method Details
-
getRequirements
Collection<Requirement<?>> getRequirements() -
getRequirement
-
checkRequirements
- Throws:
MoveException
-
finishRequirements
- Throws:
MoveException
-
setRequirement
-