Package net.minecraft.network.listener
Interface ServerCrashSafePacketListener
- All Superinterfaces:
PacketListener
,ServerPacketListener
- All Known Subinterfaces:
ServerCommonPacketListener
,ServerConfigurationPacketListener
,ServerHandshakePacketListener
,ServerLoginPacketListener
,ServerPlayPacketListener
,ServerQueryPacketListener
- All Known Implementing Classes:
LocalServerHandshakeNetworkHandler
,ServerCommonNetworkHandler
,ServerConfigurationNetworkHandler
,ServerHandshakeNetworkHandler
,ServerLoginNetworkHandler
,ServerPlayNetworkHandler
,ServerQueryNetworkHandler
The interface for serverbound packet listeners.
- Implementation Note:
- Serverbound packet listeners log any uncaught exceptions without crashing.
- Mappings:
Namespace Name official adk
intermediary net/minecraft/class_6857
named net/minecraft/network/listener/ServerCrashSafePacketListener
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
Returns 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
accepts, addCustomCrashReportInfo, fillCrashReport, getState, isConnectionOpen, onDisconnected
Methods inherited from interface net.minecraft.network.listener.ServerPacketListener
getSide
-
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:
shouldCrashOnException
in 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 d
Luo;d()Z
intermediary method_40065
Lnet/minecraft/class_2547;method_40065()Z
named shouldCrashOnException
Lnet/minecraft/network/listener/PacketListener;shouldCrashOnException()Z
-