RuneHive-Game
Loading...
Searching...
No Matches
Featherable.java
Go to the documentation of this file.
1
package
com.runehive.content.skill.impl.fletching.impl;
2
3
import
com.runehive.content.skill.impl.fletching.Fletchable;
4
import
com.runehive.content.skill.impl.fletching.FletchableItem;
5
import
com.runehive.content.skill.impl.fletching.Fletching;
6
import
com.runehive.game.world.items.Item;
7
8
public
enum
Featherable
implements
Fletchable
{
9
HEADLESS_ARROWS
(
new
Item
(314, 15),
new
Item
(52, 15),
new
FletchableItem
(
new
Item
(53, 15), 1, 1.0)),
10
BRONZE_BOLT
(
new
Item
(314, 10),
new
Item
(9375, 10),
new
FletchableItem
(
new
Item
(877, 10), 9, 0.5)),
11
IRON_BOLT
(
new
Item
(314, 10),
new
Item
(9377, 10),
new
FletchableItem
(
new
Item
(9140, 10), 39, 1.5)),
12
STEEL_BOLT
(
new
Item
(314, 10),
new
Item
(9378, 10),
new
FletchableItem
(
new
Item
(9141, 10), 46, 3.5)),
13
MITHRIL_BOLT
(
new
Item
(314, 10),
new
Item
(9379, 10),
new
FletchableItem
(
new
Item
(9142, 10), 54, 5.0)),
14
ADAMANT_BOLT
(
new
Item
(314, 10),
new
Item
(9380, 10),
new
FletchableItem
(
new
Item
(9143, 10), 61, 7.0)),
15
RUNITE_BOLT
(
new
Item
(314, 10),
new
Item
(9381, 10),
new
FletchableItem
(
new
Item
(9144, 10), 69, 10.0)),
16
BRONZE_DARTs
(
new
Item
(314, 10),
new
Item
(819, 10),
new
FletchableItem
(
new
Item
(806, 10), 1, 1.8)),
17
IRON_DARTs
(
new
Item
(314, 10),
new
Item
(820, 10),
new
FletchableItem
(
new
Item
(807, 10), 22, 3.8)),
18
STEEL_DARTs
(
new
Item
(314, 10),
new
Item
(821, 10),
new
FletchableItem
(
new
Item
(808, 10), 37, 7.5)),
19
MITHRIL_DARTs
(
new
Item
(314, 10),
new
Item
(822, 10),
new
FletchableItem
(
new
Item
(809, 10), 52, 11.2)),
20
ADAMANT_DARTs
(
new
Item
(314, 10),
new
Item
(823, 10),
new
FletchableItem
(
new
Item
(810, 10), 67, 15.0)),
21
RUNE_DARTs
(
new
Item
(314, 10),
new
Item
(824, 10),
new
FletchableItem
(
new
Item
(811, 10), 81, 18.8)),
22
AMETHYST_DARTs
(
new
Item
(314, 10),
new
Item
(25853, 10),
new
FletchableItem
(
new
Item
(25849, 10), 90, 21.0)),
23
DRAGON_DARTs
(
new
Item
(314, 10),
new
Item
(11232, 10),
new
FletchableItem
(
new
Item
(11230, 10), 95, 25.0));
24
25
private
final
Item
use
;
26
private
final
Item
with
;
27
private
final
FletchableItem
[]
items
;
28
29
Featherable
(
Item
use
,
Item
with
,
FletchableItem
...
items
) {
30
this.use =
use
;
31
this.with =
with
;
32
this.items =
items
;
33
}
34
35
public
static
void
load
() {
36
for
(
Featherable
featherable : values()) {
37
Fletching
.
addFletchable
(featherable);
38
}
39
}
40
41
@Override
42
public
int
getAnimation
() {
43
switch
(
this
) {
44
case
BRONZE_DARTs
:
45
return
8482;
46
case
IRON_DARTs
:
47
return
8483;
48
case
STEEL_DARTs
:
49
return
8484;
50
case
MITHRIL_DARTs
:
51
return
8485;
52
case
ADAMANT_DARTs
:
53
return
8486;
54
case
RUNE_DARTs
:
55
return
8487;
56
case
DRAGON_DARTs
:
57
return
8488;
58
case
BRONZE_BOLT
:
59
return
8463;
60
case
IRON_BOLT
:
61
return
8464;
62
case
STEEL_BOLT
:
63
return
8467;
64
case
MITHRIL_BOLT
:
65
return
8468;
66
case
ADAMANT_BOLT
:
67
return
8469;
68
case
RUNITE_BOLT
:
69
return
8470;
70
case
HEADLESS_ARROWS
:
71
default
:
72
return
1248;
73
}
74
}
75
76
@Override
77
public
int
getGraphics
() {
78
return
-1;
79
}
80
81
@Override
82
public
Item
getUse
() {
83
return
use
;
84
}
85
86
@Override
87
public
Item
getWith
() {
88
return
with
;
89
}
90
91
@Override
92
public
FletchableItem
[]
getFletchableItems
() {
93
return
items
;
94
}
95
96
@Override
97
public
String
getProductionMessage
() {
98
return
null
;
99
}
100
101
@Override
102
public
Item
[]
getIngredients
() {
103
return
new
Item
[] {
use
,
with
};
104
}
105
}
com.runehive.content.skill.impl.fletching.FletchableItem
Definition
FletchableItem.java:5
com.runehive.content.skill.impl.fletching.Fletching
Handles the fletching skill.
Definition
Fletching.java:34
com.runehive.content.skill.impl.fletching.Fletching.addFletchable
static void addFletchable(Fletchable fletchable)
Definition
Fletching.java:46
com.runehive.game.world.items.Item
The container class that represents an item that can be interacted with.
Definition
Item.java:21
com.runehive.content.skill.impl.fletching.impl.Featherable.Featherable
Featherable(Item use, Item with, FletchableItem... items)
Definition
Featherable.java:29
com.runehive.content.skill.impl.fletching.impl.Featherable.STEEL_BOLT
STEEL_BOLT
Definition
Featherable.java:12
com.runehive.content.skill.impl.fletching.impl.Featherable.AMETHYST_DARTs
AMETHYST_DARTs
Definition
Featherable.java:22
com.runehive.content.skill.impl.fletching.impl.Featherable.getUse
Item getUse()
Definition
Featherable.java:82
com.runehive.content.skill.impl.fletching.impl.Featherable.getFletchableItems
FletchableItem[] getFletchableItems()
Definition
Featherable.java:92
com.runehive.content.skill.impl.fletching.impl.Featherable.RUNITE_BOLT
RUNITE_BOLT
Definition
Featherable.java:15
com.runehive.content.skill.impl.fletching.impl.Featherable.BRONZE_DARTs
BRONZE_DARTs
Definition
Featherable.java:16
com.runehive.content.skill.impl.fletching.impl.Featherable.STEEL_DARTs
STEEL_DARTs
Definition
Featherable.java:18
com.runehive.content.skill.impl.fletching.impl.Featherable.getWith
Item getWith()
Definition
Featherable.java:87
com.runehive.content.skill.impl.fletching.impl.Featherable.IRON_BOLT
IRON_BOLT
Definition
Featherable.java:11
com.runehive.content.skill.impl.fletching.impl.Featherable.items
final FletchableItem[] items
Definition
Featherable.java:27
com.runehive.content.skill.impl.fletching.impl.Featherable.ADAMANT_DARTs
ADAMANT_DARTs
Definition
Featherable.java:20
com.runehive.content.skill.impl.fletching.impl.Featherable.getIngredients
Item[] getIngredients()
Definition
Featherable.java:102
com.runehive.content.skill.impl.fletching.impl.Featherable.use
final Item use
Definition
Featherable.java:25
com.runehive.content.skill.impl.fletching.impl.Featherable.RUNE_DARTs
RUNE_DARTs
Definition
Featherable.java:21
com.runehive.content.skill.impl.fletching.impl.Featherable.DRAGON_DARTs
DRAGON_DARTs
Definition
Featherable.java:23
com.runehive.content.skill.impl.fletching.impl.Featherable.ADAMANT_BOLT
ADAMANT_BOLT
Definition
Featherable.java:14
com.runehive.content.skill.impl.fletching.impl.Featherable.getProductionMessage
String getProductionMessage()
Definition
Featherable.java:97
com.runehive.content.skill.impl.fletching.impl.Featherable.IRON_DARTs
IRON_DARTs
Definition
Featherable.java:17
com.runehive.content.skill.impl.fletching.impl.Featherable.BRONZE_BOLT
BRONZE_BOLT
Definition
Featherable.java:10
com.runehive.content.skill.impl.fletching.impl.Featherable.with
final Item with
Definition
Featherable.java:26
com.runehive.content.skill.impl.fletching.impl.Featherable.HEADLESS_ARROWS
HEADLESS_ARROWS
Definition
Featherable.java:9
com.runehive.content.skill.impl.fletching.impl.Featherable.load
static void load()
Definition
Featherable.java:35
com.runehive.content.skill.impl.fletching.impl.Featherable.MITHRIL_DARTs
MITHRIL_DARTs
Definition
Featherable.java:19
com.runehive.content.skill.impl.fletching.impl.Featherable.MITHRIL_BOLT
MITHRIL_BOLT
Definition
Featherable.java:13
com.runehive.content.skill.impl.fletching.impl.Featherable.getAnimation
int getAnimation()
Definition
Featherable.java:42
com.runehive.content.skill.impl.fletching.impl.Featherable.getGraphics
int getGraphics()
Definition
Featherable.java:77
com.runehive.content.skill.impl.fletching.Fletchable
Definition
Fletchable.java:5