1package com.runehive.content.wintertodt.actions;
3import com.runehive.Config;
4import com.runehive.content.skill.impl.woodcutting.AxeData;
5import com.runehive.content.wintertodt.Wintertodt;
6import com.runehive.game.action.Action;
7import com.runehive.game.action.policy.WalkablePolicy;
8import com.runehive.game.world.entity.mob.player.Player;
9import com.runehive.game.world.entity.skill.Skill;
10import com.runehive.game.world.items.Item;
33 if (axeData ==
null) {
34 getMob().message(
"You need an axe to chop this tree.");
36 getMob().action.getCurrentAction().cancel();
40 if(
getMob().inventory.getFreeSlots() <= 0) {
41 getMob().message(
"You have no space for that.");
43 getMob().action.getCurrentAction().cancel();
51 getMob().inventory.refresh();
52 getMob().message(
"You get a bruma root.");
The class that contains setting-related constants for the server.
static final double WOODCUTTING_MODIFICATION
The experience modification for woodcutting.
static final int BRUMA_ROOT
Item ids.
String getName()
Gets the name of this action.
void execute()
A function representing the unit of work that will be carried out.
WalkablePolicy getWalkablePolicy()
Gets the WalkablePolicy of this action.
T getMob()
Gets the player.
Action(T mob, int delay, boolean instant)
Creates a new Action randomevent.
This class represents a character controlled by a player.
Represents a trainable and usable skill.
static final int WOODCUTTING
The woodcutting skill id.
static final byte getLevelForExperience(double experience)
Gets the level for a given experience amount.
The container class that represents an item that can be interacted with.
Represents types of axes.
static Optional< AxeData > getDefinition(Player player)
Gets the definition for this hatchet.
final int animation
The animation.
A queue policy determines whether the action can occur while walking.
NON_WALKABLE
This indicates actions cannot occur while walking.