1package com.runehive.content.emote;
3import com.runehive.game.action.impl.EmoteAction;
4import com.runehive.game.world.entity.mob.player.Player;
5import com.runehive.game.world.items.Item;
6import com.runehive.game.world.items.containers.equipment.Equipment;
7import com.runehive.net.packet.out.SendMessage;
8import com.runehive.util.generic.BooleanInterface;
10import java.util.Arrays;
11import java.util.Optional;
19 YES(168, 855, -1, -1) {
25 NO(169, 856, -1, -1) {
31 BOW(164, 858, -1, -1) {
85 YAWN(13368, 2111, -1, -1) {
97 JIG(13363, 2106, -1, -1) {
255 JOG(18711, 2764, -1, 1111) {
279 URI_TRANSFORM(18716, -1, -1, 1116) {
281 public boolean activated(
Player player) {
310 player.
send(
new SendMessage(
"You must be wearing a skillcape to perform this emote!"));
317 player.
send(
new SendMessage(
"You must be wearing a skillcape to perform this emote!"));
353 return Arrays.stream(values()).filter(a -> a.button ==
button).findAny();
public< A extends Action<?> > void execute(A action)
Handles performing an emote action.
void unlock()
Unlocks the mob.
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 that sends a message to a Players chatbox in the client.
final int config
The emote configuration.
int getConfig()
Gets the config of the emote.
int getGraphic()
Gets the graphic of the emote.
final int graphic
The emote graphic.
Emote(int button, int animation, int graphic, int config)
Constructs a new Emote.
final int animation
The emote animation.
final int button
The button identification.
int getButton()
Gets the button identification of the emote.
static void skillcape(Player player)
static void execute(Player player, int animation, int graphic)
int getAnimation()
Gets the animation of the the emote.
static Optional< Emote > forId(int button)
Gets emote data corresponding the the button identification.
Holds the data for skillcape emotes.
static Skillcape forId(int id)
boolean activated(final T player)