RuneHive-Game
Loading...
Searching...
No Matches
Leather.java
Go to the documentation of this file.
1package com.runehive.content.skill.impl.crafting.impl;
2
3import com.runehive.content.skill.impl.crafting.Craftable;
4import com.runehive.content.skill.impl.crafting.CraftableItem;
5import com.runehive.game.world.items.Item;
6
7public enum Leather implements Craftable {
8 LEATHER_GLOVES(new Item(1733), new Item(1741), new CraftableItem(new Item(1059), new Item(1741), 1, 13.8)),
9 LEATHER_BOOTS(new Item(1733), new Item(1741), new CraftableItem(new Item(1061), new Item(1741), 7, 16.25)),
10 LEATHER_COWL(new Item(1733), new Item(1741), new CraftableItem(new Item(1167), new Item(1741), 9, 18.5)),
11 LEATHER_VANBRACES(new Item(1733), new Item(1741), new CraftableItem(new Item(1063), new Item(1741), 11, 22.0)),
12 LEATHER_BODY(new Item(1733), new Item(1741), new CraftableItem(new Item(1129), new Item(1741), 14, 25.0)),
13 LEATHER_CHAPS(new Item(1733), new Item(1741), new CraftableItem(new Item(1095), new Item(1741), 18, 27.0)),
14 LEATHER_COIF(new Item(1733), new Item(1741), new CraftableItem(new Item(1169), new Item(1741), 38, 37.0));
15
16 private final Item use;
17 private final Item with;
18 private final CraftableItem[] items;
19
21 this.use = use;
22 this.with = with;
23 this.items = items;
24 }
25
26 @Override
27 public int getAnimation() {
28 return 1249;
29 }
30
31 @Override
32 public Item getUse() {
33 return use;
34 }
35
36 @Override
37 public Item getWith() {
38 return with;
39 }
40
41 @Override
43 return items;
44 }
45
46 @Override
47 public String getProductionMessage() {
48 return null;
49 }
50
51 @Override
52 public Item[] getIngredients(int index) {
53 return new Item[] { new Item(1734, items[index].getRequiredItem().getAmount()), items[index].getRequiredItem() };
54 }
55
56 @Override
57 public String getName() {
58 return "Leather";
59 }
60}
The container class that represents an item that can be interacted with.
Definition Item.java:21
String getName()
Gets the craftable name.
Definition Leather.java:57
int getAnimation()
Gets the craftable animation.
Definition Leather.java:27
Item getWith()
Gets the craftable item used with.
Definition Leather.java:37
Item getUse()
Gets the craftable used item.
Definition Leather.java:32
Item[] getIngredients(int index)
Gets the craftable ingredients.
Definition Leather.java:52
String getProductionMessage()
Gets the craftable production message.
Definition Leather.java:47
Leather(Item use, Item with, CraftableItem... items)
Definition Leather.java:20
CraftableItem[] getCraftableItems()
Gets the craftable items.
Definition Leather.java:42