Package net.minecraft.server.network
Class ServerCommonNetworkHandler
java.lang.Object
net.minecraft.server.network.ServerCommonNetworkHandler
- All Implemented Interfaces:
PacketListener
,ServerCommonPacketListener
,ServerCookieResponsePacketListener
,ServerCrashSafePacketListener
,ServerPacketListener
- Direct Known Subclasses:
ServerConfigurationNetworkHandler
,ServerPlayNetworkHandler
public abstract class ServerCommonNetworkHandler
extends Object
implements ServerCommonPacketListener
- Mappings:
Namespace Name named net/minecraft/server/network/ServerCommonNetworkHandler
intermediary net/minecraft/class_8609
official ath
-
Field Summary
Modifier and TypeFieldDescriptionprotected final ClientConnection
private boolean
static final int
private long
private long
private int
private static final Logger
protected final MinecraftServer
private static final Text
private final boolean
private static final int
private boolean
private long
(package private) static final Text
private boolean
-
Constructor Summary
ConstructorDescriptionServerCommonNetworkHandler
(MinecraftServer server, ClientConnection connection, ConnectedClientData clientData) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
baseTick()
private boolean
checkTransitionTimeout
(long time) protected ConnectedClientData
createClientData
(SyncedClientOptions syncedOptions) void
void
disconnect
(DisconnectionInfo disconnectionInfo) void
disconnect
(Text reason) void
com.mojang.authlib.GameProfile
int
protected abstract com.mojang.authlib.GameProfile
protected boolean
isHost()
private void
void
void
void
Called when the connection this listener listens to has disconnected.void
onKeepAlive
(KeepAliveC2SPacket packet) void
onPacketException
(Packet packet, Exception exception) void
onPong
(CommonPongC2SPacket packet) void
void
send
(Packet<?> packet, @Nullable PacketCallbacks callbacks) void
sendPacket
(Packet<?> packet) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.network.listener.PacketListener
accepts, addCustomCrashReportInfo, createDisconnectionInfo, fillCrashReport, getPhase, isConnectionOpen
Methods inherited from interface net.minecraft.network.listener.ServerCommonPacketListener
onClientOptions
Methods inherited from interface net.minecraft.network.listener.ServerPacketListener
getSide
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGER
Lnet/minecraft/server/network/ServerCommonNetworkHandler;LOGGER:Lorg/slf4j/Logger;
intermediary field_45014
Lnet/minecraft/class_8609;field_45014:Lorg/slf4j/Logger;
official f
Lath;f:Lorg/slf4j/Logger;
-
KEEP_ALIVE_INTERVAL
public static final int KEEP_ALIVE_INTERVAL- See Also:
- Mappings:
Namespace Name Mixin selector named KEEP_ALIVE_INTERVAL
Lnet/minecraft/server/network/ServerCommonNetworkHandler;KEEP_ALIVE_INTERVAL:I
intermediary field_45011
Lnet/minecraft/class_8609;field_45011:I
official b
Lath;b:I
-
TRANSITION_TIMEOUT
private static final int TRANSITION_TIMEOUT- See Also:
- Mappings:
Namespace Name Mixin selector named TRANSITION_TIMEOUT
Lnet/minecraft/server/network/ServerCommonNetworkHandler;TRANSITION_TIMEOUT:I
intermediary field_51342
Lnet/minecraft/class_8609;field_51342:I
official g
Lath;g:I
-
TIMEOUT_TEXT
- Mappings:
Namespace Name Mixin selector named TIMEOUT_TEXT
Lnet/minecraft/server/network/ServerCommonNetworkHandler;TIMEOUT_TEXT:Lnet/minecraft/text/Text;
intermediary field_45015
Lnet/minecraft/class_8609;field_45015:Lnet/minecraft/class_2561;
official h
Lath;h:Lxv;
-
UNEXPECTED_QUERY_RESPONSE_TEXT
- Mappings:
Namespace Name Mixin selector named UNEXPECTED_QUERY_RESPONSE_TEXT
Lnet/minecraft/server/network/ServerCommonNetworkHandler;UNEXPECTED_QUERY_RESPONSE_TEXT:Lnet/minecraft/text/Text;
intermediary field_48273
Lnet/minecraft/class_8609;field_48273:Lnet/minecraft/class_2561;
official c
Lath;c:Lxv;
-
server
- Mappings:
Namespace Name Mixin selector named server
Lnet/minecraft/server/network/ServerCommonNetworkHandler;server:Lnet/minecraft/server/MinecraftServer;
intermediary field_45012
Lnet/minecraft/class_8609;field_45012:Lnet/minecraft/server/MinecraftServer;
official d
Lath;d:Lnet/minecraft/server/MinecraftServer;
-
connection
- Mappings:
Namespace Name Mixin selector named connection
Lnet/minecraft/server/network/ServerCommonNetworkHandler;connection:Lnet/minecraft/network/ClientConnection;
intermediary field_45013
Lnet/minecraft/class_8609;field_45013:Lnet/minecraft/class_2535;
official e
Lath;e:Lwp;
-
transferred
private final boolean transferred- Mappings:
Namespace Name Mixin selector named transferred
Lnet/minecraft/server/network/ServerCommonNetworkHandler;transferred:Z
intermediary field_48274
Lnet/minecraft/class_8609;field_48274:Z
official i
Lath;i:Z
-
lastKeepAliveTime
private long lastKeepAliveTime- Mappings:
Namespace Name Mixin selector named lastKeepAliveTime
Lnet/minecraft/server/network/ServerCommonNetworkHandler;lastKeepAliveTime:J
intermediary field_45016
Lnet/minecraft/class_8609;field_45016:J
official j
Lath;j:J
-
waitingForKeepAlive
private boolean waitingForKeepAlive- Mappings:
Namespace Name Mixin selector named waitingForKeepAlive
Lnet/minecraft/server/network/ServerCommonNetworkHandler;waitingForKeepAlive:Z
intermediary field_45017
Lnet/minecraft/class_8609;field_45017:Z
official k
Lath;k:Z
-
keepAliveId
private long keepAliveId- Mappings:
Namespace Name Mixin selector named keepAliveId
Lnet/minecraft/server/network/ServerCommonNetworkHandler;keepAliveId:J
intermediary field_45018
Lnet/minecraft/class_8609;field_45018:J
official l
Lath;l:J
-
transitionStartTime
private long transitionStartTime- Mappings:
Namespace Name Mixin selector named transitionStartTime
Lnet/minecraft/server/network/ServerCommonNetworkHandler;transitionStartTime:J
intermediary field_51343
Lnet/minecraft/class_8609;field_51343:J
official m
Lath;m:J
-
transitioning
private boolean transitioning- Mappings:
Namespace Name Mixin selector named transitioning
Lnet/minecraft/server/network/ServerCommonNetworkHandler;transitioning:Z
intermediary field_51344
Lnet/minecraft/class_8609;field_51344:Z
official n
Lath;n:Z
-
latency
private int latency- Mappings:
Namespace Name Mixin selector named latency
Lnet/minecraft/server/network/ServerCommonNetworkHandler;latency:I
intermediary field_45019
Lnet/minecraft/class_8609;field_45019:I
official o
Lath;o:I
-
flushDisabled
private volatile boolean flushDisabled- Mappings:
Namespace Name Mixin selector named flushDisabled
Lnet/minecraft/server/network/ServerCommonNetworkHandler;flushDisabled:Z
intermediary field_45715
Lnet/minecraft/class_8609;field_45715:Z
official p
Lath;p:Z
-
-
Constructor Details
-
ServerCommonNetworkHandler
public ServerCommonNetworkHandler(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;)V
intermediary <init>
Lnet/minecraft/class_8609;<init>(Lnet/minecraft/server/MinecraftServer;Lnet/minecraft/class_2535;Lnet/minecraft/class_8792;)V
official <init>
Lath;<init>(Lnet/minecraft/server/MinecraftServer;Lwp;Lasx;)V
-
-
Method Details
-
markTransitionTime
private void markTransitionTime()- Mappings:
Namespace Name Mixin selector named markTransitionTime
Lnet/minecraft/server/network/ServerCommonNetworkHandler;markTransitionTime()V
intermediary method_59512
Lnet/minecraft/class_8609;method_59512()V
official l
Lath;l()V
-
onDisconnected
Called when the connection this listener listens to has disconnected. Can be used to display the disconnection reason.- Specified by:
onDisconnected
in interfacePacketListener
- Mappings:
Namespace Name Mixin selector named onDisconnected
Lnet/minecraft/network/listener/PacketListener;onDisconnected(Lnet/minecraft/network/DisconnectionInfo;)V
intermediary method_10839
Lnet/minecraft/class_2547;method_10839(Lnet/minecraft/class_9812;)V
official a
Lxb;a(Lwr;)V
-
onPacketException
- Specified by:
onPacketException
in interfacePacketListener
- Specified by:
onPacketException
in interfaceServerCrashSafePacketListener
- Throws:
CrashException
- Mappings:
Namespace Name Mixin selector named onPacketException
Lnet/minecraft/network/listener/PacketListener;onPacketException(Lnet/minecraft/network/packet/Packet;Ljava/lang/Exception;)V
intermediary method_59807
Lnet/minecraft/class_2547;method_59807(Lnet/minecraft/class_2596;Ljava/lang/Exception;)V
official a
Lxb;a(Laac;Ljava/lang/Exception;)V
-
onKeepAlive
- Specified by:
onKeepAlive
in interfaceServerCommonPacketListener
- Mappings:
Namespace Name Mixin selector named onKeepAlive
Lnet/minecraft/network/listener/ServerCommonPacketListener;onKeepAlive(Lnet/minecraft/network/packet/c2s/common/KeepAliveC2SPacket;)V
intermediary method_52393
Lnet/minecraft/class_8706;method_52393(Lnet/minecraft/class_2827;)V
official a
Laav;a(Laay;)V
-
onPong
- Specified by:
onPong
in interfaceServerCommonPacketListener
- Mappings:
Namespace Name Mixin selector named onPong
Lnet/minecraft/network/listener/ServerCommonPacketListener;onPong(Lnet/minecraft/network/packet/c2s/common/CommonPongC2SPacket;)V
intermediary method_52394
Lnet/minecraft/class_8706;method_52394(Lnet/minecraft/class_6374;)V
official a
Laav;a(Laaz;)V
-
onCustomPayload
- Specified by:
onCustomPayload
in interfaceServerCommonPacketListener
- Mappings:
Namespace Name Mixin selector named onCustomPayload
Lnet/minecraft/network/listener/ServerCommonPacketListener;onCustomPayload(Lnet/minecraft/network/packet/c2s/common/CustomPayloadC2SPacket;)V
intermediary method_52392
Lnet/minecraft/class_8706;method_52392(Lnet/minecraft/class_2817;)V
official a
Laav;a(Laax;)V
-
onResourcePackStatus
- Specified by:
onResourcePackStatus
in interfaceServerCommonPacketListener
- Mappings:
Namespace Name Mixin selector named onResourcePackStatus
Lnet/minecraft/network/listener/ServerCommonPacketListener;onResourcePackStatus(Lnet/minecraft/network/packet/c2s/common/ResourcePackStatusC2SPacket;)V
intermediary method_52395
Lnet/minecraft/class_8706;method_52395(Lnet/minecraft/class_2856;)V
official a
Laav;a(Laba;)V
-
onCookieResponse
- Specified by:
onCookieResponse
in interfaceServerCookieResponsePacketListener
- Mappings:
Namespace Name Mixin selector named onCookieResponse
Lnet/minecraft/network/listener/ServerCookieResponsePacketListener;onCookieResponse(Lnet/minecraft/network/packet/c2s/common/CookieResponseC2SPacket;)V
intermediary method_55851
Lnet/minecraft/class_9090;method_55851(Lnet/minecraft/class_9091;)V
official a
Laco;a(Lacp;)V
-
baseTick
protected void baseTick()- Mappings:
Namespace Name Mixin selector named baseTick
Lnet/minecraft/server/network/ServerCommonNetworkHandler;baseTick()V
intermediary method_52400
Lnet/minecraft/class_8609;method_52400()V
official e
Lath;e()V
-
checkTransitionTimeout
private boolean checkTransitionTimeout(long time) - Mappings:
Namespace Name Mixin selector named checkTransitionTimeout
Lnet/minecraft/server/network/ServerCommonNetworkHandler;checkTransitionTimeout(J)Z
intermediary method_59511
Lnet/minecraft/class_8609;method_59511(J)Z
official a
Lath;a(J)Z
-
disableFlush
public void disableFlush()- Mappings:
Namespace Name Mixin selector named disableFlush
Lnet/minecraft/server/network/ServerCommonNetworkHandler;disableFlush()V
intermediary method_53046
Lnet/minecraft/class_8609;method_53046()V
official f
Lath;f()V
-
enableFlush
public void enableFlush()- Mappings:
Namespace Name Mixin selector named enableFlush
Lnet/minecraft/server/network/ServerCommonNetworkHandler;enableFlush()V
intermediary method_53047
Lnet/minecraft/class_8609;method_53047()V
official g
Lath;g()V
-
sendPacket
- Mappings:
Namespace Name Mixin selector named sendPacket
Lnet/minecraft/server/network/ServerCommonNetworkHandler;sendPacket(Lnet/minecraft/network/packet/Packet;)V
intermediary method_14364
Lnet/minecraft/class_8609;method_14364(Lnet/minecraft/class_2596;)V
official b
Lath;b(Laac;)V
-
send
- Mappings:
Namespace Name Mixin selector named send
Lnet/minecraft/server/network/ServerCommonNetworkHandler;send(Lnet/minecraft/network/packet/Packet;Lnet/minecraft/network/PacketCallbacks;)V
intermediary method_52391
Lnet/minecraft/class_8609;method_52391(Lnet/minecraft/class_2596;Lnet/minecraft/class_7648;)V
official a
Lath;a(Laac;Lxc;)V
-
disconnect
- Mappings:
Namespace Name Mixin selector named disconnect
Lnet/minecraft/server/network/ServerCommonNetworkHandler;disconnect(Lnet/minecraft/text/Text;)V
intermediary method_52396
Lnet/minecraft/class_8609;method_52396(Lnet/minecraft/class_2561;)V
official a
Lath;a(Lxv;)V
-
disconnect
- Mappings:
Namespace Name Mixin selector named disconnect
Lnet/minecraft/server/network/ServerCommonNetworkHandler;disconnect(Lnet/minecraft/network/DisconnectionInfo;)V
intermediary method_60673
Lnet/minecraft/class_8609;method_60673(Lnet/minecraft/class_9812;)V
official b
Lath;b(Lwr;)V
-
isHost
protected boolean isHost()- Mappings:
Namespace Name Mixin selector named isHost
Lnet/minecraft/server/network/ServerCommonNetworkHandler;isHost()Z
intermediary method_52402
Lnet/minecraft/class_8609;method_52402()Z
official h
Lath;h()Z
-
getProfile
protected abstract com.mojang.authlib.GameProfile getProfile()- Mappings:
Namespace Name Mixin selector named getProfile
Lnet/minecraft/server/network/ServerCommonNetworkHandler;getProfile()Lcom/mojang/authlib/GameProfile;
intermediary method_52403
Lnet/minecraft/class_8609;method_52403()Lcom/mojang/authlib/GameProfile;
official i
Lath;i()Lcom/mojang/authlib/GameProfile;
-
getDebugProfile
public com.mojang.authlib.GameProfile getDebugProfile()- Mappings:
Namespace Name Mixin selector named getDebugProfile
Lnet/minecraft/server/network/ServerCommonNetworkHandler;getDebugProfile()Lcom/mojang/authlib/GameProfile;
intermediary method_52404
Lnet/minecraft/class_8609;method_52404()Lcom/mojang/authlib/GameProfile;
official j
Lath;j()Lcom/mojang/authlib/GameProfile;
-
getLatency
public int getLatency()- Mappings:
Namespace Name Mixin selector named getLatency
Lnet/minecraft/server/network/ServerCommonNetworkHandler;getLatency()I
intermediary method_52405
Lnet/minecraft/class_8609;method_52405()I
official k
Lath;k()I
-
createClientData
- Mappings:
Namespace Name Mixin selector named createClientData
Lnet/minecraft/server/network/ServerCommonNetworkHandler;createClientData(Lnet/minecraft/network/packet/c2s/common/SyncedClientOptions;)Lnet/minecraft/server/network/ConnectedClientData;
intermediary method_53825
Lnet/minecraft/class_8609;method_53825(Lnet/minecraft/class_8791;)Lnet/minecraft/class_8792;
official a
Lath;a(Lars;)Lasx;
-