Class 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 int getHeading()
      Returns your ship's set heading
      static Direction getHeadingDirection()  
      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
      static boolean isNavigating()  
      static boolean isOnBoat()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Sailing

        public Sailing()
    • 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}