Interface ServerCrashSafePacketListener

All Superinterfaces:
PacketListener, ServerPacketListener
All Known Subinterfaces:
ServerCommonPacketListener, ServerConfigurationPacketListener, ServerCookieResponsePacketListener, ServerHandshakePacketListener, ServerLoginPacketListener, ServerPlayPacketListener, ServerQueryPacketListener
All Known Implementing Classes:
LocalServerHandshakeNetworkHandler, ServerCommonNetworkHandler, ServerConfigurationNetworkHandler, ServerHandshakeNetworkHandler, ServerLoginNetworkHandler, ServerPlayNetworkHandler, ServerQueryNetworkHandler

public interface ServerCrashSafePacketListener extends ServerPacketListener
The interface for serverbound packet listeners.
Implementation Note:
Serverbound packet listeners log any uncaught exceptions without crashing.
Mappings:
Namespace Name
named net/minecraft/network/listener/ServerCrashSafePacketListener
intermediary net/minecraft/class_6857
official agx
  • Field Details

    • LOGGER

      static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/network/listener/ServerCrashSafePacketListener;LOGGER:Lorg/slf4j/Logger;
      intermediary field_51479 Lnet/minecraft/class_6857;field_51479:Lorg/slf4j/Logger;
      official a Lagx;a:Lorg/slf4j/Logger;
  • Method Details

    • onPacketException

      default void onPacketException(Packet packet, Exception exception) throws CrashException
      Specified by:
      onPacketException in interface PacketListener
      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 Lwv;a(Lzw;Ljava/lang/Exception;)V