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

Public Member Functions

List< PlayergetLocalPlayers (Mob mob)
List< NpcgetLocalNpcs (Mob mob)
Region[] getSurroundingRegions (Position position)
Region getRegion (Position position)
Region getRegion (final int x, final int y)

Static Public Member Functions

static void forNearbyPlayer (Mob mob, int distance, Consumer< Player > action)
static void forNearbyPlayer (Position position, int distance, Consumer< Player > action)

Detailed Description

Manages the world regions.

Author
Graham Edgecombe

Definition at line 57 of file RegionManager.java.

Member Function Documentation

◆ forNearbyPlayer() [1/2]

void com.osroyale.game.world.region.RegionManager.forNearbyPlayer ( Mob mob,
int distance,
Consumer< Player > action )
inlinestatic

Sends an action to Mob instance which is within a
distance
.

Parameters
actionaction consumer.

Definition at line 68 of file RegionManager.java.

◆ forNearbyPlayer() [2/2]

void com.osroyale.game.world.region.RegionManager.forNearbyPlayer ( Position position,
int distance,
Consumer< Player > action )
inlinestatic

Sends an action to Mob instance which is within a
distance
.

Parameters
actionaction consumer.

Definition at line 87 of file RegionManager.java.

◆ getLocalNpcs()

List< Npc > com.osroyale.game.world.region.RegionManager.getLocalNpcs ( Mob mob)
inline

Gets the local npcs around an entity.

Parameters
mobThe entity.
Returns
The collection of local npcs.

Definition at line 125 of file RegionManager.java.

◆ getLocalPlayers()

List< Player > com.osroyale.game.world.region.RegionManager.getLocalPlayers ( Mob mob)
inline

Gets the local players around an entity.

Parameters
mobThe entity.
Returns
The collection of local players.

Definition at line 106 of file RegionManager.java.

◆ getRegion() [1/2]

Region com.osroyale.game.world.region.RegionManager.getRegion ( final int x,
final int y )
inline

Gets a region by its x and y coordinates.

Parameters
xThe x coordinate.
yThe y coordinate.
Returns
The region.

Definition at line 188 of file RegionManager.java.

◆ getRegion() [2/2]

Region com.osroyale.game.world.region.RegionManager.getRegion ( Position position)
inline

Gets a region by position.

Parameters
positionThe position.
Returns
The region.

Definition at line 177 of file RegionManager.java.

◆ getSurroundingRegions()

Region[] com.osroyale.game.world.region.RegionManager.getSurroundingRegions ( Position position)
inline

Gets the regions surrounding a position.

Parameters
positionThe position.
Returns
The regions surrounding the position.

Definition at line 143 of file RegionManager.java.


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