Package org.dreambot.api.wrappers.map
Class Region
- java.lang.Object
-
- org.dreambot.api.wrappers.map.Region
-
public class Region extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Tile
fromInstance(Tile t)
Converts a tile from a dynamic region to the instance's mapped areaint
getId()
static int[][][]
getInstanceTemplateChunks()
Gets the raw instance template chunk valuesstatic int[]
getMapRegions()
Gets an array of the current map region id'sstatic java.util.List<SceneObject>
getObjects()
java.lang.Object
getReference()
static Region
getRegion()
Gets the current regionTile[][][]
getRegionTiles()
TileReference[][][]
getTileReferences()
org.dreambot.internal.injector.interfaces.RSTile[][][]
getTiles()
static java.util.List<Tile>
toInstance(Tile tile)
Attempts to turn a Tile from an instanced map area to the current dynamic region
-
-
-
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.
-
-