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

Public Member Functions

boolean encode (Player player)
 SendPlayerDetails ()
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)

Additional Inherited Members

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

Detailed Description

Definition at line 8 of file SendPlayerDetails.java.

Constructor & Destructor Documentation

◆ SendPlayerDetails()

com.runehive.net.packet.out.SendPlayerDetails.SendPlayerDetails ( )

Definition at line 10 of file SendPlayerDetails.java.

10 {
11 super(249, 3);
12 }

Member Function Documentation

◆ encode()

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

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

Definition at line 15 of file SendPlayerDetails.java.

15 {
16 builder.writeByte(1, ByteModification.ADD)
17 .writeShort(player.getIndex(), ByteModification.ADD, ByteOrder.LE);
18 return true;
19 }

References com.runehive.net.codec.ByteModification.ADD, com.runehive.net.packet.OutgoingPacket.builder, com.runehive.game.world.entity.Entity.getIndex(), and com.runehive.net.codec.ByteOrder.LE.

Here is the call graph for this function:

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