public class CPacketCustomPayload extends java.lang.Object implements Packet<INetHandlerPlayServer>, ICustomPacket<CPacketCustomPayload>
ICustomPacket.Fields
Modifier and Type | Field and Description |
---|---|
static ResourceLocation |
BRAND |
Constructor and Description |
---|
CPacketCustomPayload() |
CPacketCustomPayload(ResourceLocation channelIn,
PacketBuffer dataIn) |
Modifier and Type | Method and Description |
---|---|
void |
processPacket(INetHandlerPlayServer handler) |
void |
readPacketData(PacketBuffer buf) |
void |
writePacketData(PacketBuffer buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
shouldSkipErrors
getData, getDirection, getIndex, getName, getThis, setData, setIndex, setName
public static final ResourceLocation BRAND
public CPacketCustomPayload()
public CPacketCustomPayload(ResourceLocation channelIn, PacketBuffer dataIn)
public void readPacketData(PacketBuffer buf) throws java.io.IOException
readPacketData
in interface Packet<INetHandlerPlayServer>
java.io.IOException
public void writePacketData(PacketBuffer buf) throws java.io.IOException
writePacketData
in interface Packet<INetHandlerPlayServer>
java.io.IOException
public void processPacket(INetHandlerPlayServer handler)
processPacket
in interface Packet<INetHandlerPlayServer>