Interface PacketListener

All Known Subinterfaces:
ClientboundPacketListener, ClientCommonPacketListener, ClientConfigurationPacketListener, ClientGamePacketListener, ClientLoginPacketListener, ClientPongPacketListener, ClientStatusPacketListener, ServerboundPacketListener, ServerCommonPacketListener, ServerConfigurationPacketListener, ServerGamePacketListener, ServerHandshakePacketListener, ServerLoginPacketListener, ServerPacketListener, ServerPingPacketListener, ServerStatusPacketListener, TickablePacketListener
All Known Implementing Classes:
ClientCommonPacketListenerImpl, ClientConfigurationPacketListenerImpl, ClientHandshakePacketListenerImpl, ClientPacketListener, FakePlayer.FakePlayerNetHandler, MemoryServerHandshakePacketListenerImpl, ServerCommonPacketListenerImpl, ServerConfigurationPacketListenerImpl, ServerGamePacketListenerImpl, ServerHandshakePacketListenerImpl, ServerLoginPacketListenerImpl, ServerStatusPacketListenerImpl

public interface PacketListener
  • Method Details

    • flow

      PacketFlow flow()
    • protocol

      ConnectionProtocol protocol()
    • onDisconnect

      void onDisconnect(Component p_130552_)
    • isAcceptingMessages

      boolean isAcceptingMessages()
    • shouldHandleMessage

      default boolean shouldHandleMessage(Packet<?> p_295210_)
    • shouldPropagateHandlingExceptions

      default boolean shouldPropagateHandlingExceptions()
    • fillCrashReport

      default void fillCrashReport(CrashReport p_314927_)
    • fillListenerSpecificCrashDetails

      default void fillListenerSpecificCrashDetails(CrashReportCategory p_314965_)