1package com.runehive.content.wintertodt.actions;
3import com.runehive.Config;
4import com.runehive.content.wintertodt.Wintertodt;
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;
31 if(
getMob().inventory.getFreeSlots() > 0) {
32 getMob().message(
"You pick a bruma herb.");
34 getMob().inventory.refresh();
39 getMob().message(
"You have no space for that.");
40 getMob().action.getCurrentAction().cancel();
The class that contains setting-related constants for the server.
static final double FARMING_MODIFICATION
The experience modification for farming.
static final int BRUMA_HERB
void execute()
A function representing the unit of work that will be carried out.
String getName()
Gets the name of this action.
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 byte getLevelForExperience(double experience)
Gets the level for a given experience amount.
static final int FARMING
The farming skill id.
A queue policy determines whether the action can occur while walking.
NON_WALKABLE
This indicates actions cannot occur while walking.