1package com.runehive.content.itemaction.impl;
3import com.runehive.content.itemaction.ItemAction;
4import com.runehive.game.world.entity.mob.player.Player;
5import com.runehive.game.world.items.Item;
6import com.runehive.game.world.items.ItemDefinition;
7import com.runehive.net.packet.out.SendInputAmount;
8import com.runehive.util.Utility;
18 return "Thammaron's sceptre";
23 System.out.println(
"?????");
25 System.out.println(
"dfgdfgdfg");
40 System.out.println(
"Recharge craws bow");
84 player.thammoranSceptreCharges = 0;
102 player.thammoranSceptreCharges += amount;
103 player.
message(
"You added " + amount +
" charges to your "+
name()+
"");
Handles executing an item action.
static final short ETHER_ID
boolean drop(Player player, Item item)
boolean itemOnItem(Player player, Item first, Item second)
void check(Player player)
void charge(Player player, int amount)
boolean inventory(Player player, Item item, int opcode)
The execution method of the action.
static final short THAMMARONS_SCEPTRE_UNCHARGED_ID
boolean equipment(Player player, Item item, int opcode)
static final short THAMMARONS_SCEPTRE_CHARGED_ID
String name()
The name of the action.
This class represents a character controlled by a player.
final Inventory inventory
void message(String message)
int thammoranSceptreCharges
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 getId()
Gets the identification of this item.
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.
void refresh()
Refreshes the players inventory.
Handles miscellaneous methods.
static String formatDigits(final int amount)
Formats digits for integers.