Package net.minecraft.server.network
Class ServerLoginNetworkHandler
java.lang.Object
net.minecraft.server.network.ServerLoginNetworkHandler
- All Implemented Interfaces:
PacketListener,ServerLoginPacketListener
public class ServerLoginNetworkHandler extends Object implements ServerLoginPacketListener
- Mappings:
Namespace Name official abpintermediary net/minecraft/class_3248named 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 AtomicIntegerauthenticatorThreadIdClientConnectionconnectionprivate static LoggerLOGGERprivate intloginTicksprivate byte[]nonceprivate ServerPlayerEntityplayerprivate com.mojang.authlib.GameProfileprofileprivate static RandomRANDOMprivate SecretKeysecretKeyprivate MinecraftServerserverprivate StringserverIdprivate ServerLoginNetworkHandler.Statestate -
Constructor Summary
Constructors Constructor Description ServerLoginNetworkHandler(MinecraftServer server, ClientConnection connection) -
Method Summary
Modifier and Type Method Description voidacceptPlayer()voiddisconnect(Text reason)ClientConnectiongetConnection()StringgetConnectionInfo()voidonDisconnected(Text reason)voidonHello(LoginHelloC2SPacket packet)voidonKey(LoginKeyC2SPacket packet)voidonQueryResponse(LoginQueryResponseC2SPacket packet)voidtick()protected com.mojang.authlib.GameProfiletoOfflineProfile(com.mojang.authlib.GameProfile profile)
-
Field Details
-
authenticatorThreadId
- Mappings:
Namespace Name Mixin selector official bLabp;b:Ljava/util/concurrent/atomic/AtomicInteger;intermediary field_14157Lnet/minecraft/class_3248;field_14157:Ljava/util/concurrent/atomic/AtomicInteger;named authenticatorThreadIdLnet/minecraft/server/network/ServerLoginNetworkHandler;authenticatorThreadId:Ljava/util/concurrent/atomic/AtomicInteger;
-
LOGGER
- Mappings:
Namespace Name Mixin selector official cLabp;c:Lorg/apache/logging/log4j/Logger;intermediary field_14166Lnet/minecraft/class_3248;field_14166:Lorg/apache/logging/log4j/Logger;named LOGGERLnet/minecraft/server/network/ServerLoginNetworkHandler;LOGGER:Lorg/apache/logging/log4j/Logger;
-
RANDOM
- Mappings:
Namespace Name Mixin selector official dLabp;d:Ljava/util/Random;intermediary field_14164Lnet/minecraft/class_3248;field_14164:Ljava/util/Random;named RANDOMLnet/minecraft/server/network/ServerLoginNetworkHandler;RANDOM:Ljava/util/Random;
-
nonce
private final byte[] nonce- Mappings:
Namespace Name Mixin selector official eLabp;e:[Bintermediary field_14167Lnet/minecraft/class_3248;field_14167:[Bnamed nonceLnet/minecraft/server/network/ServerLoginNetworkHandler;nonce:[B
-
server
- Mappings:
Namespace Name Mixin selector official fLabp;f:Lnet/minecraft/server/MinecraftServer;intermediary field_14162Lnet/minecraft/class_3248;field_14162:Lnet/minecraft/server/MinecraftServer;named serverLnet/minecraft/server/network/ServerLoginNetworkHandler;server:Lnet/minecraft/server/MinecraftServer;
-
connection
- Mappings:
Namespace Name Mixin selector official aLabp;a:Lnu;intermediary field_14158Lnet/minecraft/class_3248;field_14158:Lnet/minecraft/class_2535;named connectionLnet/minecraft/server/network/ServerLoginNetworkHandler;connection:Lnet/minecraft/network/ClientConnection;
-
state
- Mappings:
Namespace Name Mixin selector official gLabp;g:Labp$a;intermediary field_14163Lnet/minecraft/class_3248;field_14163:Lnet/minecraft/class_3248$class_3249;named stateLnet/minecraft/server/network/ServerLoginNetworkHandler;state:Lnet/minecraft/server/network/ServerLoginNetworkHandler$State;
-
loginTicks
private int loginTicks- Mappings:
Namespace Name Mixin selector official hLabp;h:Iintermediary field_14156Lnet/minecraft/class_3248;field_14156:Inamed loginTicksLnet/minecraft/server/network/ServerLoginNetworkHandler;loginTicks:I
-
profile
private com.mojang.authlib.GameProfile profile- Mappings:
Namespace Name Mixin selector official iLabp;i:Lcom/mojang/authlib/GameProfile;intermediary field_14160Lnet/minecraft/class_3248;field_14160:Lcom/mojang/authlib/GameProfile;named profileLnet/minecraft/server/network/ServerLoginNetworkHandler;profile:Lcom/mojang/authlib/GameProfile;
-
serverId
- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official jLabp;j:Ljava/lang/String;intermediary field_14165Lnet/minecraft/class_3248;field_14165:Ljava/lang/String;named serverIdLnet/minecraft/server/network/ServerLoginNetworkHandler;serverId:Ljava/lang/String;
-
secretKey
- Mappings:
Namespace Name Mixin selector official kLabp;k:Ljavax/crypto/SecretKey;intermediary field_14159Lnet/minecraft/class_3248;field_14159:Ljavax/crypto/SecretKey;named secretKeyLnet/minecraft/server/network/ServerLoginNetworkHandler;secretKey:Ljavax/crypto/SecretKey;
-
player
- Mappings:
Namespace Name Mixin selector official lLabp;l:Laaw;intermediary field_14161Lnet/minecraft/class_3248;field_14161:Lnet/minecraft/class_3222;named playerLnet/minecraft/server/network/ServerLoginNetworkHandler;player:Lnet/minecraft/server/network/ServerPlayerEntity;
-
-
Constructor Details
-
ServerLoginNetworkHandler
- Mappings:
Namespace Name Mixin selector official <init>Labp;<init>(Lnet/minecraft/server/MinecraftServer;Lnu;)Vintermediary <init>Lnet/minecraft/class_3248;<init>(Lnet/minecraft/server/MinecraftServer;Lnet/minecraft/class_2535;)Vnamed <init>Lnet/minecraft/server/network/ServerLoginNetworkHandler;<init>(Lnet/minecraft/server/MinecraftServer;Lnet/minecraft/network/ClientConnection;)V
-
-
Method Details
-
tick
public void tick()- Mappings:
Namespace Name Mixin selector official bLabp;b()Vintermediary method_18785Lnet/minecraft/class_3248;method_18785()Vnamed tickLnet/minecraft/server/network/ServerLoginNetworkHandler;tick()V
-
getConnection
- Specified by:
getConnectionin interfacePacketListener- Mappings:
Namespace Name Mixin selector official aLnz;a()Lnu;intermediary method_2872Lnet/minecraft/class_2547;method_2872()Lnet/minecraft/class_2535;named getConnectionLnet/minecraft/network/listener/PacketListener;getConnection()Lnet/minecraft/network/ClientConnection;
-
disconnect
- Mappings:
Namespace Name Mixin selector official bLabp;b(Loi;)Vintermediary method_14380Lnet/minecraft/class_3248;method_14380(Lnet/minecraft/class_2561;)Vnamed disconnectLnet/minecraft/server/network/ServerLoginNetworkHandler;disconnect(Lnet/minecraft/text/Text;)V
-
acceptPlayer
public void acceptPlayer()- Mappings:
Namespace Name Mixin selector official cLabp;c()Vintermediary method_14384Lnet/minecraft/class_3248;method_14384()Vnamed acceptPlayerLnet/minecraft/server/network/ServerLoginNetworkHandler;acceptPlayer()V
-
onDisconnected
- Specified by:
onDisconnectedin interfacePacketListener- Mappings:
Namespace Name Mixin selector official aLnz;a(Loi;)Vintermediary method_10839Lnet/minecraft/class_2547;method_10839(Lnet/minecraft/class_2561;)Vnamed onDisconnectedLnet/minecraft/network/listener/PacketListener;onDisconnected(Lnet/minecraft/text/Text;)V
-
getConnectionInfo
- Mappings:
Namespace Name Mixin selector official dLabp;d()Ljava/lang/String;intermediary method_14383Lnet/minecraft/class_3248;method_14383()Ljava/lang/String;named getConnectionInfoLnet/minecraft/server/network/ServerLoginNetworkHandler;getConnectionInfo()Ljava/lang/String;
-
onHello
- Specified by:
onHelloin interfaceServerLoginPacketListener- Mappings:
Namespace Name Mixin selector official aLuw;a(Luy;)Vintermediary method_12641Lnet/minecraft/class_2911;method_12641(Lnet/minecraft/class_2915;)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 aLuw;a(Luz;)Vintermediary method_12642Lnet/minecraft/class_2911;method_12642(Lnet/minecraft/class_2917;)Vnamed onKeyLnet/minecraft/network/listener/ServerLoginPacketListener;onKey(Lnet/minecraft/network/packet/c2s/login/LoginKeyC2SPacket;)V
-
onQueryResponse
- Specified by:
onQueryResponsein interfaceServerLoginPacketListener- Mappings:
Namespace Name Mixin selector official aLuw;a(Lux;)Vintermediary method_12640Lnet/minecraft/class_2911;method_12640(Lnet/minecraft/class_2913;)Vnamed onQueryResponseLnet/minecraft/network/listener/ServerLoginPacketListener;onQueryResponse(Lnet/minecraft/network/packet/c2s/login/LoginQueryResponseC2SPacket;)V
-
toOfflineProfile
protected com.mojang.authlib.GameProfile toOfflineProfile(com.mojang.authlib.GameProfile profile)- Mappings:
Namespace Name Mixin selector official aLabp;a(Lcom/mojang/authlib/GameProfile;)Lcom/mojang/authlib/GameProfile;intermediary method_14375Lnet/minecraft/class_3248;method_14375(Lcom/mojang/authlib/GameProfile;)Lcom/mojang/authlib/GameProfile;named toOfflineProfileLnet/minecraft/server/network/ServerLoginNetworkHandler;toOfflineProfile(Lcom/mojang/authlib/GameProfile;)Lcom/mojang/authlib/GameProfile;
-