1package com.runehive.content.emote;
3import com.runehive.net.packet.out.SendConfig;
4import com.runehive.net.packet.out.SendMessage;
5import com.runehive.game.action.impl.EmoteAction;
6import com.runehive.game.world.entity.mob.player.Player;
7import com.runehive.game.world.items.Item;
8import com.runehive.game.world.items.containers.equipment.Equipment;
9import com.runehive.util.Utility;
11import java.util.ArrayList;
12import java.util.Arrays;
30 if (
emote.getConfig() != -1) {
31 int flag =
emote.activated(player) ? 0 : 1;
72 List<EmoteUnlockable> selected =
new ArrayList<>(emotes.length);
110 player.
send(
new SendMessage(
"You have successfully unlocked all the emotes."));
This class handles emotes from the emote tab and skill cape.
static void refresh(Player player)
Handles refreshing the emote tab.
static boolean contains(Player player, EmoteUnlockable emote)
static void updateSkillcape(Player player)
Updates the skillcape emote.
static void unlock(Player player, EmoteUnlockable emote)
Handles unlocking an emote.
static void unlockAll(Player player)
Handles unlocking all the emotes.
static boolean containsAll(Player player, EmoteUnlockable... emotes)
static EmoteUnlockable selectRandom(Player player, EmoteUnlockable... emotes)
This class represents a character controlled by a player.
final Equipment equipment
List< EmoteUnlockable > emoteUnlockable
void send(OutgoingPacket encoder)
The container class that represents an item that can be interacted with.
final int getId()
Gets the identification of this item.
final Item get(int index)
Gets the Item located on index.
The container that manages the equipment for a player.
static final int CAPE_SLOT
The OutgoingPacket responsible for changing settings on a client.
The OutgoingPacket that sends a message to a Players chatbox in the client.
Handles miscellaneous methods.
static< T > T randomElement(Collection< T > collection)
Picks a random element out of any array type.
static String formatEnum(final String string)
Formats name of enum.
Holds all the emote data.
Holds the data for skillcape emotes.
static Skillcape forId(int id)