Class FlightCheckpoint
java.lang.Object
org.ships.movement.autopilot.path.FlightCheckpoint
- All Implemented Interfaces:
org.core.world.position.Positionable<org.core.world.position.impl.BlockPosition>
public class FlightCheckpoint
extends Object
implements org.core.world.position.Positionable<org.core.world.position.impl.BlockPosition>
-
Constructor Summary
ConstructorsConstructorDescriptionFlightCheckpoint
(@NotNull org.core.world.position.impl.BlockPosition position) FlightCheckpoint
(@NotNull org.core.world.position.impl.BlockPosition position, int allowedDistance) -
Method Summary
Modifier and TypeMethodDescriptionint
@NotNull org.core.world.position.impl.BlockPosition
boolean
hasReached
(@NotNull org.core.vector.type.Vector3<?> position) boolean
hasReached
(@NotNull org.core.world.position.impl.Position<?> position) boolean
hasReached
(@NotNull org.core.world.position.Positionable<?> positionable) void
moveTowards
(@NotNull Vessel vessel, @NotNull MovementDetails details)
-
Constructor Details
-
FlightCheckpoint
public FlightCheckpoint(@NotNull @NotNull org.core.world.position.impl.BlockPosition position) -
FlightCheckpoint
public FlightCheckpoint(@NotNull @NotNull org.core.world.position.impl.BlockPosition position, int allowedDistance)
-
-
Method Details
-
moveTowards
-
getAllowedDistance
public int getAllowedDistance() -
getPosition
@NotNull public @NotNull org.core.world.position.impl.BlockPosition getPosition()- Specified by:
getPosition
in interfaceorg.core.world.position.Positionable<org.core.world.position.impl.BlockPosition>
-
hasReached
public boolean hasReached(@NotNull @NotNull org.core.world.position.Positionable<?> positionable) -
hasReached
public boolean hasReached(@NotNull @NotNull org.core.world.position.impl.Position<?> position) -
hasReached
public boolean hasReached(@NotNull @NotNull org.core.vector.type.Vector3<?> position)
-