1package com.runehive.content.itemaction.impl;
3import com.runehive.content.emote.EmoteHandler;
4import com.runehive.content.emote.EmoteUnlockable;
5import com.runehive.content.itemaction.ItemAction;
6import com.runehive.game.world.entity.mob.player.Player;
7import com.runehive.game.world.items.Item;
8import com.runehive.net.packet.out.SendMessage;
9import com.runehive.util.Utility;
19 return "Drill demon box";
24 return "You open the Drill demon box...";
This class handles emotes from the emote tab and skill cape.
static void refresh(Player player)
Handles refreshing the emote tab.
static boolean containsAll(Player player, EmoteUnlockable... emotes)
static EmoteUnlockable selectRandom(Player player, EmoteUnlockable... emotes)
Handles executing an item action.
static final EmoteUnlockable[] EMOTES
static final Item[] CAMO_CLOTHING
boolean inventory(Player player, Item item, int opcode)
The execution method of the action.
String name()
The name of the action.
int delay()
The item click delay of the action.
String message(Item item)
The message of the action.
This class represents a character controlled by a player.
final Inventory inventory
List< EmoteUnlockable > emoteUnlockable
void send(OutgoingPacket encoder)
The container class that represents an item that can be interacted with.
boolean remove(Item item)
Attempts to withdraw item from this container.
boolean add(Item item)
Attempts to deposit item into this container.
The OutgoingPacket that sends a message to a Players chatbox in the client.
Handles miscellaneous methods.
static String formatName(final String input)
static int random(int bound)
static< T > T randomElement(Collection< T > collection)
Picks a random element out of any array type.