RuneHive-Game
Loading...
Searching...
No Matches
Battlestaff.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 Battlestaff implements Fletchable {
9 FIRE_BATTLESTAFF(new Item(1391, 1), new Item(569, 1), new FletchableItem(new Item(1393, 1), 62, 125.0)),
10 WATER_BATTLESTAFF(new Item(1391, 1), new Item(571, 1), new FletchableItem(new Item(1395, 1), 54, 100.0)),
11 AIR_BATTLESTAFF(new Item(1391, 1), new Item(573, 1), new FletchableItem(new Item(1397, 1), 66, 137.5)),
12 EARTH_BATTLESTAFF(new Item(1391, 1), new Item(575, 1), new FletchableItem(new Item(1399, 1), 58, 112.5));
13
14 private final Item use;
15 private final Item with;
16 private final FletchableItem[] items;
17
19 this.use = use;
20 this.with = with;
21 this.items = items;
22 }
23
24 public static void load() {
25 for (Battlestaff battlestaff : values()) {
26 Fletching.addFletchable(battlestaff);
27 }
28 }
29
30 @Override
31 public int getAnimation() {
32 return 7531;
33 }
34
35 @Override
36 public int getGraphics() {
37 switch (this) {
39 return 1370;
41 return 1371;
43 return 1372;
44 case AIR_BATTLESTAFF:
45 default:
46 return 306;
47 }
48 }
49
50 @Override
51 public Item getUse() {
52 return use;
53 }
54
55 @Override
56 public Item getWith() {
57 return with;
58 }
59
60 @Override
62 return items;
63 }
64
65 @Override
66 public String getProductionMessage() {
67 return null;
68 }
69
70 @Override
71 public Item[] getIngredients() {
72 return new Item[] { use, with };
73 }
74}
static void addFletchable(Fletchable fletchable)
The container class that represents an item that can be interacted with.
Definition Item.java:21
Battlestaff(Item use, Item with, FletchableItem... items)