RuneHive-Game
Loading...
Searching...
No Matches
Arrow.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 Arrow implements Fletchable {
10 BRONZE_ARROWS(new Item(53, 15), new Item(39, 15), new FletchableItem(new Item(882, 15), 1, 20)),
11 IRON_ARROWS(new Item(53, 15), new Item(40, 15), new FletchableItem(new Item(884, 15), 15, 37.5)),
12 STEEL_ARROWS(new Item(53, 15), new Item(41, 15), new FletchableItem(new Item(886, 15), 30, 7.0)),
13 MITHRIL_ARROWS(new Item(53, 15), new Item(42, 15), new FletchableItem(new Item(888, 15), 45, 112.5)),
14 ADAMANT_ARROWS(new Item(53, 15), new Item(43, 15), new FletchableItem(new Item(890, 15), 60, 150.0)),
15 RUNE_ARROWS(new Item(53, 15), new Item(44, 15), new FletchableItem(new Item(892, 15), 75, 187.5)),
16 DRAGON_ARROWS(new Item(53, 15), new Item(11237, 15), new FletchableItem(new Item(11212, 15), 90, 225.0)),
17 AMETHYST_ARROWS(new Item(53, 15), new Item(Items.AMETHYST_ARROWTIPS, 15), new FletchableItem(new Item(Items.AMETHYST_ARROW, 15), 82, 202.5)),
19
20 DRAGON_JAVELIN(new Item(19584, 15), new Item(19582, 15), new FletchableItem(new Item(19484, 15), 92, 225.0));
21
22
23 private final Item use;
24 private final Item with;
25 private final FletchableItem[] items;
26
28 this.use = use;
29 this.with = with;
30 this.items = items;
31 }
32
33 public static void load() {
34 for (Arrow cuttable : values()) {
35 Fletching.addFletchable(cuttable);
36 }
37 }
38
39 @Override
40 public int getAnimation() {
41 return 8480;
42 }
43
44 @Override
45 public int getGraphics() {
46 return -1;
47 }
48
49 @Override
50 public Item getUse() {
51 return use;
52 }
53
54 @Override
55 public Item getWith() {
56 return with;
57 }
58
59 @Override
61 return items;
62 }
63
64 @Override
65 public String getProductionMessage() {
66 return null;
67 }
68
69 @Override
70 public Item[] getIngredients() {
71 return new Item[] { use, with };
72 }
73}
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_ARROWTIPS
Definition Items.java:21355
static final int JAVELIN_SHAFT
Definition Items.java:19589
static final int AMETHYST_ARROW
Definition Items.java:21331
static final int AMETHYST_JAVELIN
Definition Items.java:21323
static final int AMETHYST_JAVELIN_HEADS
Definition Items.java:21357
Arrow(Item use, Item with, FletchableItem... items)
Definition Arrow.java:27