RuneHive-Game
Loading...
Searching...
No Matches
SendChatOption.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.game.world.entity.mob.player.relations.PrivacyChatMode;
5import com.runehive.net.packet.OutgoingPacket;
6
7public final class SendChatOption extends OutgoingPacket {
8
13
15 super(206, 4);
16 this.publicChat = publicChat;
17 this.privateChat = privateChat;
18 this.clanChat = clanChat;
19 this.tradeChat = tradeChat;
20 }
21
22 @Override
23 protected boolean encode(Player player) {
24 builder.writeByte(publicChat.getCode())
25 .writeByte(privateChat.getCode())
26 .writeByte(clanChat.getCode())
27 .writeByte(tradeChat.getCode());
28 return true;
29 }
30}
This class represents a character controlled by a player.
Definition Player.java:125
OutgoingPacket(int opcode, int capacity)
SendChatOption(PrivacyChatMode publicChat, PrivacyChatMode privateChat, PrivacyChatMode clanChat, PrivacyChatMode tradeChat)