RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
com.osroyale.content.skill.impl.DestructionSkillAction Class Referenceabstract
Inheritance diagram for com.osroyale.content.skill.impl.DestructionSkillAction:
Collaboration diagram for com.osroyale.content.skill.impl.DestructionSkillAction:

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< SkillAnimationanimation ()
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)
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)

Detailed Description

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.

Author
lare96 http://github.com/lare96
See also
SkillAction
HarvestingSkillAction

Definition at line 62 of file DestructionSkillAction.java.

Constructor & Destructor Documentation

◆ DestructionSkillAction()

com.osroyale.content.skill.impl.DestructionSkillAction.DestructionSkillAction ( Mob mob,
Optional< Position > position,
boolean instant )
inline

Creates a new DestructionSkillAction.

Parameters
mobthe mob this skill action is for.
positionthe position the player should face.
instantdetermines if this task should run instantly.

Definition at line 73 of file DestructionSkillAction.java.

Member Function Documentation

◆ canRun()

boolean com.osroyale.content.skill.impl.DestructionSkillAction.canRun ( )
inline

Determines if the task can be ran.

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

Definition at line 78 of file DestructionSkillAction.java.

◆ destructItem()

abstract Item com.osroyale.content.skill.impl.DestructionSkillAction.destructItem ( )
abstract

The item that will be removed upon destruction.

Returns
the item that will be removed.

Reimplemented in com.osroyale.content.skill.impl.firemaking.FiremakingAction.

◆ getWalkablePolicy()

final WalkablePolicy com.osroyale.content.skill.impl.DestructionSkillAction.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 106 of file DestructionSkillAction.java.

◆ onDestruct()

void com.osroyale.content.skill.impl.DestructionSkillAction.onDestruct ( boolean success)
inline

The method executed upon destruction of the item.

Parameters
successdetermines if the destruction was successful or not.

Reimplemented in com.osroyale.content.skill.impl.firemaking.FiremakingAction.

Definition at line 114 of file DestructionSkillAction.java.

◆ onExecute()

final void com.osroyale.content.skill.impl.DestructionSkillAction.onExecute ( )
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.

◆ prioritized()

boolean com.osroyale.content.skill.impl.DestructionSkillAction.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 125 of file DestructionSkillAction.java.


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