RuneHive-Game
Loading...
Searching...
No Matches
SendSpecialEnabled.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 SendSpecialEnabled extends OutgoingPacket {
8
9 private final int id;
10
11 public SendSpecialEnabled(int id) {
12 super(183, 1);
13 this.id = id;
14 }
15
16 @Override
17 public boolean encode(Player player) {
18 builder.writeByte(id, ByteModification.NEG);
19 return true;
20 }
21}
22
This class represents a character controlled by a player.
Definition Player.java:125
OutgoingPacket(int opcode, int capacity)
Represents RuneScape's custom value types.