public class FMLProxyPacket extends java.lang.Object implements Packet<INetHandler>
Modifier and Type | Field and Description |
---|---|
static int |
MAX_LENGTH |
Constructor and Description |
---|
FMLProxyPacket(CPacketCustomPayload original) |
FMLProxyPacket(PacketBuffer payload,
java.lang.String channel) |
FMLProxyPacket(SPacketCustomPayload original) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
channel() |
FMLProxyPacket |
copy() |
NetworkDispatcher |
getDispatcher() |
NetworkManager |
getOrigin() |
Side |
getTarget() |
INetHandler |
handler() |
io.netty.buffer.ByteBuf |
payload() |
void |
processPacket(INetHandler inethandler) |
void |
readPacketData(PacketBuffer packetbuffer) |
void |
setDispatcher(NetworkDispatcher networkDispatcher) |
void |
setTarget(Side target) |
Packet<INetHandlerPlayServer> |
toC17Packet() |
java.util.List<Packet<INetHandlerPlayClient>> |
toS3FPackets() |
void |
writePacketData(PacketBuffer packetbuffer) |
public static final int MAX_LENGTH
public FMLProxyPacket(SPacketCustomPayload original)
public FMLProxyPacket(CPacketCustomPayload original)
public FMLProxyPacket(PacketBuffer payload, java.lang.String channel)
public void readPacketData(PacketBuffer packetbuffer) throws java.io.IOException
readPacketData
in interface Packet<INetHandler>
java.io.IOException
public void writePacketData(PacketBuffer packetbuffer) throws java.io.IOException
writePacketData
in interface Packet<INetHandler>
java.io.IOException
public void processPacket(INetHandler inethandler)
processPacket
in interface Packet<INetHandler>
public java.lang.String channel()
public io.netty.buffer.ByteBuf payload()
public INetHandler handler()
public Packet<INetHandlerPlayServer> toC17Packet()
public java.util.List<Packet<INetHandlerPlayClient>> toS3FPackets() throws java.io.IOException
java.io.IOException
public void setTarget(Side target)
public void setDispatcher(NetworkDispatcher networkDispatcher)
@Nullable public NetworkManager getOrigin()
public NetworkDispatcher getDispatcher()
public Side getTarget()
public FMLProxyPacket copy()