public class C00Handshake extends java.lang.Object implements Packet<INetHandlerHandshakeServer>
Constructor and Description |
---|
C00Handshake() |
C00Handshake(int version,
java.lang.String ip,
int port,
EnumConnectionState requestedState) |
C00Handshake(int protocol,
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) |
public C00Handshake()
public C00Handshake(int version, java.lang.String ip, int port, EnumConnectionState requestedState)
public C00Handshake(int protocol, 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()