RuneHive-Game
Loading...
Searching...
No Matches
Bolt.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
import
com.runehive.util.Items;
8
9
public
enum
Bolt
implements
Fletchable
{
10
OPAL_BOLT
(
new
Item
(877, 10),
new
Item
(45, 10),
new
FletchableItem
(
new
Item
(879, 10), 11, 1.6)),
11
PEARL_BOLT
(
new
Item
(9140, 10),
new
Item
(46, 10),
new
FletchableItem
(
new
Item
(880, 10), 41, 3.2)),
12
RED_TOPAZ_BOLT
(
new
Item
(9141, 10),
new
Item
(9188, 10),
new
FletchableItem
(
new
Item
(9336, 10), 48, 3.9)),
13
SAPPHIRE_BOLT
(
new
Item
(9142, 10),
new
Item
(9189, 10),
new
FletchableItem
(
new
Item
(9337, 10), 56, 4.7)),
14
EMERALD_BOLT
(
new
Item
(9142, 10),
new
Item
(9190, 10),
new
FletchableItem
(
new
Item
(9338, 10), 58, 5.5)),
15
RUBY_BOLT
(
new
Item
(9143, 10),
new
Item
(9191, 10),
new
FletchableItem
(
new
Item
(9339, 10), 63, 6.3)),
16
DIAMOND_BOLT
(
new
Item
(9143, 10),
new
Item
(9192, 10),
new
FletchableItem
(
new
Item
(9340, 10), 65, 7.0)),
17
DRAGONSTONE_BOLT
(
new
Item
(9144, 10),
new
Item
(9193, 10),
new
FletchableItem
(
new
Item
(9341, 10), 71, 8.2)),
18
AMETHYST_BOLT
(
new
Item
(
Items
.
BROAD_BOLTS
, 10),
new
Item
(
Items
.
AMETHYST_BOLT_TIPS
, 10),
new
FletchableItem
(
new
Item
(
Items
.
AMETHYST_BROAD_BOLTS
, 10), 76, 10.6)),
19
ONYX_BOLT
(
new
Item
(9144, 10),
new
Item
(9194, 10),
new
FletchableItem
(
new
Item
(9342, 10), 73, 9.4));
20
21
private
final
Item
use
;
22
private
final
Item
with
;
23
private
final
FletchableItem
[]
items
;
24
25
Bolt
(
Item
use
,
Item
with
,
FletchableItem
...
items
) {
26
this.use =
use
;
27
this.with =
with
;
28
this.items =
items
;
29
}
30
31
public
static
void
load
() {
32
for
(
Bolt
cuttable : values()) {
33
Fletching
.
addFletchable
(cuttable);
34
}
35
}
36
37
@Override
38
public
int
getAnimation
() {
39
switch
(
this
) {
40
case
OPAL_BOLT
:
41
return
8472;
42
case
PEARL_BOLT
:
43
return
8473;
44
case
RED_TOPAZ_BOLT
:
45
return
8475;
46
case
SAPPHIRE_BOLT
:
47
case
EMERALD_BOLT
:
48
return
8476;
49
case
RUBY_BOLT
:
50
case
DIAMOND_BOLT
:
51
return
8477;
52
case
DRAGONSTONE_BOLT
:
53
case
ONYX_BOLT
:
54
default
:
55
return
8478;
56
}
57
}
58
59
@Override
60
public
int
getGraphics
() {
61
return
-1;
62
}
63
64
@Override
65
public
Item
getUse
() {
66
return
use
;
67
}
68
69
@Override
70
public
Item
getWith
() {
71
return
with
;
72
}
73
74
@Override
75
public
FletchableItem
[]
getFletchableItems
() {
76
return
items
;
77
}
78
79
@Override
80
public
String
getProductionMessage
() {
81
return
null
;
82
}
83
84
@Override
85
public
Item
[]
getIngredients
() {
86
return
new
Item
[] {
use
,
with
};
87
}
88
}
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.util.Items
Definition
Items.java:3
com.runehive.util.Items.AMETHYST_BROAD_BOLTS
static final int AMETHYST_BROAD_BOLTS
Definition
Items.java:21321
com.runehive.util.Items.AMETHYST_BOLT_TIPS
static final int AMETHYST_BOLT_TIPS
Definition
Items.java:21343
com.runehive.util.Items.BROAD_BOLTS
static final int BROAD_BOLTS
Definition
Items.java:11880
com.runehive.content.skill.impl.fletching.impl.Bolt.load
static void load()
Definition
Bolt.java:31
com.runehive.content.skill.impl.fletching.impl.Bolt.SAPPHIRE_BOLT
SAPPHIRE_BOLT
Definition
Bolt.java:13
com.runehive.content.skill.impl.fletching.impl.Bolt.OPAL_BOLT
OPAL_BOLT
Definition
Bolt.java:10
com.runehive.content.skill.impl.fletching.impl.Bolt.RED_TOPAZ_BOLT
RED_TOPAZ_BOLT
Definition
Bolt.java:12
com.runehive.content.skill.impl.fletching.impl.Bolt.getGraphics
int getGraphics()
Definition
Bolt.java:60
com.runehive.content.skill.impl.fletching.impl.Bolt.getWith
Item getWith()
Definition
Bolt.java:70
com.runehive.content.skill.impl.fletching.impl.Bolt.DIAMOND_BOLT
DIAMOND_BOLT
Definition
Bolt.java:16
com.runehive.content.skill.impl.fletching.impl.Bolt.AMETHYST_BOLT
AMETHYST_BOLT
Definition
Bolt.java:18
com.runehive.content.skill.impl.fletching.impl.Bolt.EMERALD_BOLT
EMERALD_BOLT
Definition
Bolt.java:14
com.runehive.content.skill.impl.fletching.impl.Bolt.getUse
Item getUse()
Definition
Bolt.java:65
com.runehive.content.skill.impl.fletching.impl.Bolt.use
final Item use
Definition
Bolt.java:21
com.runehive.content.skill.impl.fletching.impl.Bolt.items
final FletchableItem[] items
Definition
Bolt.java:23
com.runehive.content.skill.impl.fletching.impl.Bolt.Bolt
Bolt(Item use, Item with, FletchableItem... items)
Definition
Bolt.java:25
com.runehive.content.skill.impl.fletching.impl.Bolt.getProductionMessage
String getProductionMessage()
Definition
Bolt.java:80
com.runehive.content.skill.impl.fletching.impl.Bolt.with
final Item with
Definition
Bolt.java:22
com.runehive.content.skill.impl.fletching.impl.Bolt.ONYX_BOLT
ONYX_BOLT
Definition
Bolt.java:19
com.runehive.content.skill.impl.fletching.impl.Bolt.DRAGONSTONE_BOLT
DRAGONSTONE_BOLT
Definition
Bolt.java:17
com.runehive.content.skill.impl.fletching.impl.Bolt.RUBY_BOLT
RUBY_BOLT
Definition
Bolt.java:15
com.runehive.content.skill.impl.fletching.impl.Bolt.getIngredients
Item[] getIngredients()
Definition
Bolt.java:85
com.runehive.content.skill.impl.fletching.impl.Bolt.PEARL_BOLT
PEARL_BOLT
Definition
Bolt.java:11
com.runehive.content.skill.impl.fletching.impl.Bolt.getAnimation
int getAnimation()
Definition
Bolt.java:38
com.runehive.content.skill.impl.fletching.impl.Bolt.getFletchableItems
FletchableItem[] getFletchableItems()
Definition
Bolt.java:75
com.runehive.content.skill.impl.fletching.Fletchable
Definition
Fletchable.java:5