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

Public Member Functions

 SendInterfaceVisibility (int interfaceId, boolean isHidden)
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)

Protected Member Functions

boolean encode (Player player)

Private Attributes

final int interfaceId
final boolean isHidden

Additional Inherited Members

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

Detailed Description

Definition at line 6 of file SendInterfaceVisibility.java.

Constructor & Destructor Documentation

◆ SendInterfaceVisibility()

com.runehive.net.packet.out.SendInterfaceVisibility.SendInterfaceVisibility ( int interfaceId,
boolean isHidden )

Definition at line 10 of file SendInterfaceVisibility.java.

10 {
11 super(5, 5);
12 this.interfaceId = interfaceId;
13 this.isHidden = isHidden;
14 }

References interfaceId, and isHidden.

Member Function Documentation

◆ encode()

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

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

Definition at line 17 of file SendInterfaceVisibility.java.

17 {
18 builder.writeInt(interfaceId)
19 .writeByte(isHidden ? 1 : 0);
20 return true;
21 }

References com.runehive.net.packet.OutgoingPacket.builder, interfaceId, and isHidden.

Member Data Documentation

◆ interfaceId

final int com.runehive.net.packet.out.SendInterfaceVisibility.interfaceId
private

Definition at line 7 of file SendInterfaceVisibility.java.

Referenced by encode(), and SendInterfaceVisibility().

◆ isHidden

final boolean com.runehive.net.packet.out.SendInterfaceVisibility.isHidden
private

Definition at line 8 of file SendInterfaceVisibility.java.

Referenced by encode(), and SendInterfaceVisibility().


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