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 named net/minecraft/server/network/ServerConfigurationNetworkHandlerintermediary net/minecraft/class_8610official ari
-
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
onPacketExceptionMethods inherited from interface net.minecraft.network.listener.ServerPacketListener
getSide
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGERLnet/minecraft/server/network/ServerConfigurationNetworkHandler;LOGGER:Lorg/slf4j/Logger;intermediary field_45020Lnet/minecraft/class_8610;field_45020:Lorg/slf4j/Logger;official fLari;f:Lorg/slf4j/Logger;
-
INVALID_PLAYER_DATA_TEXT
- Mappings:
Namespace Name Mixin selector named INVALID_PLAYER_DATA_TEXTLnet/minecraft/server/network/ServerConfigurationNetworkHandler;INVALID_PLAYER_DATA_TEXT:Lnet/minecraft/text/Text;intermediary field_45021Lnet/minecraft/class_8610;field_45021:Lnet/minecraft/class_2561;official gLari;g:Lwu;
-
profile
private final com.mojang.authlib.GameProfile profile- Mappings:
Namespace Name Mixin selector named profileLnet/minecraft/server/network/ServerConfigurationNetworkHandler;profile:Lcom/mojang/authlib/GameProfile;intermediary field_45022Lnet/minecraft/class_8610;field_45022:Lcom/mojang/authlib/GameProfile;official hLari;h:Lcom/mojang/authlib/GameProfile;
-
tasks
- Mappings:
Namespace Name Mixin selector named tasksLnet/minecraft/server/network/ServerConfigurationNetworkHandler;tasks:Ljava/util/Queue;intermediary field_45023Lnet/minecraft/class_8610;field_45023:Ljava/util/Queue;official iLari;i:Ljava/util/Queue;
-
currentTask
- Mappings:
Namespace Name Mixin selector named currentTaskLnet/minecraft/server/network/ServerConfigurationNetworkHandler;currentTask:Lnet/minecraft/server/network/ServerPlayerConfigurationTask;intermediary field_45024Lnet/minecraft/class_8610;field_45024:Lnet/minecraft/class_8605;official jLari;j:Lara;
-
syncedOptions
- Mappings:
Namespace Name Mixin selector named syncedOptionsLnet/minecraft/server/network/ServerConfigurationNetworkHandler;syncedOptions:Lnet/minecraft/network/packet/c2s/common/SyncedClientOptions;intermediary field_46157Lnet/minecraft/class_8610;field_46157:Lnet/minecraft/class_8791;official kLari;k:Lapz;
-
synchronizedRegistriesTask
- Mappings:
Namespace Name Mixin selector named synchronizedRegistriesTaskLnet/minecraft/server/network/ServerConfigurationNetworkHandler;synchronizedRegistriesTask:Lnet/minecraft/server/network/SynchronizeRegistriesTask;intermediary field_49026Lnet/minecraft/class_8610;field_49026:Lnet/minecraft/class_9223;official lLari;l:Lart;
-
-
Constructor Details
-
ServerConfigurationNetworkHandler
public ServerConfigurationNetworkHandler(MinecraftServer server, ClientConnection connection, ConnectedClientData clientData) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/server/network/ServerCommonNetworkHandler;<init>(Lnet/minecraft/server/MinecraftServer;Lnet/minecraft/network/ClientConnection;Lnet/minecraft/server/network/ConnectedClientData;)Vintermediary <init>Lnet/minecraft/class_8609;<init>(Lnet/minecraft/server/MinecraftServer;Lnet/minecraft/class_2535;Lnet/minecraft/class_8792;)Vofficial <init>Larh;<init>(Lnet/minecraft/server/MinecraftServer;Lvp;Laqz;)V
-
-
Method Details
-
getProfile
protected com.mojang.authlib.GameProfile getProfile()- Specified by:
getProfilein classServerCommonNetworkHandler- Mappings:
Namespace Name Mixin selector named getProfileLnet/minecraft/server/network/ServerCommonNetworkHandler;getProfile()Lcom/mojang/authlib/GameProfile;intermediary method_52403Lnet/minecraft/class_8609;method_52403()Lcom/mojang/authlib/GameProfile;official iLarh;i()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 named onDisconnectedLnet/minecraft/network/listener/PacketListener;onDisconnected(Lnet/minecraft/text/Text;)Vintermediary method_10839Lnet/minecraft/class_2547;method_10839(Lnet/minecraft/class_2561;)Vofficial aLwa;a(Lwu;)V
-
isConnectionOpen
public boolean isConnectionOpen()- Specified by:
isConnectionOpenin interfacePacketListener- Mappings:
Namespace Name Mixin selector named isConnectionOpenLnet/minecraft/network/listener/PacketListener;isConnectionOpen()Zintermediary method_48106Lnet/minecraft/class_2547;method_48106()Zofficial cLwa;c()Z
-
sendConfigurations
public void sendConfigurations()- Mappings:
Namespace Name Mixin selector named sendConfigurationsLnet/minecraft/server/network/ServerConfigurationNetworkHandler;sendConfigurations()Vintermediary method_52409Lnet/minecraft/class_8610;method_52409()Vofficial lLari;l()V
-
endConfiguration
public void endConfiguration()- Mappings:
Namespace Name Mixin selector named endConfigurationLnet/minecraft/server/network/ServerConfigurationNetworkHandler;endConfiguration()Vintermediary method_52410Lnet/minecraft/class_8610;method_52410()Vofficial mLari;m()V
-
queueSendResourcePackTask
private void queueSendResourcePackTask()- Mappings:
Namespace Name Mixin selector named queueSendResourcePackTaskLnet/minecraft/server/network/ServerConfigurationNetworkHandler;queueSendResourcePackTask()Vintermediary method_52411Lnet/minecraft/class_8610;method_52411()Vofficial nLari;n()V
-
onClientOptions
- Specified by:
onClientOptionsin interfaceServerCommonPacketListener- Mappings:
Namespace Name Mixin selector named onClientOptionsLnet/minecraft/network/listener/ServerCommonPacketListener;onClientOptions(Lnet/minecraft/network/packet/c2s/common/ClientOptionsC2SPacket;)Vintermediary method_12069Lnet/minecraft/class_8706;method_12069(Lnet/minecraft/class_2803;)Vofficial aLzs;a(Lzt;)V
-
onResourcePackStatus
- Specified by:
onResourcePackStatusin interfaceServerCommonPacketListener- Overrides:
onResourcePackStatusin classServerCommonNetworkHandler- Mappings:
Namespace Name Mixin selector named onResourcePackStatusLnet/minecraft/network/listener/ServerCommonPacketListener;onResourcePackStatus(Lnet/minecraft/network/packet/c2s/common/ResourcePackStatusC2SPacket;)Vintermediary method_52395Lnet/minecraft/class_8706;method_52395(Lnet/minecraft/class_2856;)Vofficial aLzs;a(Lzx;)V
-
onSelectKnownPacks
- Specified by:
onSelectKnownPacksin interfaceServerConfigurationPacketListener- Mappings:
Namespace Name Mixin selector named onSelectKnownPacksLnet/minecraft/network/listener/ServerConfigurationPacketListener;onSelectKnownPacks(Lnet/minecraft/network/packet/c2s/config/SelectKnownPacksC2SPacket;)Vintermediary method_56909Lnet/minecraft/class_8735;method_56909(Lnet/minecraft/class_9220;)Vofficial aLabd;a(Labf;)V
-
onReady
- Specified by:
onReadyin interfaceServerConfigurationPacketListener- Mappings:
Namespace Name Mixin selector named onReadyLnet/minecraft/network/listener/ServerConfigurationPacketListener;onReady(Lnet/minecraft/network/packet/c2s/config/ReadyC2SPacket;)Vintermediary method_52408Lnet/minecraft/class_8735;method_52408(Lnet/minecraft/class_8736;)Vofficial aLabd;a(Labe;)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 named tickLnet/minecraft/network/listener/TickablePacketListener;tick()Vintermediary method_18784Lnet/minecraft/class_7633;method_18784()Vofficial dLwi;d()V
-
pollTask
private void pollTask()- Mappings:
Namespace Name Mixin selector named pollTaskLnet/minecraft/server/network/ServerConfigurationNetworkHandler;pollTask()Vintermediary method_52412Lnet/minecraft/class_8610;method_52412()Vofficial oLari;o()V
-
onTaskFinished
- Mappings:
Namespace Name Mixin selector named onTaskFinishedLnet/minecraft/server/network/ServerConfigurationNetworkHandler;onTaskFinished(Lnet/minecraft/server/network/ServerPlayerConfigurationTask$Key;)Vintermediary method_52406Lnet/minecraft/class_8610;method_52406(Lnet/minecraft/class_8605$class_8606;)Vofficial aLari;a(Lara$a;)V
-