public class HandshakeC2SPacket extends Object implements Packet<ServerHandshakePacketListener>
Modifier and Type | Field and Description |
---|---|
private String |
address |
private NetworkState |
intendedState |
private int |
port |
private int |
protocolVersion |
Constructor and Description |
---|
HandshakeC2SPacket() |
HandshakeC2SPacket(String address,
int port,
NetworkState intendedState) |
Modifier and Type | Method and Description |
---|---|
void |
apply(ServerHandshakePacketListener serverHandshakePacketListener) |
NetworkState |
getIntendedState() |
int |
getProtocolVersion() |
void |
read(PacketByteBuf buf) |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isWritingErrorSkippable
private int protocolVersion
private String address
private int port
private NetworkState intendedState
public HandshakeC2SPacket()
@Environment(value=CLIENT) public HandshakeC2SPacket(String address, int port, NetworkState intendedState)
public void read(PacketByteBuf buf) throws IOException
read
in interface Packet<ServerHandshakePacketListener>
IOException
public void write(PacketByteBuf buf) throws IOException
write
in interface Packet<ServerHandshakePacketListener>
IOException
public void apply(ServerHandshakePacketListener serverHandshakePacketListener)
apply
in interface Packet<ServerHandshakePacketListener>
public NetworkState getIntendedState()
public int getProtocolVersion()