1package com.runehive.content.skill.impl.magic.spell.impl;
3import com.runehive.Config;
4import com.runehive.content.skill.impl.magic.Spellbook;
5import com.runehive.content.skill.impl.magic.spell.Spell;
6import com.runehive.content.skill.impl.smithing.Smelting;
7import com.runehive.content.skill.impl.smithing.SmeltingData;
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.SendForceTab;
14import java.util.Optional;
35 return new Item[] {
new Item(554, 1),
new Item(561, 1) };
47 if (!data.isPresent()) {
48 player.
message(
"You can not super heat this item!");
53 player.
message(
"You do not contain the required items to super heat!");
58 player.
message(
"You need a smithing level of " + data.get().requirement +
" to do super heat this item!");
The class that contains setting-related constants for the server.
static final double MAGIC_MODIFICATION
The experience modification for magic.
static final double SMITHING_MODIFICATION
The experience modification for smithing.
Stopwatch castingDelay
The casting stopwatch.
String getName()
Gets the name of the spell.
Item[] getRunes()
Gets the runes required to cast the spell.
int getLevel()
Gets the level required to cast spell.
void execute(Player player, Item item)
Executes the magic spell.
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 message(String message)
SpellCasting spellCasting
void send(OutgoingPacket encoder)
Represents a trainable and usable skill.
static final int SMITHING
The smithing skill id.
static final int MAGIC
The magic skill id.
void addExperience(int id, double experience)
Adds experience to a given skill.
int getMaxLevel(int id)
Gets the highest possible level of a skill.
The container class that represents an item that can be interacted with.
final int getId()
Gets the identification of this item.
boolean addAll(Collection<? extends Item > items)
Attempts to deposit items in bulk into this container.
boolean removeAll(Collection<? extends Item > items)
Attempts to withdraw items in bulk from this container.
final boolean containsAll(int... identifiers)
Determines if this container contains all identifiers.
boolean elapsed(long time, TimeUnit unit)
The in-game spellbooks for players.
The enumerated type whose elements represent definitions for each smeltable bar.
static Optional< SmeltingData > getDefinitionByItem(int itemId)
Searches for a match for the internal required items.
The itemcontainer for casting a spell.