1package com.runehive.content.skill.impl.firemaking;
3import com.runehive.Config;
4import com.runehive.content.activity.randomevent.RandomEventHandler;
5import com.runehive.content.clanchannel.content.ClanTaskKey;
6import com.runehive.content.pet.PetData;
7import com.runehive.content.pet.Pets;
8import com.runehive.content.prestige.PrestigePerk;
9import com.runehive.content.skill.impl.DestructionSkillAction;
10import com.runehive.content.skillcape.SkillCape;
11import com.runehive.game.Animation;
12import com.runehive.game.task.Task;
13import com.runehive.game.world.World;
14import com.runehive.game.world.entity.mob.player.Player;
15import com.runehive.game.world.entity.skill.Skill;
16import com.runehive.game.world.items.Item;
17import com.runehive.game.world.items.ground.GroundItem;
18import com.runehive.game.world.object.CustomGameObject;
19import com.runehive.game.world.position.Area;
20import com.runehive.game.world.region.Region;
21import com.runehive.net.packet.out.SendMessage;
22import com.runehive.util.RandomUtils;
23import com.runehive.util.Utility;
25import java.util.Optional;
37 super(player, Optional.empty(),
false);
45 getMob().getPlayer().message(
"You need a firemaking level of " +
firemaking.getLevel() +
" to light this log!");
49 getMob().getPlayer().message(
"You can not burn a fire here! ");
62 return Optional.empty();
The class that contains setting-related constants for the server.
static final double FIREMAKING_MODIFICATION
The experience modification for firemaking.
static void trigger(Player player)
Handles spawning, rewarding and picking up of pets.
static void onReward(Player player, int item, int chance)
Handles calculating the chance of a player receiving a skilling pet.
boolean hasPerk(PrestigePerk perk)
final void execute()
A function representing the unit of work that will be carried out.
DestructionSkillAction(Mob mob, Optional< Position > position, boolean instant)
Creates a new DestructionSkillAction.
String getName()
Gets the name of this action.
Optional< SkillAnimation > animation()
The skill animation to execute.
int skill()
The skill we should hand to experience to.
void onCancel(boolean logout)
A function executed on cancellation.
double experience()
The experience given from this action.
final FiremakingData firemaking
FiremakingAction(Player player, Item item, FiremakingData firemaking)
Item destructItem()
The item that will be removed upon destruction.
void init()
Any functionality that should be handled when this action is submitted.
boolean canInit()
Determines if this action can be initialized.
void onDestruct(boolean success)
The method executed upon destruction of the item.
Class that models a single animation used by an entity.
T getMob()
Gets the player.
synchronized final void cancel()
Cancels all subsequent executions.
Task(boolean instant, int delay)
Creates a new Task.
Represents the game world.
static void schedule(Task task)
Submits a new event.
final SkillManager skills
void animate(int animation)
void activateSkilling(int amount)
This class represents a character controlled by a player.
final Inventory inventory
void forClan(Consumer< ClanChannel > action)
final PlayerAssistant playerAssistant
Represents a trainable and usable skill.
static final int FIREMAKING
The firemaking skill id.
void addExperience(int id, double experience)
Adds experience to a given skill.
The container class that represents an item that can be interacted with.
boolean remove(Item item)
Attempts to withdraw item from this container.
Represents a single Ground item on the world map.
static void createGlobal(Player player, Item item)
Creates a new GroundItem object for a player and an item.
Represents a static game object loaded from the map fs.
Handles checking if mobs are in a certain area.
static boolean inEdgeville(Interactable entity)
static boolean inWilderness(Position position)
Represents a single region.
boolean containsObject(int height, GameObject object)
The OutgoingPacket that sends a message to a Players chatbox in the client.
A static-util class that provides additional functionality for generating pseudo-random numbers.
static boolean success(double value)
Determines if a pseudorandomly generated double rounded to two decimal places is below or equal to va...
Handles miscellaneous methods.
static int random(int bound)
Handles the perk rewards from prestiging.
static boolean isEquipped(Player player, SkillCape cape)