1package com.runehive.content.shootingstar;
3import com.runehive.content.skill.impl.mining.PickaxeData;
4import com.runehive.game.task.Task;
5import com.runehive.game.world.World;
6import com.runehive.game.world.entity.mob.player.Player;
7import com.runehive.game.world.entity.skill.Skill;
8import com.runehive.game.world.items.Item;
9import com.runehive.game.world.object.GameObject;
10import org.apache.logging.log4j.LogManager;
11import org.apache.logging.log4j.Logger;
47 player.
message(
"You don't have a pickaxe.");
52 player.
message(
"You need a level of " + pickaxe.
level +
" to use this pickaxe!");
62 player.
message(
"Not enough space in your inventory.");
66 player.
message(
"You swing your pick at the rock.");
92 public static void init() {
93 logger.info(
"Loaded Shooting Stars event.");
96 protected void execute() {
113 protected void onCancel(
boolean logout) {
final DialogueFactory execute()
Retrieves the next dialogue in the chain and executes it.
final DialogueFactory sendStatement(String... lines)
Appends a StatementDialogue to the current dialogue chain.
static void prospect(Player player)
Handles prospecting the shooting star.
static final Logger logger
static void init()
Handles initializing the shooting stars event.
static boolean starHasBeenFound
Checks if the star has been found before.
static void mine(Player player, GameObject o)
Handles the mine option of the shooting star.
static int starTick
Ticks till the next shooting star will spawn.
static ShootingStarData shootingStarData
The current data of the shooting star.
public< A extends Action<?> > void execute(A action)
A game representing a cyclic unit of work.
Represents the game world.
static void schedule(Task task)
Submits a new event.
static void sendMessage(String... messages)
Sends a global message.
final SkillManager skills
void animate(int animation)
This class represents a character controlled by a player.
final Inventory inventory
void message(String message)
DialogueFactory dialogueFactory
Represents a trainable and usable skill.
boolean reqLevel(int level)
Determines if your level is greater than or equal to level.
static final int MINING
The mining skill id.
void setDoingSkill(boolean doingSkill)
void addExperience(int id, double experience)
Adds experience to a given skill.
Skill get(int id)
Gets the skill for an id.
The container class that represents an item that can be interacted with.
final boolean hasCapacityFor(Item... item)
Determines if this container has the capacity for item.
Represents types of axes.
static Optional< PickaxeData > getBestPickaxe(Player player)
Gets the definition for this pickaxe.
final int level
The level.
final int animation
The animation.
Represents a game object.