Package net.minecraft.network.listener
Interface ServerPacketListener
- All Superinterfaces:
PacketListener
- All Known Subinterfaces:
ServerHandshakePacketListener,ServerLoginPacketListener,ServerPlayPacketListener,ServerQueryPacketListener
- All Known Implementing Classes:
LocalServerHandshakeNetworkHandler,ServerHandshakeNetworkHandler,ServerLoginNetworkHandler,ServerPlayNetworkHandler,ServerQueryNetworkHandler
The base interface for serverbound packet listeners.
- Implementation Note:
- Serverbound packet listeners log any uncaught exceptions without crashing.
- Mappings:
Namespace Name official zmintermediary net/minecraft/class_6857named net/minecraft/network/listener/ServerPacketListener
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanReturns whether uncaught exceptions in main thread should crash the game instead of logging and ignoring them.Methods inherited from interface net.minecraft.network.listener.PacketListener
isConnectionOpen, onDisconnected
-
Method Details
-
shouldCrashOnException
default boolean shouldCrashOnException()Returns whether uncaught exceptions in main thread should crash the game instead of logging and ignoring them.- Specified by:
shouldCrashOnExceptionin interfacePacketListener- Returns:
- whether uncaught exceptions in main thread should crash the game instead of logging and ignoring them
- See Also:
- Mappings:
Namespace Name Mixin selector official bLsv;b()Zintermediary method_40065Lnet/minecraft/class_2547;method_40065()Znamed shouldCrashOnExceptionLnet/minecraft/network/listener/PacketListener;shouldCrashOnException()Z
-