public class NPacketPlayOutCustomPayload extends Object implements NPacketPlayOut
Constructor and Description |
---|
NPacketPlayOutCustomPayload() |
NPacketPlayOutCustomPayload(String channel,
byte[] data) |
Modifier and Type | Method and Description |
---|---|
PacketType |
getPacketType()
Get type of packet
|
void |
read(PacketSerializer serializer,
Version version)
Read packet from given serializer.
|
void |
write(PacketSerializer serializer,
Version version)
Write packet to given serializer
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
create, getPacketName
public String channel
public byte[] data
public NPacketPlayOutCustomPayload()
public NPacketPlayOutCustomPayload(String channel, byte[] data)
public void read(PacketSerializer serializer, Version version)
NPacket
public void write(PacketSerializer serializer, Version version)
NPacket
public PacketType getPacketType()
NPacket
getPacketType
in interface NPacket