Package net.minecraft.server.network
Class ServerStatusPacketListenerImpl
java.lang.Object
net.minecraft.server.network.ServerStatusPacketListenerImpl
- All Implemented Interfaces:
PacketListener
,ServerPacketListener
,ServerStatusPacketListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Connection
private static final Component
private boolean
private final ServerStatus
private final @Nullable String
-
Constructor Summary
ConstructorsConstructorDescriptionServerStatusPacketListenerImpl
(ServerStatus p_272864_, Connection p_273586_) ServerStatusPacketListenerImpl
(ServerStatus p_272864_, Connection p_273586_, @Nullable String statusCache) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.network.protocol.game.ServerPacketListener
shouldPropagateHandlingExceptions
-
Field Details
-
DISCONNECT_REASON
-
status
-
statusCache
-
connection
-
hasRequestedStatus
private boolean hasRequestedStatus
-
-
Constructor Details
-
ServerStatusPacketListenerImpl
-
ServerStatusPacketListenerImpl
public ServerStatusPacketListenerImpl(ServerStatus p_272864_, Connection p_273586_, @Nullable @Nullable String statusCache)
-
-
Method Details
-
onDisconnect
- Specified by:
onDisconnect
in interfacePacketListener
-
isAcceptingMessages
public boolean isAcceptingMessages()- Specified by:
isAcceptingMessages
in interfacePacketListener
-
handleStatusRequest
- Specified by:
handleStatusRequest
in interfaceServerStatusPacketListener
-
handlePingRequest
- Specified by:
handlePingRequest
in interfaceServerStatusPacketListener
-