RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
com.osroyale.game.world.region.RegionDefinition Class Reference

Public Member Functions

 RegionDefinition (int hash, int terrainFile, int objectFile)
int getHash ()
int getTerrainFile ()
int getObjectFile ()

Static Public Member Functions

static RegionDefinition get (int region)
static boolean contains (int region)
static void set (RegionDefinition definition)
static Int2ObjectMap< RegionDefinitiongetDefinitions ()

Detailed Description

Represents a single region definition.

Author
Ryley Kimmel ryley.nosp@m..kim.nosp@m.mel@l.nosp@m.ive..nosp@m.com
Artem Batutin artem.nosp@m.batu.nosp@m.tin@g.nosp@m.mail.nosp@m..com

Definition at line 44 of file RegionDefinition.java.

Constructor & Destructor Documentation

◆ RegionDefinition()

com.osroyale.game.world.region.RegionDefinition.RegionDefinition ( int hash,
int terrainFile,
int objectFile )
inline

Constructs a new RegionDefinition with the specified hash, terrain file id, object file id and preload state.

Parameters
hashThe hash of the region coordinates.
terrainFileThe terrain file id.
objectFileThe object file id.

Definition at line 66 of file RegionDefinition.java.

Member Function Documentation

◆ contains()

boolean com.osroyale.game.world.region.RegionDefinition.contains ( int region)
inlinestatic

Returns the flag if the region exists.

Parameters
regionregion hash to check.
Returns
contains flag.

Definition at line 88 of file RegionDefinition.java.

◆ get()

RegionDefinition com.osroyale.game.world.region.RegionDefinition.get ( int region)
inlinestatic

Gets a RegionDefinition.

Parameters
regionregion hash to get definition from.
Returns
region definition

Definition at line 78 of file RegionDefinition.java.

◆ getDefinitions()

Int2ObjectMap< RegionDefinition > com.osroyale.game.world.region.RegionDefinition.getDefinitions ( )
inlinestatic

Gets the regional definitions.

Returns
region definitions.

Definition at line 106 of file RegionDefinition.java.

◆ getHash()

int com.osroyale.game.world.region.RegionDefinition.getHash ( )
inline

Returns the coordinate hash.

Definition at line 113 of file RegionDefinition.java.

◆ getObjectFile()

int com.osroyale.game.world.region.RegionDefinition.getObjectFile ( )
inline

Returns the object file id.

Definition at line 127 of file RegionDefinition.java.

◆ getTerrainFile()

int com.osroyale.game.world.region.RegionDefinition.getTerrainFile ( )
inline

Returns the terrain file id.

Definition at line 120 of file RegionDefinition.java.

◆ set()

void com.osroyale.game.world.region.RegionDefinition.set ( RegionDefinition definition)
inlinestatic

Adds a RegionDefinition.

Parameters
definitiondefinition to add.

Definition at line 97 of file RegionDefinition.java.


The documentation for this class was generated from the following file: