Package net.minecraft.server.network
Class ServerLoginNetworkHandler
java.lang.Object
net.minecraft.server.network.ServerLoginNetworkHandler
- All Implemented Interfaces:
PacketListener,ServerLoginPacketListener,Tickable
public class ServerLoginNetworkHandler
extends Object
implements ServerLoginPacketListener, Tickable
- Mappings:
Namespace Name official lointermediary net/minecraft/class_2112named net/minecraft/server/network/ServerLoginNetworkHandler
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final AtomicIntegerprivate ServerPlayerEntityfinal ClientConnectionprivate Stringprivate static final Loggerprivate intprivate final byte[]private com.mojang.authlib.GameProfileprivate static final Randomprivate SecretKeyprivate final MinecraftServerprivate ServerLoginNetworkHandler.State -
Constructor Summary
ConstructorsConstructorDescriptionServerLoginNetworkHandler(MinecraftServer minecraftServer, ClientConnection clientConnection) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoiddisconnect(String string) voidonDisconnected(Text reason) voidonHello(LoginHelloC2SPacket packet) voidonKey(LoginKeyC2SPacket packet) voidtick()protected com.mojang.authlib.GameProfiletoOfflineProfile(com.mojang.authlib.GameProfile profile)
-
Field Details
-
authenticatorThreadId
- Mappings:
Namespace Name Mixin selector official bLlo;b:Ljava/util/concurrent/atomic/AtomicInteger;intermediary field_8952Lnet/minecraft/class_2112;field_8952:Ljava/util/concurrent/atomic/AtomicInteger;named authenticatorThreadIdLnet/minecraft/server/network/ServerLoginNetworkHandler;authenticatorThreadId:Ljava/util/concurrent/atomic/AtomicInteger;
-
LOGGER
- Mappings:
Namespace Name Mixin selector official cLlo;c:Lorg/apache/logging/log4j/Logger;intermediary field_8953Lnet/minecraft/class_2112;field_8953:Lorg/apache/logging/log4j/Logger;named LOGGERLnet/minecraft/server/network/ServerLoginNetworkHandler;LOGGER:Lorg/apache/logging/log4j/Logger;
-
RANDOM
- Mappings:
Namespace Name Mixin selector official dLlo;d:Ljava/util/Random;intermediary field_8954Lnet/minecraft/class_2112;field_8954:Ljava/util/Random;named RANDOMLnet/minecraft/server/network/ServerLoginNetworkHandler;RANDOM:Ljava/util/Random;
-
nonce
private final byte[] nonce- Mappings:
Namespace Name Mixin selector official eLlo;e:[Bintermediary field_8955Lnet/minecraft/class_2112;field_8955:[Bnamed nonceLnet/minecraft/server/network/ServerLoginNetworkHandler;nonce:[B
-
server
- Mappings:
Namespace Name Mixin selector official fLlo;f:Lnet/minecraft/server/MinecraftServer;intermediary field_8956Lnet/minecraft/class_2112;field_8956:Lnet/minecraft/server/MinecraftServer;named serverLnet/minecraft/server/network/ServerLoginNetworkHandler;server:Lnet/minecraft/server/MinecraftServer;
-
connection
- Mappings:
Namespace Name Mixin selector official aLlo;a:Lek;intermediary field_8951Lnet/minecraft/class_2112;field_8951:Lnet/minecraft/class_1957;named connectionLnet/minecraft/server/network/ServerLoginNetworkHandler;connection:Lnet/minecraft/network/ClientConnection;
-
state
- Mappings:
Namespace Name Mixin selector official gLlo;g:Llo$a;intermediary field_8957Lnet/minecraft/class_2112;field_8957:Lnet/minecraft/class_2112$class_2114;named stateLnet/minecraft/server/network/ServerLoginNetworkHandler;state:Lnet/minecraft/server/network/ServerLoginNetworkHandler$State;
-
loginTicks
private int loginTicks- Mappings:
Namespace Name Mixin selector official hLlo;h:Iintermediary field_8958Lnet/minecraft/class_2112;field_8958:Inamed loginTicksLnet/minecraft/server/network/ServerLoginNetworkHandler;loginTicks:I
-
profile
private com.mojang.authlib.GameProfile profile- Mappings:
Namespace Name Mixin selector official iLlo;i:Lcom/mojang/authlib/GameProfile;intermediary field_8959Lnet/minecraft/class_2112;field_8959:Lcom/mojang/authlib/GameProfile;named profileLnet/minecraft/server/network/ServerLoginNetworkHandler;profile:Lcom/mojang/authlib/GameProfile;
-
field_8960
- Mappings:
Namespace Name Mixin selector official jLlo;j:Ljava/lang/String;intermediary field_8960Lnet/minecraft/class_2112;field_8960:Ljava/lang/String;named field_8960Lnet/minecraft/server/network/ServerLoginNetworkHandler;field_8960:Ljava/lang/String;
-
secretKey
- Mappings:
Namespace Name Mixin selector official kLlo;k:Ljavax/crypto/SecretKey;intermediary field_8961Lnet/minecraft/class_2112;field_8961:Ljavax/crypto/SecretKey;named secretKeyLnet/minecraft/server/network/ServerLoginNetworkHandler;secretKey:Ljavax/crypto/SecretKey;
-
clientEntity
- Mappings:
Namespace Name Mixin selector official lLlo;l:Llf;intermediary field_11781Lnet/minecraft/class_2112;field_11781:Lnet/minecraft/class_798;named clientEntityLnet/minecraft/server/network/ServerLoginNetworkHandler;clientEntity:Lnet/minecraft/entity/player/ServerPlayerEntity;
-
-
Constructor Details
-
ServerLoginNetworkHandler
public ServerLoginNetworkHandler(MinecraftServer minecraftServer, ClientConnection clientConnection)
-
-
Method Details
-
tick
public void tick() -
disconnect
- Mappings:
Namespace Name Mixin selector official aLlo;a(Ljava/lang/String;)Vintermediary method_8172Lnet/minecraft/class_2112;method_8172(Ljava/lang/String;)Vnamed disconnectLnet/minecraft/server/network/ServerLoginNetworkHandler;disconnect(Ljava/lang/String;)V
-
acceptPlayer
public void acceptPlayer()- Mappings:
Namespace Name Mixin selector official bLlo;b()Vintermediary method_8177Lnet/minecraft/class_2112;method_8177()Vnamed acceptPlayerLnet/minecraft/server/network/ServerLoginNetworkHandler;acceptPlayer()V
-
onDisconnected
- Specified by:
onDisconnectedin interfacePacketListener- Mappings:
Namespace Name Mixin selector official aLep;a(Leu;)Vintermediary method_7456Lnet/minecraft/class_701;method_7456(Lnet/minecraft/class_1982;)Vnamed onDisconnectedLnet/minecraft/network/listener/PacketListener;onDisconnected(Lnet/minecraft/text/Text;)V
-
getConnectionInfo
- Mappings:
Namespace Name Mixin selector official dLlo;d()Ljava/lang/String;intermediary method_8179Lnet/minecraft/class_2112;method_8179()Ljava/lang/String;named getConnectionInfoLnet/minecraft/server/network/ServerLoginNetworkHandler;getConnectionInfo()Ljava/lang/String;
-
onHello
- Specified by:
onHelloin interfaceServerLoginPacketListener- Mappings:
Namespace Name Mixin selector official aLjk;a(Ljl;)Vintermediary method_8056Lnet/minecraft/class_2076;method_8056(Lnet/minecraft/class_2077;)Vnamed onHelloLnet/minecraft/network/listener/ServerLoginPacketListener;onHello(Lnet/minecraft/network/packet/c2s/login/LoginHelloC2SPacket;)V
-
onKey
- Specified by:
onKeyin interfaceServerLoginPacketListener- Mappings:
Namespace Name Mixin selector official aLjk;a(Ljm;)Vintermediary method_8057Lnet/minecraft/class_2076;method_8057(Lnet/minecraft/class_721;)Vnamed onKeyLnet/minecraft/network/listener/ServerLoginPacketListener;onKey(Lnet/minecraft/network/packet/c2s/login/LoginKeyC2SPacket;)V
-
toOfflineProfile
protected com.mojang.authlib.GameProfile toOfflineProfile(com.mojang.authlib.GameProfile profile) - Mappings:
Namespace Name Mixin selector official aLlo;a(Lcom/mojang/authlib/GameProfile;)Lcom/mojang/authlib/GameProfile;intermediary method_8171Lnet/minecraft/class_2112;method_8171(Lcom/mojang/authlib/GameProfile;)Lcom/mojang/authlib/GameProfile;named toOfflineProfileLnet/minecraft/server/network/ServerLoginNetworkHandler;toOfflineProfile(Lcom/mojang/authlib/GameProfile;)Lcom/mojang/authlib/GameProfile;
-