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

Public Member Functions

boolean encode (Player player)
 SendInterfaceWidget (int interfaceID, int modelID)
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 interfaceID
final int modelID

Additional Inherited Members

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

Detailed Description

Definition at line 10 of file SendInterfaceWidget.java.

Constructor & Destructor Documentation

◆ SendInterfaceWidget()

com.runehive.net.packet.out.SendInterfaceWidget.SendInterfaceWidget ( int interfaceID,
int modelID )

Definition at line 15 of file SendInterfaceWidget.java.

15 {
16 super(8, PacketType.EMPTY);
17 this.interfaceID = interfaceID;
18 this.modelID = modelID;
19 }

References com.runehive.net.packet.PacketType.EMPTY, interfaceID, and modelID.

Member Function Documentation

◆ encode()

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

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

Definition at line 22 of file SendInterfaceWidget.java.

22 {
23 builder.writeShort(interfaceID, ByteModification.ADD, ByteOrder.LE);
24 builder.writeShort(modelID);
25 return true;
26 }

References com.runehive.net.codec.ByteModification.ADD, com.runehive.net.packet.OutgoingPacket.builder, interfaceID, com.runehive.net.codec.ByteOrder.LE, and modelID.

Member Data Documentation

◆ interfaceID

final int com.runehive.net.packet.out.SendInterfaceWidget.interfaceID
private

Definition at line 12 of file SendInterfaceWidget.java.

Referenced by encode(), and SendInterfaceWidget().

◆ modelID

final int com.runehive.net.packet.out.SendInterfaceWidget.modelID
private

Definition at line 13 of file SendInterfaceWidget.java.

Referenced by encode(), and SendInterfaceWidget().


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