public class SPacketCustomPayload extends java.lang.Object implements Packet<INetHandlerPlayClient>, ICustomPacket<SPacketCustomPayload>
ICustomPacket.Fields
Modifier and Type | Field and Description |
---|---|
static ResourceLocation |
BOOK_OPEN |
static ResourceLocation |
BRAND |
static ResourceLocation |
DEBUG_CAVES |
static ResourceLocation |
DEBUG_NEIGHBORS_UPDATE |
static ResourceLocation |
DEBUG_PATH |
static ResourceLocation |
DEBUG_STRUCTURES |
static ResourceLocation |
DEBUG_WORLDGEN_ATTEMPT |
static ResourceLocation |
TRADER_LIST |
Constructor and Description |
---|
SPacketCustomPayload() |
SPacketCustomPayload(ResourceLocation channelIn,
PacketBuffer dataIn) |
Modifier and Type | Method and Description |
---|---|
PacketBuffer |
getBufferData() |
ResourceLocation |
getChannelName() |
void |
processPacket(INetHandlerPlayClient 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 TRADER_LIST
public static final ResourceLocation BRAND
public static final ResourceLocation BOOK_OPEN
public static final ResourceLocation DEBUG_PATH
public static final ResourceLocation DEBUG_NEIGHBORS_UPDATE
public static final ResourceLocation DEBUG_CAVES
public static final ResourceLocation DEBUG_STRUCTURES
public static final ResourceLocation DEBUG_WORLDGEN_ATTEMPT
public SPacketCustomPayload()
public SPacketCustomPayload(ResourceLocation channelIn, PacketBuffer dataIn)
public void readPacketData(PacketBuffer buf) throws java.io.IOException
readPacketData
in interface Packet<INetHandlerPlayClient>
java.io.IOException
public void writePacketData(PacketBuffer buf) throws java.io.IOException
writePacketData
in interface Packet<INetHandlerPlayClient>
java.io.IOException
public void processPacket(INetHandlerPlayClient handler)
processPacket
in interface Packet<INetHandlerPlayClient>
public ResourceLocation getChannelName()
public PacketBuffer getBufferData()