RuneHive-Game
Loading...
Searching...
No Matches
SendChatBoxInterface.java
Go to the documentation of this file.
1package com.runehive.net.packet.out;
2
3import com.runehive.net.codec.ByteOrder;
4import com.runehive.game.world.entity.mob.player.Player;
5import com.runehive.net.packet.OutgoingPacket;
6
7public class SendChatBoxInterface extends OutgoingPacket {
8
9 private final int interfaceId;
10
12 super(164, 2);
13 this.interfaceId = interfaceId;
14 }
15
16 @Override
17 public boolean encode(Player player) {
19 builder.writeShort(interfaceId, ByteOrder.LE);
20 return true;
21 }
22}
void setDialogue(int dialogueInterface)
Sets the dialogue interface.
This class represents a character controlled by a player.
Definition Player.java:125
OutgoingPacket(int opcode, int capacity)
Represents the order in which bytes are written.
Definition ByteOrder.java:8
LE
Represents Little-endian.