RuneHive-Game
Loading...
Searching...
No Matches
SendTabBlink.java
Go to the documentation of this file.
1package com.runehive.net.packet.out;
2
3import com.runehive.game.world.entity.mob.player.Player;
4import com.runehive.net.packet.OutgoingPacket;
5
6/**
7 * Makes a tab blink/flash.
8 *
9 * @author Daniel
10 */
11public class SendTabBlink extends OutgoingPacket {
12
13 private int tab;
14
15 public SendTabBlink(int tab) {
16 super(24, 1);
17 this.tab = tab;
18 }
19
20 @Override
21 public boolean encode(Player player) {
22 builder.writeByte(tab);
23 return true;
24 }
25
26}
This class represents a character controlled by a player.
Definition Player.java:125
OutgoingPacket(int opcode, int capacity)