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,ServerCookiePacketListener,ServerPacketListener,ServerboundPacketListener,TickablePacketListener,ICommonPacketListener,IServerCommonPacketListenerExtension,IServerConfigurationPacketListenerExtension
public class ServerConfigurationPacketListenerImpl
extends ServerCommonPacketListenerImpl
implements ServerConfigurationPacketListener, TickablePacketListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ClientInformationprivate final Queue<ConfigurationTask> private ConfigurationTaskprivate static final Componentprivate final com.mojang.authlib.GameProfileprivate static final org.slf4j.Loggerprivate SynchronizeRegistriesTaskFields inherited from class net.minecraft.server.network.ServerCommonPacketListenerImpl
connection, connectionType, DISCONNECT_UNEXPECTED_QUERY, LATENCY_CHECK_INTERVAL, server -
Constructor Summary
ConstructorsConstructorDescriptionServerConfigurationPacketListenerImpl(MinecraftServer pServer, Connection pConnection, CommonListenerCookie pCookie) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidvoidfinishCurrentTask(ConfigurationTask.Type pTaskType) Call when a configuration task is finishedvoidvoidvoidvoidhandlePong(ServerboundPongPacket p_295142_) voidvoidbooleanvoidonDisconnect(DisconnectionDetails pDetails) protected com.mojang.authlib.GameProfilevoidprivate voidvoidprivate voidvoidtick()Methods inherited from class net.minecraft.server.network.ServerCommonPacketListenerImpl
createCookie, createCookie, disconnect, disconnect, getConnection, getConnectionType, getMainThreadEventLoop, getOwner, handleCookieResponse, handleKeepAlive, isSingleplayerOwner, keepConnectionAlive, latency, resumeFlushing, send, send, suspendFlushingMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.neoforged.neoforge.common.extensions.ICommonPacketListener
disconnect, getConnection, getConnectionType, getMainThreadEventLoop, hasChannel, hasChannel, hasChannel, sendMethods inherited from interface net.neoforged.neoforge.common.extensions.IServerCommonPacketListenerExtension
send, send, sendMethods 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.common.ServerCommonPacketListener
handleKeepAliveMethods inherited from interface net.minecraft.network.protocol.configuration.ServerConfigurationPacketListener
protocolMethods inherited from interface net.minecraft.network.protocol.cookie.ServerCookiePacketListener
handleCookieResponseMethods inherited from interface net.minecraft.network.protocol.game.ServerPacketListener
onPacketError
-
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
-
synchronizeRegistriesTask
-
-
Constructor Details
-
ServerConfigurationPacketListenerImpl
public ServerConfigurationPacketListenerImpl(MinecraftServer pServer, Connection pConnection, CommonListenerCookie pCookie)
-
-
Method Details
-
playerProfile
protected com.mojang.authlib.GameProfile playerProfile()- Specified by:
playerProfilein classServerCommonPacketListenerImpl
-
onDisconnect
- Specified by:
onDisconnectin interfacePacketListener- Overrides:
onDisconnectin classServerCommonPacketListenerImpl
-
isAcceptingMessages
public boolean isAcceptingMessages()- Specified by:
isAcceptingMessagesin interfacePacketListener
-
startConfiguration
public void startConfiguration() -
runConfiguration
private void runConfiguration() -
returnToWorld
public void returnToWorld() -
addOptionalTasks
private void addOptionalTasks() -
handleCustomPayload
- Specified by:
handleCustomPayloadin interfaceServerCommonPacketListener- Overrides:
handleCustomPayloadin classServerCommonPacketListenerImpl
-
handlePong
- Specified by:
handlePongin interfaceServerCommonPacketListener- Overrides:
handlePongin classServerCommonPacketListenerImpl
-
handleClientInformation
- Specified by:
handleClientInformationin interfaceServerCommonPacketListener
-
handleResourcePackResponse
- Specified by:
handleResourcePackResponsein interfaceServerCommonPacketListener- Overrides:
handleResourcePackResponsein classServerCommonPacketListenerImpl
-
handleSelectKnownPacks
- Specified by:
handleSelectKnownPacksin interfaceServerConfigurationPacketListener
-
handleConfigurationFinished
- Specified by:
handleConfigurationFinishedin interfaceServerConfigurationPacketListener
-
tick
public void tick()- Specified by:
tickin interfaceTickablePacketListener
-
startNextTask
private void startNextTask() -
finishCurrentTask
Description copied from interface:IServerConfigurationPacketListenerExtensionCall when a configuration task is finished- Specified by:
finishCurrentTaskin interfaceIServerConfigurationPacketListenerExtension- Parameters:
pTaskType- The task that was finished
-