RuneHive-Tarnish
Neural OSRS Enhancement Framework
|
Public Member Functions | |
DestructionSkillAction (Mob mob, Optional< Position > position, boolean instant) | |
boolean | canRun () |
final void | onExecute () |
final WalkablePolicy | getWalkablePolicy () |
void | onDestruct (boolean success) |
abstract Item | destructItem () |
boolean | prioritized () |
Public Member Functions inherited from com.osroyale.content.skill.SkillAction | |
SkillAction (Mob mob, Optional< Position > position, int delay, boolean instant) | |
SkillAction (Mob mob, Optional< Position > position, boolean instant) | |
final void | start () |
abstract boolean | canInit () |
abstract void | init () |
abstract Optional< SkillAnimation > | animation () |
abstract double | experience () |
abstract int | skill () |
boolean | ignore () |
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) | |
T | getMob () |
abstract String | getName () |
Public Member Functions inherited from com.osroyale.game.task.Task | |
Task (boolean instant, int delay) | |
Task (int delay) | |
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 () |
Additional Inherited Members | |
Protected Member Functions inherited from com.osroyale.content.skill.SkillAction | |
final void | onSchedule () |
final void | execute () |
Protected Member Functions inherited from com.osroyale.game.task.Task | |
boolean | canSchedule () |
void | onCancel (boolean logout) |
The skill action that represents an action where one item is removed from an inventory and lost forever. This type of skill action is very basic and only requires that a player have the item to destruct in their inventory.
The skills that may use this type skill action include, but are not limited to PRAYER
.
Definition at line 62 of file DestructionSkillAction.java.
|
inline |
Creates a new DestructionSkillAction
.
mob | the mob this skill action is for. |
position | the position the player should face. |
instant | determines if this task should run instantly. |
Definition at line 73 of file DestructionSkillAction.java.
|
inline |
Determines if the task can be ran.
Reimplemented from com.osroyale.game.task.Task.
Definition at line 78 of file DestructionSkillAction.java.
|
abstract |
The item that will be removed upon destruction.
Reimplemented in com.osroyale.content.skill.impl.firemaking.FiremakingAction.
|
inline |
Gets the WalkablePolicy of this action.
Reimplemented from com.osroyale.game.action.Action< T extends Mob >.
Definition at line 106 of file DestructionSkillAction.java.
|
inline |
The method executed upon destruction of the item.
success | determines if the destruction was successful or not. |
Reimplemented in com.osroyale.content.skill.impl.firemaking.FiremakingAction.
Definition at line 114 of file DestructionSkillAction.java.
|
inline |
The method which is called on intervals of the specified #delay
;
Reimplemented from com.osroyale.content.skill.SkillAction.
Definition at line 90 of file DestructionSkillAction.java.
|
inline |
Determines if this action is prioritized.
When making an action prioritized, the next action will be ignored if not queued.
true
if this action is prioritized, false
otherwise. Reimplemented from com.osroyale.game.action.Action< T extends Mob >.
Definition at line 125 of file DestructionSkillAction.java.