RuneHive-Game
Loading...
Searching...
No Matches
com.runehive.net.packet.out.SendSpecialEnabled Class Reference
Inheritance diagram for com.runehive.net.packet.out.SendSpecialEnabled:
Collaboration diagram for com.runehive.net.packet.out.SendSpecialEnabled:

Public Member Functions

boolean encode (Player player)
 SendSpecialEnabled (int id)
Public Member Functions inherited from com.runehive.net.packet.OutgoingPacket
void execute (Player player)
 OutgoingPacket (int opcode, int capacity)
 OutgoingPacket (int opcode, PacketType type)
 OutgoingPacket (int opcode, PacketType type, int size)

Private Attributes

final int id

Additional Inherited Members

Protected Attributes inherited from com.runehive.net.packet.OutgoingPacket
final PacketBuilder builder

Detailed Description

Definition at line 7 of file SendSpecialEnabled.java.

Constructor & Destructor Documentation

◆ SendSpecialEnabled()

com.runehive.net.packet.out.SendSpecialEnabled.SendSpecialEnabled ( int id)

Definition at line 11 of file SendSpecialEnabled.java.

11 {
12 super(183, 1);
13 this.id = id;
14 }

References id.

Member Function Documentation

◆ encode()

boolean com.runehive.net.packet.out.SendSpecialEnabled.encode ( Player player)

Reimplemented from com.runehive.net.packet.OutgoingPacket.

Definition at line 17 of file SendSpecialEnabled.java.

17 {
18 builder.writeByte(id, ByteModification.NEG);
19 return true;
20 }

References com.runehive.net.packet.OutgoingPacket.builder, and com.runehive.net.codec.ByteModification.NEG.

Member Data Documentation

◆ id

final int com.runehive.net.packet.out.SendSpecialEnabled.id
private

Definition at line 9 of file SendSpecialEnabled.java.

Referenced by SendSpecialEnabled().


The documentation for this class was generated from the following file: