Package net.minecraft.network.status
Class ServerStatusNetHandler
java.lang.Object
net.minecraft.network.status.ServerStatusNetHandler
- All Implemented Interfaces:
INetHandler
,IServerStatusNetHandler
-
Field Summary
Modifier and TypeFieldDescriptionprivate final NetworkManager
private static final ITextComponent
private boolean
private final MinecraftServer
-
Constructor Summary
ConstructorDescriptionServerStatusNetHandler
(MinecraftServer p_i45299_1_, NetworkManager p_i45299_2_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
handlePingRequest
(CPingPacket p_147311_1_) void
handleStatusRequest
(CServerQueryPacket p_147312_1_) void
onDisconnect
(ITextComponent p_147231_1_)
-
Field Details
-
DISCONNECT_REASON
-
server
-
connection
-
hasRequestedStatus
private boolean hasRequestedStatus
-
-
Constructor Details
-
ServerStatusNetHandler
-
-
Method Details
-
onDisconnect
- Specified by:
onDisconnect
in interfaceINetHandler
-
getConnection
- Specified by:
getConnection
in interfaceINetHandler
-
handleStatusRequest
- Specified by:
handleStatusRequest
in interfaceIServerStatusNetHandler
-
handlePingRequest
- Specified by:
handlePingRequest
in interfaceIServerStatusNetHandler
-