1package com.runehive.content.skill.impl.crafting.impl;
3import com.runehive.Config;
4import com.runehive.net.packet.out.SendInputAmount;
5import com.runehive.net.packet.out.SendItemOnInterfaceZoom;
6import com.runehive.net.packet.out.SendMessage;
7import com.runehive.net.packet.out.SendString;
8import com.runehive.game.world.entity.mob.player.Player;
9import com.runehive.game.world.items.Item;
10import com.runehive.game.world.items.ItemDefinition;
11import com.runehive.util.Utility;
97 int cost = data.cost * amount;
The class that contains setting-related constants for the server.
static final int CURRENCY
The currency identification of the server.
Handles tanning leathers.
static void tan(Player player, int amount, TanData data)
Tans the leather.
static boolean click(Player player, int button)
Handles clicking the tan buttons on the itemcontainer.
static void open(Player player)
Handles opening the tanning itemcontainer.
void open(int identification)
Opens an interface for the player.
This class represents a character controlled by a player.
final Inventory inventory
final InterfaceManager interfaceManager
void send(OutgoingPacket encoder)
Represents all of an in-game Item's attributes.
static ItemDefinition get(int id)
Gets an item definition.
String getName()
Gets the item name.
The container class that represents an item that can be interacted with.
final int computeAmountForId(int id)
Computes the total quantity of the Items in this container with id.
boolean remove(Item item)
Attempts to withdraw item from this container.
boolean add(Item item)
Attempts to deposit item into this container.
boolean contains(int id)
Determines if this container contains id.
Handles sending the SendItemOnInterfaceZoom packet.
The OutgoingPacket that sends a message to a Players chatbox in the client.
The OutgoingPacket that sends a string to a Players itemcontainer in the client.
Handles miscellaneous methods.
static String formatEnum(final String string)
Formats name of enum.
final int cost
The tan cost.
final int ingredient
The ingredient item.
TanData(int ingredient, int product, int cost)
Constructs a new TanData.
final int product
The product item.