RuneHive-Game
Loading...
Searching...
No Matches
com.runehive.net.packet.out.SendInterfaceLayer Class Reference

Shows an itemcontainer inside another itemcontainer. More...

Inheritance diagram for com.runehive.net.packet.out.SendInterfaceLayer:
Collaboration diagram for com.runehive.net.packet.out.SendInterfaceLayer:

Public Member Functions

boolean encode (Player player)
 SendInterfaceLayer (int id, boolean hide)
 Creates a new SendInterfaceLayer).
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 boolean hide
 The toggle to display the itemcontainer to the user.
final int id
 The id of the itemcontainer to show.

Additional Inherited Members

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

Detailed Description

Shows an itemcontainer inside another itemcontainer.

Author
nshusa

Definition at line 11 of file SendInterfaceLayer.java.

Constructor & Destructor Documentation

◆ SendInterfaceLayer()

com.runehive.net.packet.out.SendInterfaceLayer.SendInterfaceLayer ( int id,
boolean hide )

Creates a new SendInterfaceLayer).

Parameters
idThe id of the itemcontainer.
hideThe toggle to display the itemcontainer.

Definition at line 25 of file SendInterfaceLayer.java.

25 {
26 super(171, 3);
27 this.id = id;
28 this.hide = hide;
29 }

References hide, and id.

Member Function Documentation

◆ encode()

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

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

Definition at line 32 of file SendInterfaceLayer.java.

32 {
33 builder.writeByte(hide ? 1 : 0)
34 .writeShort(id);
35 return true;
36 }

References com.runehive.net.packet.OutgoingPacket.builder, and hide.

Member Data Documentation

◆ hide

final boolean com.runehive.net.packet.out.SendInterfaceLayer.hide
private

The toggle to display the itemcontainer to the user.

Definition at line 17 of file SendInterfaceLayer.java.

Referenced by encode(), and SendInterfaceLayer().

◆ id

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

The id of the itemcontainer to show.

Definition at line 14 of file SendInterfaceLayer.java.

Referenced by SendInterfaceLayer().


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