1package com.runehive.content.skill.impl.magic.spell.impl;
3import com.runehive.content.skill.impl.magic.Spellbook;
4import com.runehive.content.skill.impl.magic.spell.Spell;
5import com.runehive.game.Animation;
6import com.runehive.game.Graphic;
7import com.runehive.game.UpdatePriority;
8import com.runehive.game.world.entity.combat.attack.listener.other.VengeanceListener;
9import com.runehive.game.world.entity.mob.player.Player;
10import com.runehive.game.world.entity.skill.Skill;
11import com.runehive.game.world.items.Item;
12import com.runehive.net.packet.out.SendMessage;
13import com.runehive.net.packet.out.SendWidget;
15import java.util.concurrent.TimeUnit;
41 player.
send(
new SendMessage(
"You need a defence level of 45 to cast this spell!"));
49 player.
send(
new SendMessage(
"You can only cast vengeance once every 30 seconds."));
Stopwatch vengeanceDelay
The vengeance stopwatch.
Handles the vengeance spell.
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.
static VengeanceListener get()
final SkillManager skills
void animate(int animation)
Optional< Graphic > graphic
This class represents a character controlled by a player.
SpellCasting spellCasting
void send(OutgoingPacket encoder)
Combat< Player > getCombat()
The combat of the mob.
Represents a trainable and usable skill.
static final int DEFENCE
The defence skill id.
int getMaxLevel(int id)
Gets the highest possible level of a skill.
The container class that represents an item that can be interacted with.
The OutgoingPacket that sends a message to a Players chatbox in the client.
long elapsedTime(TimeUnit unit)
The in-game spellbooks for players.
Represents different priorities for updating.
The itemcontainer for casting a spell.