public class C00Handshake extends java.lang.Object implements Packet<INetHandlerHandshakeServer>
Modifier and Type | Field and Description |
---|---|
private boolean |
hasFMLMarker |
private java.lang.String |
ip |
private int |
port |
private int |
protocolVersion |
private EnumConnectionState |
requestedState |
Constructor and Description |
---|
C00Handshake() |
C00Handshake(java.lang.String p_i47613_1_,
int p_i47613_2_,
EnumConnectionState p_i47613_3_) |
C00Handshake(java.lang.String address,
int port,
EnumConnectionState state,
boolean addFMLMarker) |
Modifier and Type | Method and Description |
---|---|
int |
getProtocolVersion() |
EnumConnectionState |
getRequestedState() |
boolean |
hasFMLMarker() |
void |
processPacket(INetHandlerHandshakeServer handler) |
void |
readPacketData(PacketBuffer buf) |
void |
writePacketData(PacketBuffer buf) |
private int protocolVersion
private java.lang.String ip
private int port
private EnumConnectionState requestedState
private boolean hasFMLMarker
public C00Handshake()
public C00Handshake(java.lang.String p_i47613_1_, int p_i47613_2_, EnumConnectionState p_i47613_3_)
public C00Handshake(java.lang.String address, int port, EnumConnectionState state, boolean addFMLMarker)
public void readPacketData(PacketBuffer buf) throws java.io.IOException
readPacketData
in interface Packet<INetHandlerHandshakeServer>
java.io.IOException
public void writePacketData(PacketBuffer buf) throws java.io.IOException
writePacketData
in interface Packet<INetHandlerHandshakeServer>
java.io.IOException
public void processPacket(INetHandlerHandshakeServer handler)
processPacket
in interface Packet<INetHandlerHandshakeServer>
public EnumConnectionState getRequestedState()
public int getProtocolVersion()
public boolean hasFMLMarker()