RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
com.osroyale.game.action.impl.ChestAction Class Reference
Inheritance diagram for com.osroyale.game.action.impl.ChestAction:
Collaboration diagram for com.osroyale.game.action.impl.ChestAction:

Public Member Functions

void execute ()
String getName ()
boolean prioritized ()
WalkablePolicy getWalkablePolicy ()
Public Member Functions inherited from com.osroyale.game.action.Action< T extends Mob >
 Action (T mob, int delay, boolean instant)
 Action (T mob, int delay)
getMob ()
Public Member Functions inherited from com.osroyale.game.task.Task
 Task (boolean instant, int delay)
 Task (int delay)
boolean canRun ()
synchronized final void cancel ()
synchronized final void cancel (boolean logout)
Task attach (Object newKey)
boolean isInstant ()
int getDelay ()
void setDelay (int delay)
boolean isRunning ()
Optional< Object > getAttachment ()

Protected Member Functions

boolean canSchedule ()
void onSchedule ()
void onCancel (boolean logout)

Detailed Description

Handles opening a chest.

Author
Daniel

Definition at line 18 of file ChestAction.java.

Member Function Documentation

◆ canSchedule()

boolean com.osroyale.game.action.impl.ChestAction.canSchedule ( )
inlineprotected

A function executed on registration.

Reimplemented from com.osroyale.game.task.Task.

Definition at line 29 of file ChestAction.java.

◆ execute()

void com.osroyale.game.action.impl.ChestAction.execute ( )
inline

A function representing the unit of work that will be carried out.

Reimplemented from com.osroyale.game.task.Task.

Definition at line 46 of file ChestAction.java.

◆ getName()

String com.osroyale.game.action.impl.ChestAction.getName ( )
inline

Gets the name of this action.

Returns
The name of this action.

Reimplemented from com.osroyale.game.action.Action< T extends Mob >.

Definition at line 64 of file ChestAction.java.

◆ getWalkablePolicy()

WalkablePolicy com.osroyale.game.action.impl.ChestAction.getWalkablePolicy ( )
inline

Gets the WalkablePolicy of this action.

Returns
The walkable policy of this action.

Reimplemented from com.osroyale.game.action.Action< T extends Mob >.

Definition at line 74 of file ChestAction.java.

◆ onCancel()

void com.osroyale.game.action.impl.ChestAction.onCancel ( boolean logout)
inlineprotected

A function executed on cancellation.

Reimplemented from com.osroyale.game.task.Task.

Definition at line 51 of file ChestAction.java.

◆ onSchedule()

void com.osroyale.game.action.impl.ChestAction.onSchedule ( )
inlineprotected

A function executed on registration.

Reimplemented from com.osroyale.game.task.Task.

Definition at line 38 of file ChestAction.java.

◆ prioritized()

boolean com.osroyale.game.action.impl.ChestAction.prioritized ( )
inline

Determines if this action is prioritized.

When making an action prioritized, the next action will be ignored if not queued.

Returns
true if this action is prioritized, false otherwise.

Reimplemented from com.osroyale.game.action.Action< T extends Mob >.

Definition at line 69 of file ChestAction.java.


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