1package com.runehive.content.shootingstar;
3import com.runehive.content.skill.impl.mining.Mining;
4import com.runehive.content.skill.impl.mining.PickaxeData;
5import com.runehive.game.action.Action;
6import com.runehive.game.action.policy.WalkablePolicy;
7import com.runehive.game.world.entity.mob.player.Player;
8import com.runehive.game.world.entity.skill.Skill;
9import com.runehive.game.world.items.Item;
10import com.runehive.game.world.object.GameObject;
18 super(player, 3,
false);
30 return "shooting-star-action";
62 if (!
getMob().inventory.hasCapacityFor(
new Item(25527))) {
63 getMob().dialogueFactory.sendStatement(
"You can't carry anymore star dust.").execute();
70 if (
object ==
null || !
object.active()) {
void onCancel(boolean logout)
A function executed on cancellation.
ShootingStarAction(Player player, PickaxeData pickaxe, GameObject object)
void execute()
A function representing the unit of work that will be carried out.
String getName()
Gets the name of this action.
boolean canSchedule()
A function executed on registration.
WalkablePolicy getWalkablePolicy()
Gets the WalkablePolicy of this action.
void onSchedule()
A function executed on registration.
int availableDust
How much dust there currently is in the star.
void decreaseDust(Player player)
Handles decreasing the dust for a star.
int getMiningLevel()
The required mining level for the star level.
static ShootingStarData shootingStarData
The current data of the shooting star.
Handles the mining skill.
static boolean success(Player player, OreData ore, PickaxeData pickaxe)
T getMob()
Gets the player.
Action(T mob, int delay, boolean instant)
Creates a new Action randomevent.
synchronized final void cancel()
Cancels all subsequent executions.
This class represents a character controlled by a player.
Represents a trainable and usable skill.
static final int MINING
The mining skill id.
The container class that represents an item that can be interacted with.
Represents types of axes.
A queue policy determines whether the action can occur while walking.
NON_WALKABLE
This indicates actions cannot occur while walking.
Represents a game object.