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 void
checkRequirements
(@NotNull MovementContext context) default void
finishRequirements
(@NotNull MovementContext context) default <R extends Requirement<?>>
Optional<R>getRequirement
(Class<R> clazz) void
setRequirement
(@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
-