public class CustomPayloadC2SPacket extends Object implements Packet<ServerPlayPacketListener>
Modifier and Type | Field and Description |
---|---|
static Identifier |
BRAND |
private Identifier |
channel |
private PacketByteBuf |
data |
Constructor and Description |
---|
CustomPayloadC2SPacket() |
CustomPayloadC2SPacket(Identifier channel,
PacketByteBuf data) |
Modifier and Type | Method and Description |
---|---|
void |
apply(ServerPlayPacketListener serverPlayPacketListener) |
void |
read(PacketByteBuf buf) |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isWritingErrorSkippable
public static final Identifier BRAND
private Identifier channel
private PacketByteBuf data
public CustomPayloadC2SPacket()
@Environment(value=CLIENT) public CustomPayloadC2SPacket(Identifier channel, PacketByteBuf data)
public void read(PacketByteBuf buf) throws IOException
read
in interface Packet<ServerPlayPacketListener>
IOException
public void write(PacketByteBuf buf) throws IOException
write
in interface Packet<ServerPlayPacketListener>
IOException
public void apply(ServerPlayPacketListener serverPlayPacketListener)
apply
in interface Packet<ServerPlayPacketListener>