public class ServerHandshakeNetworkHandler extends Object implements ServerHandshakePacketListener
| Modifier and Type | Field and Description |
|---|---|
private ClientConnection |
connection |
private static Text |
IGNORING_STATUS_REQUEST_MESSAGE |
private MinecraftServer |
server |
| Constructor and Description |
|---|
ServerHandshakeNetworkHandler(MinecraftServer server,
ClientConnection connection) |
| Modifier and Type | Method and Description |
|---|---|
ClientConnection |
getConnection() |
void |
onDisconnected(Text reason) |
void |
onHandshake(HandshakeC2SPacket packet) |
private static final Text IGNORING_STATUS_REQUEST_MESSAGE
private final MinecraftServer server
private final ClientConnection connection
public ServerHandshakeNetworkHandler(MinecraftServer server, ClientConnection connection)
public void onHandshake(HandshakeC2SPacket packet)
onHandshake in interface ServerHandshakePacketListenerpublic void onDisconnected(Text reason)
onDisconnected in interface PacketListenerpublic ClientConnection getConnection()
getConnection in interface PacketListener