RuneHive-Game
Loading...
Searching...
No Matches
SpellEnchant.java
Go to the documentation of this file.
1package com.runehive.content.skill.impl.magic.enchant;
2
3import com.runehive.game.world.items.Item;
4
5public enum SpellEnchant {
6 SAPPHIRE(1155, new Item(555, 1), new Item(564, 1)),
7 EMERALD(1165, new Item(556, 3), new Item(564, 1)),
8 RUBY(1176, new Item(554, 5), new Item(564, 1)),
9 DIAMOND(1180, new Item(557, 10), new Item(564, 1)),
10 DRAGONSTONE(1187, new Item(555, 15), new Item(557, 15), new Item(564, 1)),
11 ONYX(6003, new Item(557, 20), new Item(554, 20), new Item(564, 1)),
12 ZENYTE(40180, new Item(565, 20), new Item(566, 20), new Item(564));
13
14 private final int spell;
15
16 private final Item[] runes;
17
19 this.spell = spell;
20 this.runes = runes;
21 }
22
23 public int getSpell() {
24 return spell;
25 }
26
27 public Item[] getRunes() {
28 return runes;
29 }
30
31 public static SpellEnchant forSpell(int id) {
32 for (SpellEnchant spellEnchant : values()) {
33 if (spellEnchant.getSpell() == id)
34 return spellEnchant;
35 }
36 return null;
37 }
38}
39
The container class that represents an item that can be interacted with.
Definition Item.java:21