public class CHandshakePacket extends java.lang.Object implements IPacket<IHandshakeNetHandler>
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
fmlVersion |
private java.lang.String |
ip |
private int |
port |
private int |
protocolVersion |
private ProtocolType |
requestedState |
Constructor and Description |
---|
CHandshakePacket() |
CHandshakePacket(java.lang.String p_i47613_1_,
int p_i47613_2_,
ProtocolType p_i47613_3_) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFMLVersion() |
int |
getProtocolVersion() |
ProtocolType |
getRequestedState() |
void |
processPacket(IHandshakeNetHandler handler) |
void |
readPacketData(PacketBuffer buf) |
void |
writePacketData(PacketBuffer buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
shouldSkipErrors
private int protocolVersion
private java.lang.String ip
private int port
private ProtocolType requestedState
private java.lang.String fmlVersion
public CHandshakePacket()
public CHandshakePacket(java.lang.String p_i47613_1_, int p_i47613_2_, ProtocolType p_i47613_3_)
public void readPacketData(PacketBuffer buf) throws java.io.IOException
readPacketData
in interface IPacket<IHandshakeNetHandler>
java.io.IOException
public void writePacketData(PacketBuffer buf) throws java.io.IOException
writePacketData
in interface IPacket<IHandshakeNetHandler>
java.io.IOException
public void processPacket(IHandshakeNetHandler handler)
processPacket
in interface IPacket<IHandshakeNetHandler>
public ProtocolType getRequestedState()
public int getProtocolVersion()
public java.lang.String getFMLVersion()