1package com.runehive.content.skill.impl.woodcutting;
3import com.runehive.content.event.impl.ObjectInteractionEvent;
4import com.runehive.content.skill.SkillRepository;
5import com.runehive.game.world.entity.mob.player.Player;
6import com.runehive.game.world.entity.skill.Skill;
7import com.runehive.game.world.items.Item;
8import com.runehive.net.packet.out.SendMessage;
9import com.runehive.util.StringUtils;
68 player.
message(
"You do not have enough inventory spaces to do this!");
74 player.
message(
true,
"You swing your axe at the tree...");
static boolean isSuccess(int skill, int levelRequired)
Handles the woodcutting action event.
boolean clickObject(Player player, ObjectInteractionEvent event)
static double getBonus(Player player)
Woodcutting(int level, double experience)
Constructs a new Woodcutting skill.
static boolean success(Player player, TreeData tree, AxeData axe)
public< A extends Action<?> > void execute(A action)
final SkillManager skills
This class represents a character controlled by a player.
final Inventory inventory
void message(String message)
final Equipment equipment
void send(OutgoingPacket encoder)
double experience
The current skill experience.
boolean reqLevel(int level)
Determines if your level is greater than or equal to level.
int level
The current level of the skill.
void setDoingSkill(boolean doingSkill)
Skill(int skill, int level, double experience)
Constructs a new Skill.
Skill[] getSkills()
Gets the skills of the mob.
Skill get(int id)
Gets the skill for an id.
The container class that represents an item that can be interacted with.
final int getId(int index)
Gets the item id located on index.
final boolean hasCapacityFor(Item... item)
Determines if this container has the capacity for item.
final boolean containsAll(int... identifiers)
Determines if this container contains all identifiers.
The OutgoingPacket that sends a message to a Players chatbox in the client.
static String appendIndefiniteArticle(String thing)
Appends the determined indefinite article to thing.
Represents types of axes.
static Optional< AxeData > getDefinition(Player player)
Gets the definition for this hatchet.
final int level
The level.
Holds all the data for trees.
final int levelRequired
The level required to chop the tree.
static TreeData forId(int id)
Gets the tree data based on the object identification.
final int item
The product identification for chopping the tree.