Package org.dreambot.api.methods.sailing
Class Sailing
- java.lang.Object
-
- org.dreambot.api.methods.sailing.Sailing
-
public class Sailing extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Sailing()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intgetHeading()Returns your ship's set headingstatic DirectiongetHeadingDirection()static float[]getLocalCoordinates(Character entity)Gets float values of the local coordinates, can be used for determining where exactly you are on a tile while on boat To get the current world location you would then add Client.getBaseX/Ystatic booleanisNavigating()static booleanisOnBoat()
-
-
-
Method Detail
-
isNavigating
public static boolean isNavigating()
-
isOnBoat
public static boolean isOnBoat()
-
getHeading
public static int getHeading()
Returns your ship's set heading- Returns:
- heading between 0 and 2047
-
getHeadingDirection
public static Direction getHeadingDirection()
-
getLocalCoordinates
public static float[] getLocalCoordinates(Character entity)
Gets float values of the local coordinates, can be used for determining where exactly you are on a tile while on boat To get the current world location you would then add Client.getBaseX/Y- Parameters:
entity- entity on a boat.- Returns:
- float[]{localX, localY, 0}
-
-