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/ServerCommonNetworkHandlerintermediary net/minecraft/class_8609official axt
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ClientConnectionprivate booleanstatic final intprivate longprivate longprivate intprivate static final Loggerprotected final MinecraftServerprivate static final Textprivate final booleanprivate static final intprivate booleanprivate long(package private) static final Textprivate boolean -
Constructor Summary
ConstructorsConstructorDescriptionServerCommonNetworkHandler(MinecraftServer server, ClientConnection connection, ConnectedClientData clientData) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbaseTick()private booleancheckTransitionTimeout(long time) protected ConnectedClientDatacreateClientData(SyncedClientOptions syncedOptions) voidvoiddisconnect(DisconnectionInfo disconnectionInfo) voiddisconnect(Text reason) voidcom.mojang.authlib.GameProfileintprotected abstract com.mojang.authlib.GameProfileprotected booleanisHost()private voidvoidvoidvoidvoidCalled when the connection this listener listens to has disconnected.voidonKeepAlive(KeepAliveC2SPacket packet) voidonPacketException(Packet packet, Exception exception) voidonPong(CommonPongC2SPacket packet) voidvoidsend(Packet<?> packet, @Nullable ChannelFutureListener channelFutureListener) voidsendPacket(Packet<?> packet) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.network.listener.PacketListener
accepts, addCustomCrashReportInfo, createDisconnectionInfo, fillCrashReport, getPhase, isConnectionOpenMethods inherited from interface net.minecraft.network.listener.ServerCommonPacketListener
onClientOptionsMethods inherited from interface net.minecraft.network.listener.ServerPacketListener
getSide
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGERLnet/minecraft/server/network/ServerCommonNetworkHandler;LOGGER:Lorg/slf4j/Logger;intermediary field_45014Lnet/minecraft/class_8609;field_45014:Lorg/slf4j/Logger;official fLaxt;f:Lorg/slf4j/Logger;
-
KEEP_ALIVE_INTERVAL
public static final int KEEP_ALIVE_INTERVAL- See Also:
- Mappings:
Namespace Name Mixin selector named KEEP_ALIVE_INTERVALLnet/minecraft/server/network/ServerCommonNetworkHandler;KEEP_ALIVE_INTERVAL:Iintermediary field_45011Lnet/minecraft/class_8609;field_45011:Iofficial bLaxt;b:I
-
TRANSITION_TIMEOUT
private static final int TRANSITION_TIMEOUT- See Also:
- Mappings:
Namespace Name Mixin selector named TRANSITION_TIMEOUTLnet/minecraft/server/network/ServerCommonNetworkHandler;TRANSITION_TIMEOUT:Iintermediary field_51342Lnet/minecraft/class_8609;field_51342:Iofficial gLaxt;g:I
-
TIMEOUT_TEXT
- Mappings:
Namespace Name Mixin selector named TIMEOUT_TEXTLnet/minecraft/server/network/ServerCommonNetworkHandler;TIMEOUT_TEXT:Lnet/minecraft/text/Text;intermediary field_45015Lnet/minecraft/class_8609;field_45015:Lnet/minecraft/class_2561;official hLaxt;h:Lxx;
-
UNEXPECTED_QUERY_RESPONSE_TEXT
- Mappings:
Namespace Name Mixin selector named UNEXPECTED_QUERY_RESPONSE_TEXTLnet/minecraft/server/network/ServerCommonNetworkHandler;UNEXPECTED_QUERY_RESPONSE_TEXT:Lnet/minecraft/text/Text;intermediary field_48273Lnet/minecraft/class_8609;field_48273:Lnet/minecraft/class_2561;official cLaxt;c:Lxx;
-
server
- Mappings:
Namespace Name Mixin selector named serverLnet/minecraft/server/network/ServerCommonNetworkHandler;server:Lnet/minecraft/server/MinecraftServer;intermediary field_45012Lnet/minecraft/class_8609;field_45012:Lnet/minecraft/server/MinecraftServer;official dLaxt;d:Lnet/minecraft/server/MinecraftServer;
-
connection
- Mappings:
Namespace Name Mixin selector named connectionLnet/minecraft/server/network/ServerCommonNetworkHandler;connection:Lnet/minecraft/network/ClientConnection;intermediary field_45013Lnet/minecraft/class_8609;field_45013:Lnet/minecraft/class_2535;official eLaxt;e:Lwk;
-
transferred
private final boolean transferred- Mappings:
Namespace Name Mixin selector named transferredLnet/minecraft/server/network/ServerCommonNetworkHandler;transferred:Zintermediary field_48274Lnet/minecraft/class_8609;field_48274:Zofficial iLaxt;i:Z
-
lastKeepAliveTime
private long lastKeepAliveTime- Mappings:
Namespace Name Mixin selector named lastKeepAliveTimeLnet/minecraft/server/network/ServerCommonNetworkHandler;lastKeepAliveTime:Jintermediary field_45016Lnet/minecraft/class_8609;field_45016:Jofficial jLaxt;j:J
-
waitingForKeepAlive
private boolean waitingForKeepAlive- Mappings:
Namespace Name Mixin selector named waitingForKeepAliveLnet/minecraft/server/network/ServerCommonNetworkHandler;waitingForKeepAlive:Zintermediary field_45017Lnet/minecraft/class_8609;field_45017:Zofficial kLaxt;k:Z
-
keepAliveId
private long keepAliveId- Mappings:
Namespace Name Mixin selector named keepAliveIdLnet/minecraft/server/network/ServerCommonNetworkHandler;keepAliveId:Jintermediary field_45018Lnet/minecraft/class_8609;field_45018:Jofficial lLaxt;l:J
-
transitionStartTime
private long transitionStartTime- Mappings:
Namespace Name Mixin selector named transitionStartTimeLnet/minecraft/server/network/ServerCommonNetworkHandler;transitionStartTime:Jintermediary field_51343Lnet/minecraft/class_8609;field_51343:Jofficial mLaxt;m:J
-
transitioning
private boolean transitioning- Mappings:
Namespace Name Mixin selector named transitioningLnet/minecraft/server/network/ServerCommonNetworkHandler;transitioning:Zintermediary field_51344Lnet/minecraft/class_8609;field_51344:Zofficial nLaxt;n:Z
-
latency
private int latency- Mappings:
Namespace Name Mixin selector named latencyLnet/minecraft/server/network/ServerCommonNetworkHandler;latency:Iintermediary field_45019Lnet/minecraft/class_8609;field_45019:Iofficial oLaxt;o:I
-
flushDisabled
private volatile boolean flushDisabled- Mappings:
Namespace Name Mixin selector named flushDisabledLnet/minecraft/server/network/ServerCommonNetworkHandler;flushDisabled:Zintermediary field_45715Lnet/minecraft/class_8609;field_45715:Zofficial pLaxt;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;)Vintermediary <init>Lnet/minecraft/class_8609;<init>(Lnet/minecraft/server/MinecraftServer;Lnet/minecraft/class_2535;Lnet/minecraft/class_8792;)Vofficial <init>Laxt;<init>(Lnet/minecraft/server/MinecraftServer;Lwk;Laxj;)V
-
-
Method Details
-
markTransitionTime
private void markTransitionTime()- Mappings:
Namespace Name Mixin selector named markTransitionTimeLnet/minecraft/server/network/ServerCommonNetworkHandler;markTransitionTime()Vintermediary method_59512Lnet/minecraft/class_8609;method_59512()Vofficial lLaxt;l()V
-
onDisconnected
Called when the connection this listener listens to has disconnected. Can be used to display the disconnection reason.- Specified by:
onDisconnectedin interfacePacketListener- Mappings:
Namespace Name Mixin selector named onDisconnectedLnet/minecraft/network/listener/PacketListener;onDisconnected(Lnet/minecraft/network/DisconnectionInfo;)Vintermediary method_10839Lnet/minecraft/class_2547;method_10839(Lnet/minecraft/class_9812;)Vofficial aLxa;a(Lwm;)V
-
onPacketException
- Specified by:
onPacketExceptionin interfacePacketListener- Specified by:
onPacketExceptionin interfaceServerCrashSafePacketListener- Throws:
CrashException- Mappings:
Namespace Name Mixin selector named onPacketExceptionLnet/minecraft/network/listener/PacketListener;onPacketException(Lnet/minecraft/network/packet/Packet;Ljava/lang/Exception;)Vintermediary method_59807Lnet/minecraft/class_2547;method_59807(Lnet/minecraft/class_2596;Ljava/lang/Exception;)Vofficial aLxa;a(Laao;Ljava/lang/Exception;)V
-
onKeepAlive
- Specified by:
onKeepAlivein interfaceServerCommonPacketListener- Mappings:
Namespace Name Mixin selector named onKeepAliveLnet/minecraft/network/listener/ServerCommonPacketListener;onKeepAlive(Lnet/minecraft/network/packet/c2s/common/KeepAliveC2SPacket;)Vintermediary method_52393Lnet/minecraft/class_8706;method_52393(Lnet/minecraft/class_2827;)Vofficial aLabl;a(Labp;)V
-
onPong
- Specified by:
onPongin interfaceServerCommonPacketListener- Mappings:
Namespace Name Mixin selector named onPongLnet/minecraft/network/listener/ServerCommonPacketListener;onPong(Lnet/minecraft/network/packet/c2s/common/CommonPongC2SPacket;)Vintermediary method_52394Lnet/minecraft/class_8706;method_52394(Lnet/minecraft/class_6374;)Vofficial aLabl;a(Labq;)V
-
onCustomPayload
- Specified by:
onCustomPayloadin interfaceServerCommonPacketListener- Mappings:
Namespace Name Mixin selector named onCustomPayloadLnet/minecraft/network/listener/ServerCommonPacketListener;onCustomPayload(Lnet/minecraft/network/packet/c2s/common/CustomPayloadC2SPacket;)Vintermediary method_52392Lnet/minecraft/class_8706;method_52392(Lnet/minecraft/class_2817;)Vofficial aLabl;a(Labo;)V
-
onCustomClickAction
- Specified by:
onCustomClickActionin interfaceServerCommonPacketListener- Mappings:
Namespace Name Mixin selector named onCustomClickActionLnet/minecraft/network/listener/ServerCommonPacketListener;onCustomClickAction(Lnet/minecraft/network/packet/c2s/common/CustomClickActionC2SPacket;)Vintermediary method_71953Lnet/minecraft/class_8706;method_71953(Lnet/minecraft/class_11411;)Vofficial aLabl;a(Labn;)V
-
onResourcePackStatus
- Specified by:
onResourcePackStatusin interfaceServerCommonPacketListener- Mappings:
Namespace Name Mixin selector named onResourcePackStatusLnet/minecraft/network/listener/ServerCommonPacketListener;onResourcePackStatus(Lnet/minecraft/network/packet/c2s/common/ResourcePackStatusC2SPacket;)Vintermediary method_52395Lnet/minecraft/class_8706;method_52395(Lnet/minecraft/class_2856;)Vofficial aLabl;a(Labr;)V
-
onCookieResponse
- Specified by:
onCookieResponsein interfaceServerCookieResponsePacketListener- Mappings:
Namespace Name Mixin selector named onCookieResponseLnet/minecraft/network/listener/ServerCookieResponsePacketListener;onCookieResponse(Lnet/minecraft/network/packet/c2s/common/CookieResponseC2SPacket;)Vintermediary method_55851Lnet/minecraft/class_9090;method_55851(Lnet/minecraft/class_9091;)Vofficial aLadh;a(Ladi;)V
-
baseTick
protected void baseTick()- Mappings:
Namespace Name Mixin selector named baseTickLnet/minecraft/server/network/ServerCommonNetworkHandler;baseTick()Vintermediary method_52400Lnet/minecraft/class_8609;method_52400()Vofficial eLaxt;e()V
-
checkTransitionTimeout
private boolean checkTransitionTimeout(long time) - Mappings:
Namespace Name Mixin selector named checkTransitionTimeoutLnet/minecraft/server/network/ServerCommonNetworkHandler;checkTransitionTimeout(J)Zintermediary method_59511Lnet/minecraft/class_8609;method_59511(J)Zofficial aLaxt;a(J)Z
-
disableFlush
public void disableFlush()- Mappings:
Namespace Name Mixin selector named disableFlushLnet/minecraft/server/network/ServerCommonNetworkHandler;disableFlush()Vintermediary method_53046Lnet/minecraft/class_8609;method_53046()Vofficial fLaxt;f()V
-
enableFlush
public void enableFlush()- Mappings:
Namespace Name Mixin selector named enableFlushLnet/minecraft/server/network/ServerCommonNetworkHandler;enableFlush()Vintermediary method_53047Lnet/minecraft/class_8609;method_53047()Vofficial gLaxt;g()V
-
sendPacket
- Mappings:
Namespace Name Mixin selector named sendPacketLnet/minecraft/server/network/ServerCommonNetworkHandler;sendPacket(Lnet/minecraft/network/packet/Packet;)Vintermediary method_14364Lnet/minecraft/class_8609;method_14364(Lnet/minecraft/class_2596;)Vofficial bLaxt;b(Laao;)V
-
send
- Mappings:
Namespace Name Mixin selector named sendLnet/minecraft/server/network/ServerCommonNetworkHandler;send(Lnet/minecraft/network/packet/Packet;Lio/netty/channel/ChannelFutureListener;)Vintermediary method_52391Lnet/minecraft/class_8609;method_52391(Lnet/minecraft/class_2596;Lio/netty/channel/ChannelFutureListener;)Vofficial aLaxt;a(Laao;Lio/netty/channel/ChannelFutureListener;)V
-
disconnect
- Mappings:
Namespace Name Mixin selector named disconnectLnet/minecraft/server/network/ServerCommonNetworkHandler;disconnect(Lnet/minecraft/text/Text;)Vintermediary method_52396Lnet/minecraft/class_8609;method_52396(Lnet/minecraft/class_2561;)Vofficial aLaxt;a(Lxx;)V
-
disconnect
- Mappings:
Namespace Name Mixin selector named disconnectLnet/minecraft/server/network/ServerCommonNetworkHandler;disconnect(Lnet/minecraft/network/DisconnectionInfo;)Vintermediary method_60673Lnet/minecraft/class_8609;method_60673(Lnet/minecraft/class_9812;)Vofficial bLaxt;b(Lwm;)V
-
isHost
protected boolean isHost()- Mappings:
Namespace Name Mixin selector named isHostLnet/minecraft/server/network/ServerCommonNetworkHandler;isHost()Zintermediary method_52402Lnet/minecraft/class_8609;method_52402()Zofficial hLaxt;h()Z
-
getProfile
protected abstract com.mojang.authlib.GameProfile getProfile()- Mappings:
Namespace Name Mixin selector named getProfileLnet/minecraft/server/network/ServerCommonNetworkHandler;getProfile()Lcom/mojang/authlib/GameProfile;intermediary method_52403Lnet/minecraft/class_8609;method_52403()Lcom/mojang/authlib/GameProfile;official iLaxt;i()Lcom/mojang/authlib/GameProfile;
-
getDebugProfile
public com.mojang.authlib.GameProfile getDebugProfile()- Mappings:
Namespace Name Mixin selector named getDebugProfileLnet/minecraft/server/network/ServerCommonNetworkHandler;getDebugProfile()Lcom/mojang/authlib/GameProfile;intermediary method_52404Lnet/minecraft/class_8609;method_52404()Lcom/mojang/authlib/GameProfile;official jLaxt;j()Lcom/mojang/authlib/GameProfile;
-
getLatency
public int getLatency()- Mappings:
Namespace Name Mixin selector named getLatencyLnet/minecraft/server/network/ServerCommonNetworkHandler;getLatency()Iintermediary method_52405Lnet/minecraft/class_8609;method_52405()Iofficial kLaxt;k()I
-
createClientData
- Mappings:
Namespace Name Mixin selector named createClientDataLnet/minecraft/server/network/ServerCommonNetworkHandler;createClientData(Lnet/minecraft/network/packet/c2s/common/SyncedClientOptions;)Lnet/minecraft/server/network/ConnectedClientData;intermediary method_53825Lnet/minecraft/class_8609;method_53825(Lnet/minecraft/class_8791;)Lnet/minecraft/class_8792;official aLaxt;a(Lawe;)Laxj;
-