39public enum Emote implements BooleanInterface<Player> {
40 YES(168, 855, -1, -1) {
42 public boolean activated(
Player player) {
46 NO(169, 856, -1, -1) {
48 public boolean activated(
Player player) {
52 BOW(164, 858, -1, -1) {
54 public boolean activated(
Player player) {
58 ANGRY(167, 864, -1, -1) {
60 public boolean activated(
Player player) {
64 THINK(162, 857, -1, -1) {
66 public boolean activated(
Player player) {
70 WAVE(163, 863, -1, -1) {
72 public boolean activated(
Player player) {
76 SHRUG(13370, 2113, -1, -1) {
78 public boolean activated(
Player player) {
82 CHEER(171, 862, -1, -1) {
84 public boolean activated(
Player player) {
88 BECKON(165, 859, -1, -1) {
90 public boolean activated(
Player player) {
94 LAUGH(170, 861, -1, -1) {
96 public boolean activated(
Player player) {
100 JUMP_FOR_JOY(13366, 2109, -1, -1) {
102 public boolean activated(
Player player) {
106 YAWN(13368, 2111, -1, -1) {
108 public boolean activated(
Player player) {
112 DANCE(166, 866, -1, -1) {
114 public boolean activated(
Player player) {
118 JIG(13363, 2106, -1, -1) {
120 public boolean activated(
Player player) {
124 TWIRL(13364, 2107, -1, -1) {
126 public boolean activated(
Player player) {
130 HEADBANG(13365, 2108, -1, -1) {
132 public boolean activated(
Player player) {
136 CRY(161, 860, -1, -1) {
138 public boolean activated(
Player player) {
142 BLOW_KISS(11100, 0x558, -1, -1) {
144 public boolean activated(
Player player) {
148 PANIC(13362, 2105, -1, -1) {
150 public boolean activated(
Player player) {
154 RASBERRY(13367, 2110, -1, -1) {
156 public boolean activated(
Player player) {
160 CLAP(172, 865, -1, -1) {
162 public boolean activated(
Player player) {
166 SALUTE(13369, 2112, -1, -1) {
168 public boolean activated(
Player player) {
172 GOBLIN_BOW(13383, 0x84F, -1, -1) {
174 public boolean activated(
Player player) {
178 GOBLIN_SALUTE(13384, 0x850, -1, -1) {
180 public boolean activated(
Player player) {
185 GLASS_BOX(18717, 0x46B, -1, 1117) {
187 public boolean activated(
Player player) {
191 CLIMB_ROPE(18718, 0x46A, -1, 1118) {
193 public boolean activated(
Player player) {
197 LEAN(18719, 0x469, -1, 1119) {
199 public boolean activated(
Player player) {
203 GLASS_WALL(18720, 0x468, -1, 1120) {
205 public boolean activated(
Player player) {
210 IDEA(18700, 4276, 712, 1100) {
212 public boolean activated(
Player player) {
216 STOMP(18701, 4278, -1, 1101) {
218 public boolean activated(
Player player) {
222 FLAP(18702, 4280, -1, 1102) {
224 public boolean activated(
Player player) {
228 SLAP_HEAD(18703, 4275, -1, 1103) {
230 public boolean activated(
Player player) {
234 ZOMBIE_WALK(18704, 3544, -1, 1104) {
236 public boolean activated(
Player player) {
240 ZOMBIE_DANCE(18705, 3543, -1, 1105) {
242 public boolean activated(
Player player) {
246 SCARED(18706, 2836, -1, 1106) {
248 public boolean activated(
Player player) {
252 RABBIT_HOP(18707, 6111, -1, 1107) {
254 public boolean activated(
Player player) {
258 SIT_UP(18708, 2763, -1, 1108) {
260 public boolean activated(
Player player) {
264 PUSH_UP(18709, 2756, -1, 1109) {
266 public boolean activated(
Player player) {
270 STAR_JUMP(18710, 2761, -1, 1110) {
272 public boolean activated(
Player player) {
276 JOG(18711, 2764, -1, 1111) {
278 public boolean activated(
Player player) {
282 ZOMBIE_HAND(18712, 4513, 320, 1112) {
284 public boolean activated(
Player player) {
288 HYPERMOBILE_DRINKER(18713, 7131, -1, 1113) {
290 public boolean activated(
Player player) {
294 AIR_GUITAR(18715, -1, 1239, 1115) {
296 public boolean activated(
Player player) {
300 URI_TRANSFORM(18716, -1, -1, 1116) {
302 public boolean activated(
Player player) {
308 private final int button;
311 private final int animation;
314 private final int graphic;
317 private final int config;
320 Emote(
int button,
int animation,
int graphic,
int config) {
321 this.button = button;
322 this.animation = animation;
323 this.graphic = graphic;
324 this.config = config;
327 public static void skillcape(
Player player) {
331 player.send(
new SendMessage(
"You must be wearing a skillcape to perform this emote!"));
335 Skillcape skillcape = Skillcape.forId(item.getId());
337 if (skillcape ==
null) {
338 player.send(
new SendMessage(
"You must be wearing a skillcape to perform this emote!"));
341 player.locking.lock(30);
342 execute(player, skillcape.getAnimation(), skillcape.getGraphic());
346 public static void execute(Player player,
int animation,
int graphic) {
347 player.locking.lock(30);
348 player.action.execute(
new EmoteAction(player, animation, graphic),
false);
349 player.locking.unlock();
373 public static Optional<Emote>
forId(
int button) {
374 return Arrays.stream(values()).filter(a -> a.button == button).findAny();