RuneHive-Game
Loading...
Searching...
No Matches
SendSideBarInterface.java
Go to the documentation of this file.
1package com.runehive.net.packet.out;
2
3import com.runehive.net.codec.ByteModification;
4import com.runehive.game.world.entity.mob.player.Player;
5import com.runehive.net.packet.OutgoingPacket;
6
7public class SendSideBarInterface extends OutgoingPacket {
8
9 private final int tabId;
10 private final int interfaceId;
11
13 super(71, 3);
14 this.tabId = tabId;
15 this.interfaceId = interfaceId;
16 }
17
18 @Override
19 public boolean encode(Player player) {
20 builder.writeShort(interfaceId)
21 .writeByte(tabId, ByteModification.ADD);
22 return true;
23 }
24
25}
This class represents a character controlled by a player.
Definition Player.java:125
OutgoingPacket(int opcode, int capacity)
Represents RuneScape's custom value types.
ADD
Adds 128 to the value when written, subtracts 128 from the rarity when read.