Package net.minecraft.server.network
Class ServerConfigurationNetworkHandler
java.lang.Object
net.minecraft.server.network.ServerCommonNetworkHandler
net.minecraft.server.network.ServerConfigurationNetworkHandler
- All Implemented Interfaces:
PacketListener,ServerCommonPacketListener,ServerConfigurationPacketListener,ServerCookieResponsePacketListener,ServerCrashSafePacketListener,ServerPacketListener,TickablePacketListener
public class ServerConfigurationNetworkHandler
extends ServerCommonNetworkHandler
implements ServerConfigurationPacketListener, TickablePacketListener
- Mappings:
Namespace Name official aqqintermediary net/minecraft/class_8610named net/minecraft/server/network/ServerConfigurationNetworkHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Textprivate static final Loggerprivate final com.mojang.authlib.GameProfileprivate SyncedClientOptionsprivate @Nullable SynchronizeRegistriesTaskprivate final Queue<ServerPlayerConfigurationTask> Fields inherited from class net.minecraft.server.network.ServerCommonNetworkHandler
connection, KEEP_ALIVE_INTERVAL, server, UNEXPECTED_QUERY_RESPONSE_TEXT -
Constructor Summary
ConstructorsConstructorDescriptionServerConfigurationNetworkHandler(MinecraftServer server, ClientConnection connection, ConnectedClientData clientData) -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected com.mojang.authlib.GameProfilebooleanvoidvoidonDisconnected(Text reason) Called when the connection this listener listens to has disconnected.voidonReady(ReadyC2SPacket packet) voidvoidprivate voidprivate voidpollTask()private voidvoidvoidtick()Ticks this packet listener on the game engine thread.Methods inherited from class net.minecraft.server.network.ServerCommonNetworkHandler
baseTick, createClientData, disableFlush, disconnect, enableFlush, getDebugProfile, getLatency, isHost, onCookieResponse, onCustomPayload, onKeepAlive, onPong, send, sendPacketMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.network.listener.PacketListener
accepts, addCustomCrashReportInfo, fillCrashReportMethods inherited from interface net.minecraft.network.listener.ServerCommonPacketListener
onCustomPayload, onKeepAlive, onPongMethods inherited from interface net.minecraft.network.listener.ServerConfigurationPacketListener
getPhaseMethods inherited from interface net.minecraft.network.listener.ServerCookieResponsePacketListener
onCookieResponseMethods inherited from interface net.minecraft.network.listener.ServerCrashSafePacketListener
shouldCrashOnExceptionMethods inherited from interface net.minecraft.network.listener.ServerPacketListener
getSide
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official eLaqq;e:Lorg/slf4j/Logger;intermediary field_45020Lnet/minecraft/class_8610;field_45020:Lorg/slf4j/Logger;named LOGGERLnet/minecraft/server/network/ServerConfigurationNetworkHandler;LOGGER:Lorg/slf4j/Logger;
-
INVALID_PLAYER_DATA_TEXT
- Mappings:
Namespace Name Mixin selector official fLaqq;f:Lwg;intermediary field_45021Lnet/minecraft/class_8610;field_45021:Lnet/minecraft/class_2561;named INVALID_PLAYER_DATA_TEXTLnet/minecraft/server/network/ServerConfigurationNetworkHandler;INVALID_PLAYER_DATA_TEXT:Lnet/minecraft/text/Text;
-
profile
private final com.mojang.authlib.GameProfile profile- Mappings:
Namespace Name Mixin selector official gLaqq;g:Lcom/mojang/authlib/GameProfile;intermediary field_45022Lnet/minecraft/class_8610;field_45022:Lcom/mojang/authlib/GameProfile;named profileLnet/minecraft/server/network/ServerConfigurationNetworkHandler;profile:Lcom/mojang/authlib/GameProfile;
-
tasks
- Mappings:
Namespace Name Mixin selector official hLaqq;h:Ljava/util/Queue;intermediary field_45023Lnet/minecraft/class_8610;field_45023:Ljava/util/Queue;named tasksLnet/minecraft/server/network/ServerConfigurationNetworkHandler;tasks:Ljava/util/Queue;
-
currentTask
- Mappings:
Namespace Name Mixin selector official iLaqq;i:Laqi;intermediary field_45024Lnet/minecraft/class_8610;field_45024:Lnet/minecraft/class_8605;named currentTaskLnet/minecraft/server/network/ServerConfigurationNetworkHandler;currentTask:Lnet/minecraft/server/network/ServerPlayerConfigurationTask;
-
syncedOptions
- Mappings:
Namespace Name Mixin selector official jLaqq;j:Laph;intermediary field_46157Lnet/minecraft/class_8610;field_46157:Lnet/minecraft/class_8791;named syncedOptionsLnet/minecraft/server/network/ServerConfigurationNetworkHandler;syncedOptions:Lnet/minecraft/network/packet/c2s/common/SyncedClientOptions;
-
synchronizedRegistriesTask
- Mappings:
Namespace Name Mixin selector official kLaqq;k:Larb;intermediary field_49026Lnet/minecraft/class_8610;field_49026:Lnet/minecraft/class_9223;named synchronizedRegistriesTaskLnet/minecraft/server/network/ServerConfigurationNetworkHandler;synchronizedRegistriesTask:Lnet/minecraft/server/network/SynchronizeRegistriesTask;
-
-
Constructor Details
-
ServerConfigurationNetworkHandler
public ServerConfigurationNetworkHandler(MinecraftServer server, ClientConnection connection, ConnectedClientData clientData) - Mappings:
Namespace Name Mixin selector official <init>Laqp;<init>(Lnet/minecraft/server/MinecraftServer;Lve;Laqh;)Vintermediary <init>Lnet/minecraft/class_8609;<init>(Lnet/minecraft/server/MinecraftServer;Lnet/minecraft/class_2535;Lnet/minecraft/class_8792;)Vnamed <init>Lnet/minecraft/server/network/ServerCommonNetworkHandler;<init>(Lnet/minecraft/server/MinecraftServer;Lnet/minecraft/network/ClientConnection;Lnet/minecraft/server/network/ConnectedClientData;)V
-
-
Method Details
-
getProfile
protected com.mojang.authlib.GameProfile getProfile()- Specified by:
getProfilein classServerCommonNetworkHandler- Mappings:
Namespace Name Mixin selector official jLaqp;j()Lcom/mojang/authlib/GameProfile;intermediary method_52403Lnet/minecraft/class_8609;method_52403()Lcom/mojang/authlib/GameProfile;named getProfileLnet/minecraft/server/network/ServerCommonNetworkHandler;getProfile()Lcom/mojang/authlib/GameProfile;
-
onDisconnected
Called when the connection this listener listens to has disconnected. Can be used to display the disconnection reason.- Specified by:
onDisconnectedin interfacePacketListener- Overrides:
onDisconnectedin classServerCommonNetworkHandler- Parameters:
reason- the reason of disconnection; may be a generic message- Mappings:
Namespace Name Mixin selector official aLvm;a(Lwg;)Vintermediary method_10839Lnet/minecraft/class_2547;method_10839(Lnet/minecraft/class_2561;)Vnamed onDisconnectedLnet/minecraft/network/listener/PacketListener;onDisconnected(Lnet/minecraft/text/Text;)V
-
isConnectionOpen
public boolean isConnectionOpen()- Specified by:
isConnectionOpenin interfacePacketListener- Mappings:
Namespace Name Mixin selector official cLvm;c()Zintermediary method_48106Lnet/minecraft/class_2547;method_48106()Znamed isConnectionOpenLnet/minecraft/network/listener/PacketListener;isConnectionOpen()Z
-
sendConfigurations
public void sendConfigurations()- Mappings:
Namespace Name Mixin selector official mLaqq;m()Vintermediary method_52409Lnet/minecraft/class_8610;method_52409()Vnamed sendConfigurationsLnet/minecraft/server/network/ServerConfigurationNetworkHandler;sendConfigurations()V
-
endConfiguration
public void endConfiguration()- Mappings:
Namespace Name Mixin selector official nLaqq;n()Vintermediary method_52410Lnet/minecraft/class_8610;method_52410()Vnamed endConfigurationLnet/minecraft/server/network/ServerConfigurationNetworkHandler;endConfiguration()V
-
queueSendResourcePackTask
private void queueSendResourcePackTask()- Mappings:
Namespace Name Mixin selector official oLaqq;o()Vintermediary method_52411Lnet/minecraft/class_8610;method_52411()Vnamed queueSendResourcePackTaskLnet/minecraft/server/network/ServerConfigurationNetworkHandler;queueSendResourcePackTask()V
-
onClientOptions
- Specified by:
onClientOptionsin interfaceServerCommonPacketListener- Mappings:
Namespace Name Mixin selector official aLze;a(Lzf;)Vintermediary method_12069Lnet/minecraft/class_8706;method_12069(Lnet/minecraft/class_2803;)Vnamed onClientOptionsLnet/minecraft/network/listener/ServerCommonPacketListener;onClientOptions(Lnet/minecraft/network/packet/c2s/common/ClientOptionsC2SPacket;)V
-
onResourcePackStatus
- Specified by:
onResourcePackStatusin interfaceServerCommonPacketListener- Overrides:
onResourcePackStatusin classServerCommonNetworkHandler- Mappings:
Namespace Name Mixin selector official aLze;a(Lzj;)Vintermediary method_52395Lnet/minecraft/class_8706;method_52395(Lnet/minecraft/class_2856;)Vnamed onResourcePackStatusLnet/minecraft/network/listener/ServerCommonPacketListener;onResourcePackStatus(Lnet/minecraft/network/packet/c2s/common/ResourcePackStatusC2SPacket;)V
-
onSelectKnownPacks
- Specified by:
onSelectKnownPacksin interfaceServerConfigurationPacketListener- Mappings:
Namespace Name Mixin selector official aLaao;a(Laaq;)Vintermediary method_56909Lnet/minecraft/class_8735;method_56909(Lnet/minecraft/class_9220;)Vnamed onSelectKnownPacksLnet/minecraft/network/listener/ServerConfigurationPacketListener;onSelectKnownPacks(Lnet/minecraft/network/packet/c2s/config/SelectKnownPacksC2SPacket;)V
-
onReady
- Specified by:
onReadyin interfaceServerConfigurationPacketListener- Mappings:
Namespace Name Mixin selector official aLaao;a(Laap;)Vintermediary method_52408Lnet/minecraft/class_8735;method_52408(Lnet/minecraft/class_8736;)Vnamed onReadyLnet/minecraft/network/listener/ServerConfigurationPacketListener;onReady(Lnet/minecraft/network/packet/c2s/config/ReadyC2SPacket;)V
-
tick
public void tick()Ticks this packet listener on the game engine thread. The listener is responsible for synchronizing between the game engine and netty event loop threads.- Specified by:
tickin interfaceTickablePacketListener- Mappings:
Namespace Name Mixin selector official eLvu;e()Vintermediary method_18784Lnet/minecraft/class_7633;method_18784()Vnamed tickLnet/minecraft/network/listener/TickablePacketListener;tick()V
-
pollTask
private void pollTask()- Mappings:
Namespace Name Mixin selector official pLaqq;p()Vintermediary method_52412Lnet/minecraft/class_8610;method_52412()Vnamed pollTaskLnet/minecraft/server/network/ServerConfigurationNetworkHandler;pollTask()V
-
onTaskFinished
- Mappings:
Namespace Name Mixin selector official aLaqq;a(Laqi$a;)Vintermediary method_52406Lnet/minecraft/class_8610;method_52406(Lnet/minecraft/class_8605$class_8606;)Vnamed onTaskFinishedLnet/minecraft/server/network/ServerConfigurationNetworkHandler;onTaskFinished(Lnet/minecraft/server/network/ServerPlayerConfigurationTask$Key;)V
-