RuneHive-Game
Loading...
Searching...
No Matches
Stringable.java
Go to the documentation of this file.
1package com.runehive.content.skill.impl.fletching.impl;
2
3import com.runehive.content.skill.impl.fletching.Fletchable;
4import com.runehive.content.skill.impl.fletching.FletchableItem;
5import com.runehive.content.skill.impl.fletching.Fletching;
6import com.runehive.game.world.items.Item;
7
8public enum Stringable implements Fletchable {
9 SHORTBOWS(new Item(1777), new Item(50), new FletchableItem(new Item(841), 5, 5.0)),
10 LONGBOWS(new Item(1777), new Item(48), new FletchableItem(new Item(839), 10, 5.0)),
11 OAK_SHORTBOWS(new Item(1777), new Item(54), new FletchableItem(new Item(843), 20, 16.5)),
12 OAK_LONGBOWBOWS(new Item(1777), new Item(56), new FletchableItem(new Item(845), 25, 25.0)),
13 WILLOW_SHORTBOWS(new Item(1777), new Item(60), new FletchableItem(new Item(849), 35, 32.25)),
14 WILLOW_LONGBOWBOWS(new Item(1777), new Item(58), new FletchableItem(new Item(847), 40, 41.5)),
15 MAPLE_SHORTBOWS(new Item(1777), new Item(64), new FletchableItem(new Item(853), 50, 50.0)),
16 MAPLE_LONGBOWBOWS(new Item(1777), new Item(62), new FletchableItem(new Item(851), 55, 58.2)),
17 YEW_SHORTBOWS(new Item(1777), new Item(68), new FletchableItem(new Item(857), 65, 67.5)),
18 YEW_LONGBOWBOWS(new Item(1777), new Item(66), new FletchableItem(new Item(855), 70, 75.0)),
19 MAGIC_SHORTBOWS(new Item(1777), new Item(72), new FletchableItem(new Item(861), 80, 83.2)),
20 MAGIC_LONGBOWBOWS(new Item(1777), new Item(70), new FletchableItem(new Item(859), 85, 91.5)),
21 BRONZE_CROSSBOWS(new Item(9438), new Item(9454), new FletchableItem(new Item(9174), 9, 6.0)),
22 IRON_CROSSBOWS(new Item(9438), new Item(9457), new FletchableItem(new Item(9177), 39, 22.0)),
23 STEEL_CROSSBOWS(new Item(9438), new Item(9459), new FletchableItem(new Item(9179), 46, 27.0)),
24 MITHRIL_CROSSBOWS(new Item(9438), new Item(9461), new FletchableItem(new Item(9181), 54, 32.0)),
25 ADAMANT_CROSSBOWS(new Item(9438), new Item(9463), new FletchableItem(new Item(9183), 61, 41.0)),
26 RUNITE_CROSSBOWS(new Item(9438), new Item(9465), new FletchableItem(new Item(9185), 61, 41.0));
27
28 private final Item use;
29 private final Item with;
30 private final FletchableItem[] items;
31
33 this.use = use;
34 this.with = with;
35 this.items = items;
36 }
37
38 public static void load() {
39 for (Stringable featherable : values()) {
40 Fletching.addFletchable(featherable);
41 }
42 }
43
44 @Override
45 public int getAnimation() {
46 switch (this) {
47 case SHORTBOWS:
48 return 6678;
49 case LONGBOWS:
50 return 6684;
51 case OAK_SHORTBOWS:
52 return 6679;
53 case OAK_LONGBOWBOWS:
54 return 6685;
56 return 6680;
58 return 6686;
59 case MAPLE_SHORTBOWS:
60 return 6681;
62 return 6687;
63 case YEW_SHORTBOWS:
64 return 6682;
65 case YEW_LONGBOWBOWS:
66 return 6688;
67 case MAGIC_SHORTBOWS:
68 return 6683;
70 return 6689;
72 return 9454;
73 case STEEL_CROSSBOWS:
74 return 9457;
75 case IRON_CROSSBOWS:
76 return 9459;
78 return 9461;
80 return 9463;
82 return 9465;
83 default:
84 return 6678;
85 }
86 }
87
88 @Override
89 public int getGraphics() {
90 return -1;
91 }
92
93 @Override
94 public Item getUse() {
95 return use;
96 }
97
98 @Override
99 public Item getWith() {
100 return with;
101 }
102
103 @Override
105 return items;
106 }
107
108 @Override
109 public String getProductionMessage() {
110 return null;
111 }
112
113 @Override
114 public Item[] getIngredients() {
115 return new Item[] { use, with };
116 }
117}
static void addFletchable(Fletchable fletchable)
The container class that represents an item that can be interacted with.
Definition Item.java:21
Stringable(Item use, Item with, FletchableItem... items)