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_1645named net/minecraft/server/network/ServerLoginNetworkHandler
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classServerLoginNetworkHandler.State -
Field Summary
Fields Modifier and Type Field Description private static AtomicIntegerauthenticatorThreadIdprivate ServerPlayerEntityclientEntityClientConnectionconnectionprivate Stringfield_6756private static LoggerLOGGERprivate intloginTicksprivate byte[]nonceprivate com.mojang.authlib.GameProfileprofileprivate static RandomRANDOMprivate SecretKeysecretKeyprivate MinecraftServerserverprivate ServerLoginNetworkHandler.Statestate -
Constructor Summary
Constructors Constructor Description ServerLoginNetworkHandler(MinecraftServer minecraftServer, ClientConnection clientConnection) -
Method Summary
Modifier and Type Method Description voidacceptPlayer()voiddisconnect(String string)StringgetConnectionInfo()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_6748Lnet/minecraft/class_1645;field_6748: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_6749Lnet/minecraft/class_1645;field_6749: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_6750Lnet/minecraft/class_1645;field_6750: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_6751Lnet/minecraft/class_1645;field_6751:[Bnamed nonceLnet/minecraft/server/network/ServerLoginNetworkHandler;nonce:[B
-
server
- Mappings:
Namespace Name Mixin selector official fLlo;f:Lnet/minecraft/server/MinecraftServer;intermediary field_6752Lnet/minecraft/class_1645;field_6752: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_6747Lnet/minecraft/class_1645;field_6747:Lnet/minecraft/class_1432;named connectionLnet/minecraft/server/network/ServerLoginNetworkHandler;connection:Lnet/minecraft/network/ClientConnection;
-
state
- Mappings:
Namespace Name Mixin selector official gLlo;g:Llo$a;intermediary field_6753Lnet/minecraft/class_1645;field_6753:Lnet/minecraft/class_1645$class_1646;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_6754Lnet/minecraft/class_1645;field_6754: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_6755Lnet/minecraft/class_1645;field_6755:Lcom/mojang/authlib/GameProfile;named profileLnet/minecraft/server/network/ServerLoginNetworkHandler;profile:Lcom/mojang/authlib/GameProfile;
-
field_6756
- Mappings:
Namespace Name Mixin selector official jLlo;j:Ljava/lang/String;intermediary field_6756Lnet/minecraft/class_1645;field_6756:Ljava/lang/String;named field_6756Lnet/minecraft/server/network/ServerLoginNetworkHandler;field_6756:Ljava/lang/String;
-
secretKey
- Mappings:
Namespace Name Mixin selector official kLlo;k:Ljavax/crypto/SecretKey;intermediary field_6757Lnet/minecraft/class_1645;field_6757: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_6758Lnet/minecraft/class_1645;field_6758:Lnet/minecraft/class_1637;named clientEntityLnet/minecraft/server/network/ServerLoginNetworkHandler;clientEntity:Lnet/minecraft/server/network/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_6134Lnet/minecraft/class_1645;method_6134(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_6138Lnet/minecraft/class_1645;method_6138()Vnamed acceptPlayerLnet/minecraft/server/network/ServerLoginNetworkHandler;acceptPlayer()V
-
onDisconnected
- Specified by:
onDisconnectedin interfacePacketListener- Mappings:
Namespace Name Mixin selector official aLep;a(Leu;)Vintermediary method_5148Lnet/minecraft/class_1438;method_5148(Lnet/minecraft/class_1444;)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_6141Lnet/minecraft/class_1645;method_6141()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_5844Lnet/minecraft/class_1590;method_5844(Lnet/minecraft/class_1591;)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_5845Lnet/minecraft/class_1590;method_5845(Lnet/minecraft/class_1592;)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_6133Lnet/minecraft/class_1645;method_6133(Lcom/mojang/authlib/GameProfile;)Lcom/mojang/authlib/GameProfile;named toOfflineProfileLnet/minecraft/server/network/ServerLoginNetworkHandler;toOfflineProfile(Lcom/mojang/authlib/GameProfile;)Lcom/mojang/authlib/GameProfile;
-