Class Position

    • Field Detail

      • NIL

        public static final Position NIL
        Deprecated.
    • Method Detail

      • resetCache

        public static void resetCache()
        Deprecated.
      • isValidBounds

        public static boolean isValidBounds​(int x,
                                            int y,
                                            int level)
        Deprecated.
      • from

        public static Position from​(int x,
                                    int y,
                                    int level)
        Deprecated.
      • from

        public static Position from​(int x,
                                    int y)
        Deprecated.
      • fromRelative

        public static Position fromRelative​(int x,
                                            int y,
                                            int level)
        Deprecated.
      • fromAbsolute

        public static Position fromAbsolute​(int x,
                                            int y,
                                            int level)
        Deprecated.
      • fromScript

        public static Position fromScript​(int regionX,
                                          int regionY,
                                          int insetX,
                                          int insetY,
                                          int level)
        Deprecated.
        Constructs a Position using jagex's inhouse position system.
        Returns:
        A Position comprised of regionX, regionY, insetX, insetY and floor level.
      • unpack

        public static Position unpack​(int packed)
        Deprecated.
      • rotate

        public static Position rotate​(int x,
                                      int y,
                                      int level,
                                      int rotation)
        Deprecated.
      • from

        public static Position from​(Coord coord)
        Deprecated.
      • getRegionX

        public int getRegionX()
        Deprecated.
      • getRegionY

        public int getRegionY()
        Deprecated.
      • getRegionXInset

        public int getRegionXInset()
        Deprecated.
      • getRegionYInset

        public int getRegionYInset()
        Deprecated.
      • getRegionId

        public int getRegionId()
        Deprecated.
      • getChunkX

        public int getChunkX()
        Deprecated.
      • getChunkY

        public int getChunkY()
        Deprecated.
      • getChunk

        public Chunk getChunk()
        Deprecated.
      • getChunkOffset

        public IntPair getChunkOffset()
        Deprecated.
      • getMatrixId

        public int getMatrixId()
        Deprecated.
        Specified by:
        getMatrixId in interface SceneNode
      • getX

        public int getX()
        Deprecated.
        Specified by:
        getX in interface SceneNode
      • getY

        public int getY()
        Deprecated.
        Specified by:
        getY in interface SceneNode
      • translate

        public Position translate​(int x,
                                  int y)
        Deprecated.
      • toWorld

        public Position toWorld()
        Deprecated.
      • toScene

        public Position toScene()
        Deprecated.
      • toPrecise

        public Position toPrecise()
        Deprecated.
      • fromInstance

        public Position fromInstance()
        Deprecated.
      • getInstancePositions

        public List<Position> getInstancePositions()
        Deprecated.
      • isInstanced

        public boolean isInstanced()
        Deprecated.
      • equals

        public boolean equals​(int x,
                              int y,
                              int level)
        Deprecated.
      • equals

        public boolean equals​(Object obj)
        Deprecated.
        Overrides:
        equals in class Object
      • isInScene

        public boolean isInScene()
        Deprecated.
      • rotate

        public Position rotate​(int rotation)
        Deprecated.
      • within

        public boolean within​(Area area)
        Deprecated.
      • hashCode

        public int hashCode()
        Deprecated.
        Overrides:
        hashCode in class Object