1package com.runehive.content.skill.impl.crafting.impl;
3import com.runehive.content.skill.impl.crafting.Craftable;
4import com.runehive.content.skill.impl.crafting.CraftableItem;
5import com.runehive.content.skill.impl.crafting.Crafting;
6import com.runehive.game.world.items.Item;
8import java.lang.reflect.Array;
9import java.util.ArrayList;
51 public static void load() {
52 for (
Hide cuttable : values()) {
58 List<Integer> list =
new ArrayList<>();
60 for (
Hide hide : values()) {
61 if (hide.getIngredients(0)[0].getId() ==
id) {
62 list.add(hide.getCraftableItems()[0].getProduct().getId());
66 int[] ids =
new int[list.size()];
68 for (
int i = 0; i < list.size(); i++) {
102 return new Item[] {
new Item(1734,
items[index].getRequiredItem().getAmount()),
items[index].getRequiredItem()};
Handles the crafting skill.
static void addCraftable(Craftable craftable)
The container class that represents an item that can be interacted with.
final CraftableItem[] items
Item getUse()
Gets the craftable used item.
String getProductionMessage()
Gets the craftable production message.
CraftableItem[] getCraftableItems()
Gets the craftable items.
Item[] getIngredients(int index)
Gets the craftable ingredients.
static int[] getDisplay(int id)
String getName()
Gets the craftable name.
int getAnimation()
Gets the craftable animation.
Item getWith()
Gets the craftable item used with.
Hide(Item use, Item with, CraftableItem... items)
The craftable itemcontainer.