public class ServerStatusNetHandler extends java.lang.Object implements IServerStatusNetHandler
Modifier and Type | Field and Description |
---|---|
private static ITextComponent |
EXIT_MESSAGE |
private boolean |
handled |
private NetworkManager |
networkManager |
private MinecraftServer |
server |
Constructor and Description |
---|
ServerStatusNetHandler(MinecraftServer serverIn,
NetworkManager netManager) |
Modifier and Type | Method and Description |
---|---|
NetworkManager |
getNetworkManager() |
void |
onDisconnect(ITextComponent reason) |
void |
processPing(CPingPacket packetIn) |
void |
processServerQuery(CServerQueryPacket packetIn) |
private static final ITextComponent EXIT_MESSAGE
private final MinecraftServer server
private final NetworkManager networkManager
private boolean handled
public ServerStatusNetHandler(MinecraftServer serverIn, NetworkManager netManager)
public void onDisconnect(ITextComponent reason)
onDisconnect
in interface INetHandler
public NetworkManager getNetworkManager()
getNetworkManager
in interface INetHandler
public void processServerQuery(CServerQueryPacket packetIn)
processServerQuery
in interface IServerStatusNetHandler
public void processPing(CPingPacket packetIn)
processPing
in interface IServerStatusNetHandler