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 static final Componentprivate final com.mojang.authlib.GameProfileprivate static final org.slf4j.Loggerprivate PrepareSpawnTaskprivate SynchronizeRegistriesTaskFields inherited from class net.minecraft.server.network.ServerCommonPacketListenerImpl
connection, connectionType, DISCONNECT_UNEXPECTED_QUERY, LATENCY_CHECK_INTERVAL, server -
Constructor Summary
ConstructorsConstructorDescriptionServerConfigurationPacketListenerImpl(MinecraftServer p_294645_, Connection p_295787_, CommonListenerCookie p_302003_) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidvoidfinishCurrentTask(ConfigurationTask.Type pTaskType) Call when a configuration task is finishedvoidvoidvoidvoidvoidhandlePong(ServerboundPongPacket p_295142_) voidvoidbooleanvoidonDisconnect(DisconnectionDetails p_350569_) protected com.mojang.authlib.GameProfilevoidprivate voidvoidprivate voidvoidtick()Methods inherited from class net.minecraft.server.network.ServerCommonPacketListenerImpl
createCookie, createCookie, disconnect, disconnect, getConnection, getConnectionType, getOwner, getPacketProcessor, handleCookieResponse, handleCustomClickAction, handleKeepAlive, isSingleplayerOwner, keepConnectionAlive, latency, onPacketError, 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, getPacketProcessor, 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
handleCustomClickAction, 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
-
DISCONNECT_REASON_CONFIGURATION_ERROR
-
gameProfile
private final com.mojang.authlib.GameProfile gameProfile -
configurationTasks
-
currentTask
-
clientInformation
-
synchronizeRegistriesTask
-
prepareSpawnTask
-
-
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:
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
-
handleAcceptCodeOfConduct
- Specified by:
handleAcceptCodeOfConductin 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
-