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

Classes

enum  PoisonType

Public Member Functions

boolean encode (Player player)
 SendPoison (PoisonType type)
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 PoisonType type

Additional Inherited Members

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

Detailed Description

Definition at line 7 of file SendPoison.java.

Constructor & Destructor Documentation

◆ SendPoison()

com.runehive.net.packet.out.SendPoison.SendPoison ( PoisonType type)

Definition at line 17 of file SendPoison.java.

17 {
18 super(182, 1);
19 this.type = type;
20 }

References type.

Member Function Documentation

◆ encode()

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

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

Definition at line 23 of file SendPoison.java.

23 {
24 builder.writeByte(type.ordinal(), ByteModification.NEG);
25 return true;
26 }

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

Member Data Documentation

◆ type

final PoisonType com.runehive.net.packet.out.SendPoison.type
private

Definition at line 15 of file SendPoison.java.

Referenced by encode(), and SendPoison().


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