RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
Gem.java
1
package
com.osroyale.content.skill.impl.crafting.impl;
2
3
import
com.osroyale.content.skill.impl.crafting.Craftable;
4
import
com.osroyale.content.skill.impl.crafting.CraftableItem;
5
import
com.osroyale.content.skill.impl.crafting.Crafting;
6
import
com.osroyale.game.world.items.Item;
7
49
50
public
enum
Gem implements
Craftable
{
51
OPAL(
new
Item(1755),
new
Item(1625),
new
CraftableItem
(
new
Item(1609),
new
Item(1625), 1, 15.0)),
52
JADE(
new
Item(1755),
new
Item(1627),
new
CraftableItem
(
new
Item(1611),
new
Item(1627), 13, 20.0)),
53
RED_TOPAZ(
new
Item(1755),
new
Item(1629),
new
CraftableItem
(
new
Item(1613),
new
Item(1629), 16, 25.0)),
54
SAPPHIRE(
new
Item(1755),
new
Item(1623),
new
CraftableItem
(
new
Item(1607),
new
Item(1623), 20, 50.0)),
55
EMERALD(
new
Item(1755),
new
Item(1621),
new
CraftableItem
(
new
Item(1605),
new
Item(1621), 27, 67.5)),
56
RUBY(
new
Item(1755),
new
Item(1619),
new
CraftableItem
(
new
Item(1603),
new
Item(1619), 34, 85.0)),
57
DIAMOND(
new
Item(1755),
new
Item(1617),
new
CraftableItem
(
new
Item(1601),
new
Item(1617), 43, 107.5)),
58
DRAGONSTONE(
new
Item(1755),
new
Item(1631),
new
CraftableItem
(
new
Item(1615),
new
Item(1631), 55, 137.5)),
59
ONYX(
new
Item(1755),
new
Item(6571),
new
CraftableItem
(
new
Item(6573),
new
Item(6571), 67, 167.5)),
60
ZENYTE(
new
Item(1755),
new
Item(19496),
new
CraftableItem
(
new
Item(19493),
new
Item(19496), 89, 200));
61
62
63
private
final
Item use;
64
private
final
Item with;
65
private
final
CraftableItem
[] items;
66
67
Gem(Item use, Item with,
CraftableItem
... items) {
68
this.use = use;
69
this.with = with;
70
this.items = items;
71
}
72
73
public
static
void
load() {
74
for
(Gem cuttable : values()) {
75
Crafting
.addCraftable(cuttable);
76
}
77
}
78
79
@Override
80
public
int
getAnimation
() {
81
switch
(
this
) {
82
case
OPAL:
83
case
JADE:
84
default
:
85
return
891;
86
case
RED_TOPAZ:
87
return
892;
88
case
SAPPHIRE:
89
return
888;
90
case
EMERALD:
91
return
889;
92
case
RUBY:
93
return
887;
94
case
DIAMOND:
95
return
890;
96
case
DRAGONSTONE:
97
return
890;
98
case
ONYX:
99
return
2717;
100
}
101
}
102
103
@Override
104
public
Item
getUse
() {
105
return
use;
106
}
107
108
@Override
109
public
Item
getWith
() {
110
return
with;
111
}
112
113
@Override
114
public
CraftableItem
[]
getCraftableItems
() {
115
return
items;
116
}
117
118
@Override
119
public
String
getProductionMessage
() {
120
return
null
;
121
}
122
123
@Override
124
public
Item[]
getIngredients
(
int
index) {
125
return
new
Item[] { with };
126
}
127
128
@Override
129
public
String
getName
() {
130
return
"Gem"
;
131
}
132
}
com.osroyale.content.skill.impl.crafting.CraftableItem
Definition
CraftableItem.java:40
com.osroyale.content.skill.impl.crafting.Crafting
Definition
Crafting.java:67
com.osroyale.content.skill.impl.crafting.impl.Gem.getWith
Item getWith()
Definition
Gem.java:109
com.osroyale.content.skill.impl.crafting.impl.Gem.getName
String getName()
Definition
Gem.java:129
com.osroyale.content.skill.impl.crafting.impl.Gem.getIngredients
Item[] getIngredients(int index)
Definition
Gem.java:124
com.osroyale.content.skill.impl.crafting.impl.Gem.getUse
Item getUse()
Definition
Gem.java:104
com.osroyale.content.skill.impl.crafting.impl.Gem.getAnimation
int getAnimation()
Definition
Gem.java:80
com.osroyale.content.skill.impl.crafting.impl.Gem.getCraftableItems
CraftableItem[] getCraftableItems()
Definition
Gem.java:114
com.osroyale.content.skill.impl.crafting.impl.Gem.getProductionMessage
String getProductionMessage()
Definition
Gem.java:119
com.osroyale.content.skill.impl.crafting.Craftable
Definition
Craftable.java:10