1package com.runehive.content.skill.impl.magic.spell.impl;
3import com.runehive.Config;
4import com.runehive.content.skill.impl.magic.Magic;
5import com.runehive.content.skill.impl.magic.Spellbook;
6import com.runehive.content.skill.impl.magic.spell.Spell;
7import com.runehive.game.Animation;
8import com.runehive.game.Graphic;
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;
18 return "Bones to peaches";
54 player.
send(
new SendMessage(
"You have converted " + amount +
" bones to peaches."));
The class that contains setting-related constants for the server.
static final double MAGIC_MODIFICATION
The experience modification for magic.
int getLevel()
Gets the level required to cast spell.
Item[] getRunes()
Gets the runes required to cast the spell.
void execute(Player player, Item item)
Executes the magic 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.
final SkillManager skills
void animate(int animation)
Optional< Graphic > graphic
This class represents a character controlled by a player.
final Inventory inventory
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 computeAmountForId(int id)
Computes the total quantity of the Items in this container with id.
boolean remove(Item item)
Attempts to withdraw item from this container.
boolean add(Item item)
Attempts to deposit item into this container.
boolean contains(int id)
Determines if this container contains id.
boolean removeAll(Collection<? extends Item > items)
Attempts to withdraw items in bulk from this container.
The OutgoingPacket that sends a message to a Players chatbox in the client.
The in-game spellbooks for players.
The itemcontainer for casting a spell.