RuneHive-Game
Loading...
Searching...
No Matches
Bolt.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;
7import com.runehive.util.Items;
8
9public 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)),
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
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;
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
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}
static void addFletchable(Fletchable fletchable)
The container class that represents an item that can be interacted with.
Definition Item.java:21
static final int AMETHYST_BROAD_BOLTS
Definition Items.java:21321
static final int AMETHYST_BOLT_TIPS
Definition Items.java:21343
static final int BROAD_BOLTS
Definition Items.java:11880
Bolt(Item use, Item with, FletchableItem... items)
Definition Bolt.java:25