RuneHive-Game
Loading...
Searching...
No Matches
Crossbow.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
public
enum
Crossbow
implements
Fletchable
{
8
BRONZE_CROSSBOW
(
new
Item
(9440),
new
Item
(9420),
new
FletchableItem
(
new
Item
(9454), 9, 12.0)),
9
IRON_CROSSBOW
(
new
Item
(9444),
new
Item
(9423),
new
FletchableItem
(
new
Item
(9457), 39, 44.0)),
10
STEEL_CROSSBOW
(
new
Item
(9446),
new
Item
(9425),
new
FletchableItem
(
new
Item
(9459), 46, 54.0)),
11
MITHRIL_CROSSBOW
(
new
Item
(9448),
new
Item
(9427),
new
FletchableItem
(
new
Item
(9461), 54, 64.0)),
12
ADAMANT_CROSSBOW
(
new
Item
(9450),
new
Item
(9429),
new
FletchableItem
(
new
Item
(9463), 61, 82.0)),
13
RUNE_CROSSBOW
(
new
Item
(9452),
new
Item
(9431),
new
FletchableItem
(
new
Item
(9465), 69, 100.0));
14
15
private
final
Item
use
;
16
private
final
Item
with
;
17
private
final
FletchableItem
[]
items
;
18
19
Crossbow
(
Item
use
,
Item
with
,
FletchableItem
...
items
) {
20
this.use =
use
;
21
this.with =
with
;
22
this.items =
items
;
23
}
24
25
public
static
void
load
() {
26
for
(
Crossbow
cuttable : values()) {
27
Fletching
.
addFletchable
(cuttable);
28
}
29
}
30
31
@Override
32
public
int
getAnimation
() {
33
switch
(
this
) {
34
case
BRONZE_CROSSBOW
:
35
return
4436;
36
case
IRON_CROSSBOW
:
37
return
4438;
38
case
STEEL_CROSSBOW
:
39
return
4439;
40
case
MITHRIL_CROSSBOW
:
41
return
4440;
42
case
ADAMANT_CROSSBOW
:
43
return
4441;
44
case
RUNE_CROSSBOW
:
45
return
4442;
46
default
:
47
return
4436;
48
}
49
}
50
51
@Override
52
public
int
getGraphics
() {
53
return
-1;
54
}
55
56
@Override
57
public
Item
getUse
() {
58
return
use
;
59
}
60
61
@Override
62
public
Item
getWith
() {
63
return
with
;
64
}
65
66
@Override
67
public
FletchableItem
[]
getFletchableItems
() {
68
return
items
;
69
}
70
71
@Override
72
public
String
getProductionMessage
() {
73
return
null
;
74
}
75
76
@Override
77
public
Item
[]
getIngredients
() {
78
return
new
Item
[] {
use
,
with
};
79
}
80
}
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.Crossbow.RUNE_CROSSBOW
RUNE_CROSSBOW
Definition
Crossbow.java:13
com.runehive.content.skill.impl.fletching.impl.Crossbow.ADAMANT_CROSSBOW
ADAMANT_CROSSBOW
Definition
Crossbow.java:12
com.runehive.content.skill.impl.fletching.impl.Crossbow.getProductionMessage
String getProductionMessage()
Definition
Crossbow.java:72
com.runehive.content.skill.impl.fletching.impl.Crossbow.BRONZE_CROSSBOW
BRONZE_CROSSBOW
Definition
Crossbow.java:8
com.runehive.content.skill.impl.fletching.impl.Crossbow.getWith
Item getWith()
Definition
Crossbow.java:62
com.runehive.content.skill.impl.fletching.impl.Crossbow.getIngredients
Item[] getIngredients()
Definition
Crossbow.java:77
com.runehive.content.skill.impl.fletching.impl.Crossbow.load
static void load()
Definition
Crossbow.java:25
com.runehive.content.skill.impl.fletching.impl.Crossbow.STEEL_CROSSBOW
STEEL_CROSSBOW
Definition
Crossbow.java:10
com.runehive.content.skill.impl.fletching.impl.Crossbow.getUse
Item getUse()
Definition
Crossbow.java:57
com.runehive.content.skill.impl.fletching.impl.Crossbow.getFletchableItems
FletchableItem[] getFletchableItems()
Definition
Crossbow.java:67
com.runehive.content.skill.impl.fletching.impl.Crossbow.Crossbow
Crossbow(Item use, Item with, FletchableItem... items)
Definition
Crossbow.java:19
com.runehive.content.skill.impl.fletching.impl.Crossbow.IRON_CROSSBOW
IRON_CROSSBOW
Definition
Crossbow.java:9
com.runehive.content.skill.impl.fletching.impl.Crossbow.items
final FletchableItem[] items
Definition
Crossbow.java:17
com.runehive.content.skill.impl.fletching.impl.Crossbow.use
final Item use
Definition
Crossbow.java:15
com.runehive.content.skill.impl.fletching.impl.Crossbow.getGraphics
int getGraphics()
Definition
Crossbow.java:52
com.runehive.content.skill.impl.fletching.impl.Crossbow.getAnimation
int getAnimation()
Definition
Crossbow.java:32
com.runehive.content.skill.impl.fletching.impl.Crossbow.MITHRIL_CROSSBOW
MITHRIL_CROSSBOW
Definition
Crossbow.java:11
com.runehive.content.skill.impl.fletching.impl.Crossbow.with
final Item with
Definition
Crossbow.java:16
com.runehive.content.skill.impl.fletching.Fletchable
Definition
Fletchable.java:5