public class FMLProxyPacket extends java.lang.Object implements Packet<INetHandler>
Modifier and Type | Field and Description |
---|---|
private static com.google.common.collect.Multiset<java.lang.String> |
badPackets |
(package private) java.lang.String |
channel |
private NetworkDispatcher |
dispatcher |
static int |
MAX_LENGTH |
private INetHandler |
netHandler |
private static int |
packetCountWarning |
(package private) static int |
PART_SIZE |
private PacketBuffer |
payload |
private Side |
target |
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) |
final java.lang.String channel
private Side target
private final PacketBuffer payload
private INetHandler netHandler
private NetworkDispatcher dispatcher
private static com.google.common.collect.Multiset<java.lang.String> badPackets
private static int packetCountWarning
static final int PART_SIZE
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()