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 arj
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ClientConnectionprivate booleanstatic final intprivate longprivate longprivate intprivate static final Loggerprotected final MinecraftServerprivate static final Textprivate final boolean(package private) static final Textprivate boolean -
Constructor Summary
ConstructorsConstructorDescriptionServerCommonNetworkHandler(MinecraftServer server, ClientConnection connection, ConnectedClientData clientData) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbaseTick()protected ConnectedClientDatacreateClientData(SyncedClientOptions syncedOptions) voidvoiddisconnect(Text reason) voidcom.mojang.authlib.GameProfileintprotected abstract com.mojang.authlib.GameProfileprotected booleanisHost()voidvoidvoidonDisconnected(Text reason) Called when the connection this listener listens to has disconnected.voidonKeepAlive(KeepAliveC2SPacket packet) voidonPong(CommonPongC2SPacket packet) voidvoidsend(Packet<?> packet, @Nullable PacketCallbacks callbacks) 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, fillCrashReport, getPhase, isConnectionOpenMethods inherited from interface net.minecraft.network.listener.ServerCommonPacketListener
onClientOptionsMethods inherited from interface net.minecraft.network.listener.ServerCrashSafePacketListener
shouldCrashOnExceptionMethods 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 eLarj;e: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 aLarj;a: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 fLarj;f:Lwx;
-
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 bLarj;b:Lwx;
-
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 cLarj;c: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 dLarj;d:Lvv;
-
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 gLarj;g: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 hLarj;h: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 iLarj;i: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 jLarj;j:J
-
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 kLarj;k: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 lLarj;l: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>Larj;<init>(Lnet/minecraft/server/MinecraftServer;Lvv;Larb;)V
-
-
Method Details
-
onDisconnected
Called when the connection this listener listens to has disconnected. Can be used to display the disconnection reason.- Specified by:
onDisconnectedin interfacePacketListener- Parameters:
reason- the reason of disconnection; may be a generic message- Mappings:
Namespace Name Mixin selector named onDisconnectedLnet/minecraft/network/listener/PacketListener;onDisconnected(Lnet/minecraft/text/Text;)Vintermediary method_10839Lnet/minecraft/class_2547;method_10839(Lnet/minecraft/class_2561;)Vofficial aLwd;a(Lwx;)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 aLzv;a(Lzy;)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 aLzv;a(Lzz;)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 aLzv;a(Lzx;)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 aLzv;a(Laaa;)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 aLabn;a(Labo;)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 fLarj;f()V
-
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 gLarj;g()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 hLarj;h()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 bLarj;b(Lze;)V
-
send
- Mappings:
Namespace Name Mixin selector named sendLnet/minecraft/server/network/ServerCommonNetworkHandler;send(Lnet/minecraft/network/packet/Packet;Lnet/minecraft/network/PacketCallbacks;)Vintermediary method_52391Lnet/minecraft/class_8609;method_52391(Lnet/minecraft/class_2596;Lnet/minecraft/class_7648;)Vofficial aLarj;a(Lze;Lwe;)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 bLarj;b(Lwx;)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 iLarj;i()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 jLarj;j()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 kLarj;k()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 lLarj;l()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 aLarj;a(Laqb;)Larb;
-