Package net.minecraft.server.network
Class ServerConfigurationNetworkHandler
java.lang.Object
net.minecraft.server.network.ServerCommonNetworkHandler
net.minecraft.server.network.ServerConfigurationNetworkHandler
- All Implemented Interfaces:
class_9090,PacketListener,ServerCommonPacketListener,ServerConfigurationPacketListener,ServerCrashSafePacketListener,ServerPacketListener,TickablePacketListener
public class ServerConfigurationNetworkHandler
extends ServerCommonNetworkHandler
implements TickablePacketListener, ServerConfigurationPacketListener
- Mappings:
Namespace Name official apsintermediary 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 final Queue<ServerPlayerConfigurationTask>Fields inherited from class net.minecraft.server.network.ServerCommonNetworkHandler
connection, field_48273, KEEP_ALIVE_INTERVAL, server -
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) voidprivate 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, method_55851, 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.class_9090
method_55851Methods 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
getStateMethods 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 eLaps;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 fLaps;f:Lvq;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 gLaps;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 hLaps;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 iLaps;i:Lapl;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 jLaps;j:Laok;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;
-
-
Constructor Details
-
ServerConfigurationNetworkHandler
public ServerConfigurationNetworkHandler(MinecraftServer server, ClientConnection connection, ConnectedClientData clientData) - Mappings:
Namespace Name Mixin selector official <init>Lapr;<init>(Lnet/minecraft/server/MinecraftServer;Luo;Lapk;)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 jLapr;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 aLuw;a(Lvq;)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 cLuw;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 mLaps;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 nLaps;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 oLaps;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 aLyo;a(Lyp;)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 aLyo;a(Lyt;)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
-
onReady
- Specified by:
onReadyin interfaceServerConfigurationPacketListener- Mappings:
Namespace Name Mixin selector official aLzx;a(Lzy;)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 eLve;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 pLaps;p()Vintermediary method_52412Lnet/minecraft/class_8610;method_52412()Vnamed pollTaskLnet/minecraft/server/network/ServerConfigurationNetworkHandler;pollTask()V
-
onTaskFinished
- Mappings:
Namespace Name Mixin selector official aLaps;a(Lapl$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
-