RuneHive-Tarnish
Neural OSRS Enhancement Framework
|
Public Member Functions | |
List< Player > | getLocalPlayers (Mob mob) |
List< Npc > | getLocalNpcs (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) |
Manages the world regions.
Definition at line 57 of file RegionManager.java.
|
inlinestatic |
Sends an action to Mob
instance which is within a
.
distance
action | action consumer. |
Definition at line 68 of file RegionManager.java.
|
inlinestatic |
Sends an action to Mob
instance which is within a
.
distance
action | action consumer. |
Definition at line 87 of file RegionManager.java.
Gets the local npcs around an entity.
mob | The entity. |
Definition at line 125 of file RegionManager.java.
Gets the local players around an entity.
mob | The entity. |
Definition at line 106 of file RegionManager.java.
|
inline |
Gets a region by its x and y coordinates.
x | The x coordinate. |
y | The y coordinate. |
Definition at line 188 of file RegionManager.java.
Gets a region by position.
position | The position. |
Definition at line 177 of file RegionManager.java.
|
inline |
Gets the regions surrounding a position.
position | The position. |
Definition at line 143 of file RegionManager.java.