Package net.minecraft.server.network
Class ServerConfigurationPacketListenerImpl
java.lang.Object
net.minecraft.server.network.ServerCommonPacketListenerImpl
net.minecraft.server.network.ServerConfigurationPacketListenerImpl
- All Implemented Interfaces:
PacketListener
,ServerCommonPacketListener
,ServerConfigurationPacketListener
,ServerPacketListener
,ServerboundPacketListener
,TickablePacketListener
public class ServerConfigurationPacketListenerImpl
extends ServerCommonPacketListenerImpl
implements TickablePacketListener, ServerConfigurationPacketListener
-
Field Summary
Modifier and TypeFieldDescriptionprivate ClientInformation
private final Queue<ConfigurationTask>
private ConfigurationTask
private static final Component
private final com.mojang.authlib.GameProfile
private static final org.slf4j.Logger
Fields inherited from class net.minecraft.server.network.ServerCommonPacketListenerImpl
connection, LATENCY_CHECK_INTERVAL, server
-
Constructor Summary
ConstructorDescriptionServerConfigurationPacketListenerImpl
(MinecraftServer p_294645_, Connection p_295787_, CommonListenerCookie p_302003_) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
private void
finishCurrentTask
(ConfigurationTask.Type p_294853_) void
void
void
boolean
void
onDisconnect
(Component p_295037_) protected com.mojang.authlib.GameProfile
void
void
private void
void
tick()
Methods inherited from class net.minecraft.server.network.ServerCommonPacketListenerImpl
createCookie, disconnect, getOwner, handleCustomPayload, handleKeepAlive, handlePong, isSingleplayerOwner, keepConnectionAlive, latency, resumeFlushing, send, send, suspendFlushing
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.PacketListener
shouldHandleMessage
Methods inherited from interface net.minecraft.network.ServerboundPacketListener
flow
Methods inherited from interface net.minecraft.network.protocol.common.ServerCommonPacketListener
handleCustomPayload, handleKeepAlive, handlePong
Methods inherited from interface net.minecraft.network.protocol.configuration.ServerConfigurationPacketListener
protocol
Methods inherited from interface net.minecraft.network.protocol.game.ServerPacketListener
shouldPropagateHandlingExceptions
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
DISCONNECT_REASON_INVALID_DATA
-
gameProfile
private final com.mojang.authlib.GameProfile gameProfile -
configurationTasks
-
currentTask
-
clientInformation
-
-
Constructor Details
-
ServerConfigurationPacketListenerImpl
public ServerConfigurationPacketListenerImpl(MinecraftServer p_294645_, Connection p_295787_, CommonListenerCookie p_302003_)
-
-
Method Details
-
playerProfile
protected com.mojang.authlib.GameProfile playerProfile()- Specified by:
playerProfile
in classServerCommonPacketListenerImpl
-
onDisconnect
- Specified by:
onDisconnect
in interfacePacketListener
- Overrides:
onDisconnect
in classServerCommonPacketListenerImpl
-
isAcceptingMessages
public boolean isAcceptingMessages()- Specified by:
isAcceptingMessages
in interfacePacketListener
-
startConfiguration
public void startConfiguration() -
returnToWorld
public void returnToWorld() -
addOptionalTasks
private void addOptionalTasks() -
handleClientInformation
- Specified by:
handleClientInformation
in interfaceServerCommonPacketListener
-
handleResourcePackResponse
- Specified by:
handleResourcePackResponse
in interfaceServerCommonPacketListener
- Overrides:
handleResourcePackResponse
in classServerCommonPacketListenerImpl
-
handleConfigurationFinished
- Specified by:
handleConfigurationFinished
in interfaceServerConfigurationPacketListener
-
tick
public void tick()- Specified by:
tick
in interfaceTickablePacketListener
-
startNextTask
private void startNextTask() -
finishCurrentTask
-