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

Public Member Functions

void sequence ()

Static Public Member Functions

static void save ()
static void update (int time)
static void shutdown ()
static void queueLogin (Player player)
static void queueLogout (Player player)
static Optional< Playersearch (String name)
static Optional< PlayergetPlayerBySlot (int index)
static Optional< NpcgetNpcBySlot (int index)
static void schedule (Task task)
static void schedule (int delay, Runnable runnable)
static void schedule (Runnable runnable)
static void sendGraphic (Graphic graphic, Position position, int instance)
static void sendObjectAnimation (int animation, GameObject object)
static void sendProjectile (Projectile projectile, Position position, int instance, int lock, byte offsetX, byte offsetY)
static void sendProjectile (Mob source, Mob target, Projectile projectile)
static void sendProjectile (Mob source, Position target, Projectile projectile)
static void sendMessage (String... messages)
static void sendMessage (String message, Predicate< Player > filter)
static void sendBroadcast (int time, String message, boolean countdown)
static void sendKillFeed (final Mob killer, final Mob victim)
static int getPlayerCount ()
static List< PlayergetStaff ()

Detailed Description

Represents the game world.

Author
Daniel
Michael

Definition at line 83 of file World.java.

Member Function Documentation

◆ getNpcBySlot()

Optional< Npc > com.osroyale.game.world.World.getNpcBySlot ( int index)
inlinestatic

Gets an npc by index.

Definition at line 246 of file World.java.

◆ getPlayerBySlot()

Optional< Player > com.osroyale.game.world.World.getPlayerBySlot ( int index)
inlinestatic

Gets a player by index.

Definition at line 237 of file World.java.

◆ getPlayerCount()

int com.osroyale.game.world.World.getPlayerCount ( )
inlinestatic

Gets the amount of valid players online.

Definition at line 525 of file World.java.

◆ getStaff()

List< Player > com.osroyale.game.world.World.getStaff ( )
inlinestatic

Gets the staff players currently online.

Definition at line 556 of file World.java.

◆ queueLogin()

void com.osroyale.game.world.World.queueLogin ( Player player)
inlinestatic

Handles queueing the player logins.

Definition at line 166 of file World.java.

◆ queueLogout()

void com.osroyale.game.world.World.queueLogout ( Player player)
inlinestatic

Handles queueing the player logouts.

Definition at line 175 of file World.java.

◆ save()

void com.osroyale.game.world.World.save ( )
inlinestatic

Saves all the game data.

Definition at line 134 of file World.java.

◆ schedule() [1/3]

void com.osroyale.game.world.World.schedule ( int delay,
Runnable runnable )
inlinestatic

Executes a runnable on a delay.

Definition at line 289 of file World.java.

◆ schedule() [2/3]

void com.osroyale.game.world.World.schedule ( Runnable runnable)
inlinestatic

Executes a runnable on a 1 tick delay.

Definition at line 300 of file World.java.

◆ schedule() [3/3]

void com.osroyale.game.world.World.schedule ( Task task)
inlinestatic

Submits a new event.

Definition at line 284 of file World.java.

◆ search()

Optional< Player > com.osroyale.game.world.World.search ( String name)
inlinestatic

Gets a player by name.

Definition at line 184 of file World.java.

◆ sendBroadcast()

void com.osroyale.game.world.World.sendBroadcast ( int time,
String message,
boolean countdown )
inlinestatic

Sends a game message.

Definition at line 455 of file World.java.

◆ sendGraphic()

void com.osroyale.game.world.World.sendGraphic ( Graphic graphic,
Position position,
int instance )
inlinestatic

Sends a graphic to the world.

Definition at line 305 of file World.java.

◆ sendKillFeed()

void com.osroyale.game.world.World.sendKillFeed ( final Mob killer,
final Mob victim )
inlinestatic

Sends a kill feed notification.

Definition at line 509 of file World.java.

◆ sendMessage() [1/2]

void com.osroyale.game.world.World.sendMessage ( String message,
Predicate< Player > filter )
inlinestatic

Sends a global message with an exception.

Definition at line 441 of file World.java.

◆ sendMessage() [2/2]

void com.osroyale.game.world.World.sendMessage ( String... messages)
inlinestatic

Sends a global message.

Definition at line 433 of file World.java.

◆ sendObjectAnimation()

void com.osroyale.game.world.World.sendObjectAnimation ( int animation,
GameObject object )
inlinestatic

Sends a world object animation.

Definition at line 321 of file World.java.

◆ sendProjectile() [1/3]

void com.osroyale.game.world.World.sendProjectile ( Mob source,
Mob target,
Projectile projectile )
inlinestatic

Sends a world projectile.

Definition at line 344 of file World.java.

◆ sendProjectile() [2/3]

void com.osroyale.game.world.World.sendProjectile ( Mob source,
Position target,
Projectile projectile )
inlinestatic

Sends a world projectile.

Definition at line 377 of file World.java.

◆ sendProjectile() [3/3]

void com.osroyale.game.world.World.sendProjectile ( Projectile projectile,
Position position,
int instance,
int lock,
byte offsetX,
byte offsetY )
inlinestatic

Sends a world projectile.

Definition at line 332 of file World.java.

◆ sequence()

void com.osroyale.game.world.World.sequence ( )
inline

Handles the world sequencing.

Definition at line 129 of file World.java.

◆ shutdown()

void com.osroyale.game.world.World.shutdown ( )
inlinestatic

Shuts down the server.

Definition at line 159 of file World.java.

◆ update()

void com.osroyale.game.world.World.update ( int time)
inlinestatic

Updates the server.

Definition at line 150 of file World.java.


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