Package net.minecraft.server.network
Class ServerStatusPacketListenerImpl
java.lang.Object
net.minecraft.server.network.ServerStatusPacketListenerImpl
- All Implemented Interfaces:
PacketListener,ServerPacketListener,ServerPingPacketListener,ServerStatusPacketListener,ServerboundPacketListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Connectionprivate static final Componentprivate booleanprivate final ServerStatusprivate final @Nullable StringFields inherited from interface net.minecraft.network.protocol.game.ServerPacketListener
LOGGER -
Constructor Summary
ConstructorsConstructorDescriptionServerStatusPacketListenerImpl(ServerStatus pStatus, Connection pConnection) ServerStatusPacketListenerImpl(ServerStatus pStatus, Connection pConnection, @Nullable String statusCache) -
Method Summary
Modifier and TypeMethodDescriptionvoidhandlePingRequest(ServerboundPingRequestPacket p_320923_) voidbooleanvoidonDisconnect(DisconnectionDetails p_350895_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.network.PacketListener
createDisconnectionInfo, fillCrashReport, fillListenerSpecificCrashDetails, shouldHandleMessageMethods inherited from interface net.minecraft.network.ServerboundPacketListener
flowMethods inherited from interface net.minecraft.network.protocol.game.ServerPacketListener
onPacketErrorMethods inherited from interface net.minecraft.network.protocol.status.ServerStatusPacketListener
protocol
-
Field Details
-
DISCONNECT_REASON
-
status
-
statusCache
-
connection
-
hasRequestedStatus
private boolean hasRequestedStatus
-
-
Constructor Details
-
ServerStatusPacketListenerImpl
-
ServerStatusPacketListenerImpl
public ServerStatusPacketListenerImpl(ServerStatus pStatus, Connection pConnection, @Nullable @Nullable String statusCache)
-
-
Method Details
-
onDisconnect
- Specified by:
onDisconnectin interfacePacketListener
-
isAcceptingMessages
public boolean isAcceptingMessages()- Specified by:
isAcceptingMessagesin interfacePacketListener
-
handleStatusRequest
- Specified by:
handleStatusRequestin interfaceServerStatusPacketListener
-
handlePingRequest
- Specified by:
handlePingRequestin interfaceServerPingPacketListener
-