Class Region


  • public class Region
    extends java.lang.Object
    • Method Detail

      • getObjects

        public static java.util.List<SceneObject> getObjects()
      • getId

        public int getId()
      • getTiles

        public org.dreambot.internal.injector.interfaces.RSTile[][][] getTiles()
      • getTileReferences

        public TileReference[][][] getTileReferences()
      • getRegionTiles

        public Tile[][][] getRegionTiles()
      • getReference

        public java.lang.Object getReference()
      • getRegion

        public static Region getRegion()
        Gets the current region
        Returns:
        region
      • getInstanceTemplateChunks

        public static int[][][] getInstanceTemplateChunks()
        Gets the raw instance template chunk values
        Returns:
      • getMapRegions

        public static int[] getMapRegions()
        Gets an array of the current map region id's
        Returns:
      • fromInstance

        public static Tile fromInstance​(Tile t)
        Converts a tile from a dynamic region to the instance's mapped area
        Parameters:
        t - Dynamic instance Tile to convert
        Returns:
        Tile converted to non-instanced location, returns t if you're not in dynamic region.
      • toInstance

        public static java.util.List<Tile> toInstance​(Tile tile)
        Attempts to turn a Tile from an instanced map area to the current dynamic region
        Parameters:
        tile - Map location of instance area tile
        Returns:
        List of possible tiles for your current dynamic area based on the instance map Note: This returns multiple as some instanced chunks can overlap and have multiple matches.
      • setForcedDrawDistance

        public static void setForcedDrawDistance​(int distance)
        Sets a forced draw distance for the region. Minimum of 25, maximum of 90
        Parameters:
        distance -
      • getDrawDistance

        public static int getDrawDistance()
        Gets the current draw distance. If a forced draw distance is set, it will return that. If a forced draw distance is not set, it will return what the user has selected in their settings.
        Returns:
      • getForcedDrawDistance

        public static int getForcedDrawDistance()