1package com.runehive.content.skill.impl.smithing;
3import com.runehive.game.world.entity.mob.player.Player;
4import com.runehive.content.event.impl.ClickButtonInteractionEvent;
5import com.runehive.content.event.impl.ItemContainerInteractionEvent;
6import com.runehive.content.event.impl.ItemOnObjectInteractionEvent;
7import com.runehive.content.event.impl.ObjectInteractionEvent;
8import com.runehive.game.world.entity.skill.Skill;
9import com.runehive.game.world.items.Item;
10import com.runehive.net.packet.out.SendInputAmount;
11import com.runehive.net.packet.out.SendMessage;
35 switch(
event.interfaceId) {
51 switch(
event.getType()) {
61 switch(
event.getType()) {
71 if (
event.getObject().getId() == 2097) {
75 foundBar =
new Item(bar);
79 if (foundBar !=
null) {
82 player.
send(
new SendMessage(
"You have no bar which you have the required Smithing level to use."));
86 switch(
event.getType()) {
87 case FIRST_CLICK_OBJECT:
88 case SECOND_CLICK_OBJECT:
static boolean smelt(Player player, int buttonId)
Attempts to start smelting for the specified player.
static boolean openInterface(Player player, GameObject object)
Opens the smelting itemcontainer for the player.
static final int[] SMELT_BARS
The bar identification to be drawn on each frame.
Holds functionality for creating items on an anvil.
static boolean forge(Player player, int interfaceId, int slot, int amount)
Attempts to forge the item clicked for the specified player.
static boolean openInterface(Player player, Item item, GameObject object)
Opens the smithing itemcontainer and sets all the values for the specified {code player}...
boolean clickButton(Player player, ClickButtonInteractionEvent event)
boolean clickObject(Player player, ObjectInteractionEvent event)
boolean itemContainerAction(Player player, ItemContainerInteractionEvent event)
boolean useItem(Player player, ItemOnObjectInteractionEvent event)
Smithing(int level, double experience)
This class represents a character controlled by a player.
final Inventory inventory
void send(OutgoingPacket encoder)
double experience
The current skill experience.
int level
The current level of the skill.
Skill(int skill, int level, double experience)
Constructs a new Skill.
The container class that represents an item that can be interacted with.
boolean contains(int id)
Determines if this container contains id.
The OutgoingPacket that sends a message to a Players chatbox in the client.