@Environment(value=CLIENT) public class IntegratedServerHandshakeNetworkHandler extends Object implements ServerHandshakePacketListener
Modifier and Type | Field and Description |
---|---|
private ClientConnection |
connection |
private MinecraftServer |
server |
Constructor and Description |
---|
IntegratedServerHandshakeNetworkHandler(MinecraftServer server,
ClientConnection connection) |
Modifier and Type | Method and Description |
---|---|
ClientConnection |
getConnection() |
void |
onDisconnected(Text reason) |
void |
onHandshake(HandshakeC2SPacket packet) |
private final MinecraftServer server
private final ClientConnection connection
public IntegratedServerHandshakeNetworkHandler(MinecraftServer server, ClientConnection connection)
public void onHandshake(HandshakeC2SPacket packet)
onHandshake
in interface ServerHandshakePacketListener
public void onDisconnected(Text reason)
onDisconnected
in interface PacketListener
public ClientConnection getConnection()
getConnection
in interface PacketListener