Class ServerCommonNetworkHandler

java.lang.Object
net.minecraft.server.network.ServerCommonNetworkHandler
All Implemented Interfaces:
PacketListener, ServerCommonPacketListener, ServerCrashSafePacketListener, ServerPacketListener
Direct Known Subclasses:
ServerConfigurationNetworkHandler, ServerPlayNetworkHandler

public abstract class ServerCommonNetworkHandler extends Object implements ServerCommonPacketListener
Mappings:
Namespace Name
official alm
intermediary net/minecraft/class_8609
named net/minecraft/server/network/ServerCommonNetworkHandler
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official d Lalm;d:Lorg/slf4j/Logger;
      intermediary field_45014 Lnet/minecraft/class_8609;field_45014:Lorg/slf4j/Logger;
      named LOGGER Lnet/minecraft/server/network/ServerCommonNetworkHandler;LOGGER:Lorg/slf4j/Logger;
    • KEEP_ALIVE_INTERVAL

      public static final int KEEP_ALIVE_INTERVAL
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lalm;a:I
      intermediary field_45011 Lnet/minecraft/class_8609;field_45011:I
      named KEEP_ALIVE_INTERVAL Lnet/minecraft/server/network/ServerCommonNetworkHandler;KEEP_ALIVE_INTERVAL:I
    • TIMEOUT_TEXT

      private static final Text TIMEOUT_TEXT
      Mappings:
      Namespace Name Mixin selector
      official e Lalm;e:Ltl;
      intermediary field_45015 Lnet/minecraft/class_8609;field_45015:Lnet/minecraft/class_2561;
      named TIMEOUT_TEXT Lnet/minecraft/server/network/ServerCommonNetworkHandler;TIMEOUT_TEXT:Lnet/minecraft/text/Text;
    • server

      protected final MinecraftServer server
      Mappings:
      Namespace Name Mixin selector
      official b Lalm;b:Lnet/minecraft/server/MinecraftServer;
      intermediary field_45012 Lnet/minecraft/class_8609;field_45012:Lnet/minecraft/server/MinecraftServer;
      named server Lnet/minecraft/server/network/ServerCommonNetworkHandler;server:Lnet/minecraft/server/MinecraftServer;
    • connection

      protected final ClientConnection connection
      Mappings:
      Namespace Name Mixin selector
      official c Lalm;c:Lsm;
      intermediary field_45013 Lnet/minecraft/class_8609;field_45013:Lnet/minecraft/class_2535;
      named connection Lnet/minecraft/server/network/ServerCommonNetworkHandler;connection:Lnet/minecraft/network/ClientConnection;
    • lastKeepAliveTime

      private long lastKeepAliveTime
      Mappings:
      Namespace Name Mixin selector
      official f Lalm;f:J
      intermediary field_45016 Lnet/minecraft/class_8609;field_45016:J
      named lastKeepAliveTime Lnet/minecraft/server/network/ServerCommonNetworkHandler;lastKeepAliveTime:J
    • waitingForKeepAlive

      private boolean waitingForKeepAlive
      Mappings:
      Namespace Name Mixin selector
      official g Lalm;g:Z
      intermediary field_45017 Lnet/minecraft/class_8609;field_45017:Z
      named waitingForKeepAlive Lnet/minecraft/server/network/ServerCommonNetworkHandler;waitingForKeepAlive:Z
    • keepAliveId

      private long keepAliveId
      Mappings:
      Namespace Name Mixin selector
      official h Lalm;h:J
      intermediary field_45018 Lnet/minecraft/class_8609;field_45018:J
      named keepAliveId Lnet/minecraft/server/network/ServerCommonNetworkHandler;keepAliveId:J
    • latency

      private int latency
      Mappings:
      Namespace Name Mixin selector
      official i Lalm;i:I
      intermediary field_45019 Lnet/minecraft/class_8609;field_45019:I
      named latency Lnet/minecraft/server/network/ServerCommonNetworkHandler;latency:I
    • flushDisabled

      private volatile boolean flushDisabled
      Mappings:
      Namespace Name Mixin selector
      official j Lalm;j:Z
      intermediary field_45715 Lnet/minecraft/class_8609;field_45715:Z
      named flushDisabled Lnet/minecraft/server/network/ServerCommonNetworkHandler;flushDisabled:Z
  • Constructor Details

    • ServerCommonNetworkHandler

      public ServerCommonNetworkHandler(MinecraftServer server, ClientConnection connection, ConnectedClientData clientData)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lalm;<init>(Lnet/minecraft/server/MinecraftServer;Lsm;Lalf;)V
      intermediary <init> Lnet/minecraft/class_8609;<init>(Lnet/minecraft/server/MinecraftServer;Lnet/minecraft/class_2535;Lnet/minecraft/class_8792;)V
      named <init> Lnet/minecraft/server/network/ServerCommonNetworkHandler;<init>(Lnet/minecraft/server/MinecraftServer;Lnet/minecraft/network/ClientConnection;Lnet/minecraft/server/network/ConnectedClientData;)V
  • Method Details

    • onDisconnected

      public void onDisconnected(Text reason)
      Called when the connection this listener listens to has disconnected. Can be used to display the disconnection reason.
      Specified by:
      onDisconnected in interface PacketListener
      Parameters:
      reason - the reason of disconnection; may be a generic message
      Mappings:
      Namespace Name Mixin selector
      official a Lsu;a(Ltl;)V
      intermediary method_10839 Lnet/minecraft/class_2547;method_10839(Lnet/minecraft/class_2561;)V
      named onDisconnected Lnet/minecraft/network/listener/PacketListener;onDisconnected(Lnet/minecraft/text/Text;)V
    • onKeepAlive

      public void onKeepAlive(KeepAliveC2SPacket packet)
      Specified by:
      onKeepAlive in interface ServerCommonPacketListener
      Mappings:
      Namespace Name Mixin selector
      official a Lvn;a(Lvq;)V
      intermediary method_52393 Lnet/minecraft/class_8706;method_52393(Lnet/minecraft/class_2827;)V
      named onKeepAlive Lnet/minecraft/network/listener/ServerCommonPacketListener;onKeepAlive(Lnet/minecraft/network/packet/c2s/common/KeepAliveC2SPacket;)V
    • onPong

      public void onPong(CommonPongC2SPacket packet)
      Specified by:
      onPong in interface ServerCommonPacketListener
      Mappings:
      Namespace Name Mixin selector
      official a Lvn;a(Lvr;)V
      intermediary method_52394 Lnet/minecraft/class_8706;method_52394(Lnet/minecraft/class_6374;)V
      named onPong Lnet/minecraft/network/listener/ServerCommonPacketListener;onPong(Lnet/minecraft/network/packet/c2s/common/CommonPongC2SPacket;)V
    • onCustomPayload

      public void onCustomPayload(CustomPayloadC2SPacket packet)
      Specified by:
      onCustomPayload in interface ServerCommonPacketListener
      Mappings:
      Namespace Name Mixin selector
      official a Lvn;a(Lvp;)V
      intermediary method_52392 Lnet/minecraft/class_8706;method_52392(Lnet/minecraft/class_2817;)V
      named onCustomPayload Lnet/minecraft/network/listener/ServerCommonPacketListener;onCustomPayload(Lnet/minecraft/network/packet/c2s/common/CustomPayloadC2SPacket;)V
    • onResourcePackStatus

      public void onResourcePackStatus(ResourcePackStatusC2SPacket packet)
      Specified by:
      onResourcePackStatus in interface ServerCommonPacketListener
      Mappings:
      Namespace Name Mixin selector
      official a Lvn;a(Lvs;)V
      intermediary method_52395 Lnet/minecraft/class_8706;method_52395(Lnet/minecraft/class_2856;)V
      named onResourcePackStatus Lnet/minecraft/network/listener/ServerCommonPacketListener;onResourcePackStatus(Lnet/minecraft/network/packet/c2s/common/ResourcePackStatusC2SPacket;)V
    • baseTick

      protected void baseTick()
      Mappings:
      Namespace Name Mixin selector
      official f Lalm;f()V
      intermediary method_52400 Lnet/minecraft/class_8609;method_52400()V
      named baseTick Lnet/minecraft/server/network/ServerCommonNetworkHandler;baseTick()V
    • disableFlush

      public void disableFlush()
      Mappings:
      Namespace Name Mixin selector
      official g Lalm;g()V
      intermediary method_53046 Lnet/minecraft/class_8609;method_53046()V
      named disableFlush Lnet/minecraft/server/network/ServerCommonNetworkHandler;disableFlush()V
    • enableFlush

      public void enableFlush()
      Mappings:
      Namespace Name Mixin selector
      official h Lalm;h()V
      intermediary method_53047 Lnet/minecraft/class_8609;method_53047()V
      named enableFlush Lnet/minecraft/server/network/ServerCommonNetworkHandler;enableFlush()V
    • sendPacket

      public void sendPacket(Packet<?> packet)
      Mappings:
      Namespace Name Mixin selector
      official b Lalm;b(Lvd;)V
      intermediary method_14364 Lnet/minecraft/class_8609;method_14364(Lnet/minecraft/class_2596;)V
      named sendPacket Lnet/minecraft/server/network/ServerCommonNetworkHandler;sendPacket(Lnet/minecraft/network/packet/Packet;)V
    • send

      public void send(Packet<?> packet, @Nullable @Nullable PacketCallbacks callbacks)
      Mappings:
      Namespace Name Mixin selector
      official a Lalm;a(Lvd;Lsv;)V
      intermediary method_52391 Lnet/minecraft/class_8609;method_52391(Lnet/minecraft/class_2596;Lnet/minecraft/class_7648;)V
      named send Lnet/minecraft/server/network/ServerCommonNetworkHandler;send(Lnet/minecraft/network/packet/Packet;Lnet/minecraft/network/PacketCallbacks;)V
    • disconnect

      public void disconnect(Text reason)
      Mappings:
      Namespace Name Mixin selector
      official b Lalm;b(Ltl;)V
      intermediary method_52396 Lnet/minecraft/class_8609;method_52396(Lnet/minecraft/class_2561;)V
      named disconnect Lnet/minecraft/server/network/ServerCommonNetworkHandler;disconnect(Lnet/minecraft/text/Text;)V
    • isHost

      protected boolean isHost()
      Mappings:
      Namespace Name Mixin selector
      official i Lalm;i()Z
      intermediary method_52402 Lnet/minecraft/class_8609;method_52402()Z
      named isHost Lnet/minecraft/server/network/ServerCommonNetworkHandler;isHost()Z
    • getProfile

      protected abstract com.mojang.authlib.GameProfile getProfile()
      Mappings:
      Namespace Name Mixin selector
      official j Lalm;j()Lcom/mojang/authlib/GameProfile;
      intermediary method_52403 Lnet/minecraft/class_8609;method_52403()Lcom/mojang/authlib/GameProfile;
      named getProfile Lnet/minecraft/server/network/ServerCommonNetworkHandler;getProfile()Lcom/mojang/authlib/GameProfile;
    • getDebugProfile

      public com.mojang.authlib.GameProfile getDebugProfile()
      Mappings:
      Namespace Name Mixin selector
      official k Lalm;k()Lcom/mojang/authlib/GameProfile;
      intermediary method_52404 Lnet/minecraft/class_8609;method_52404()Lcom/mojang/authlib/GameProfile;
      named getDebugProfile Lnet/minecraft/server/network/ServerCommonNetworkHandler;getDebugProfile()Lcom/mojang/authlib/GameProfile;
    • getLatency

      public int getLatency()
      Mappings:
      Namespace Name Mixin selector
      official l Lalm;l()I
      intermediary method_52405 Lnet/minecraft/class_8609;method_52405()I
      named getLatency Lnet/minecraft/server/network/ServerCommonNetworkHandler;getLatency()I
    • createClientData

      protected ConnectedClientData createClientData(SyncedClientOptions syncedOptions)
      Mappings:
      Namespace Name Mixin selector
      official a Lalm;a(Lakf;)Lalf;
      intermediary method_53825 Lnet/minecraft/class_8609;method_53825(Lnet/minecraft/class_8791;)Lnet/minecraft/class_8792;
      named createClientData Lnet/minecraft/server/network/ServerCommonNetworkHandler;createClientData(Lnet/minecraft/network/packet/c2s/common/SyncedClientOptions;)Lnet/minecraft/server/network/ConnectedClientData;