1package com.runehive.content.skill.impl.magic.spell.impl;
3import com.runehive.Config;
4import com.runehive.content.achievement.AchievementHandler;
5import com.runehive.content.achievement.AchievementKey;
6import com.runehive.content.activity.randomevent.RandomEventHandler;
7import com.runehive.content.skill.impl.magic.Magic;
8import com.runehive.content.skill.impl.magic.Spellbook;
9import com.runehive.content.skill.impl.magic.spell.Spell;
10import com.runehive.game.Animation;
11import com.runehive.game.Graphic;
12import com.runehive.game.world.entity.mob.player.Player;
13import com.runehive.game.world.entity.skill.Skill;
14import com.runehive.game.world.items.Item;
15import com.runehive.net.packet.out.SendForceTab;
16import com.runehive.net.packet.out.SendMessage;
18import java.util.Arrays;
29 return "High alchemy";
39 return new Item[] {
new Item(554, 5),
new Item(561, 1) };
The class that contains setting-related constants for the server.
static final int CURRENCY
The currency identification of the server.
static final double MAGIC_MODIFICATION
The experience modification for magic.
Handles the achievements.
static void activate(Player player, AchievementKey achievement)
Activates the achievement for the individual player.
static void trigger(Player player)
static final Item[] UNALCHEABLES
Stopwatch castingDelay
The casting stopwatch.
int getLevel()
Gets the level required to cast spell.
void execute(Player player, Item item)
Executes the magic spell.
Item[] getRunes()
Gets the runes required to cast the spell.
String getName()
Gets the name of the spell.
Class that models a single animation used by an entity.
Represents a single graphic that can be used by entities.
void clearNonWalkableActions()
Purges actions in the queue with a WalkablePolicy of NON_WALKABLE.
final SkillManager skills
void animate(int animation)
Optional< Graphic > graphic
This class represents a character controlled by a player.
final Inventory inventory
SpellCasting spellCasting
void send(OutgoingPacket encoder)
Represents a trainable and usable skill.
static final int MAGIC
The magic 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.
final int getId()
Gets the identification of this item.
boolean remove(Item item)
Attempts to withdraw item from this container.
boolean add(Item item)
Attempts to deposit item into this container.
boolean removeAll(Collection<? extends Item > items)
Attempts to withdraw items in bulk from this container.
void refresh()
Refreshes the players inventory.
The OutgoingPacket that sends a message to a Players chatbox in the client.
boolean elapsed(long time, TimeUnit unit)
The in-game spellbooks for players.
The itemcontainer for casting a spell.