Package net.minecraft.network
Class OffThreadException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
net.minecraft.network.OffThreadException
- All Implemented Interfaces:
Serializable
public final class OffThreadException extends RuntimeException
An exception thrown on netty's event loop to quit handling of one packet,
usually as it is scheduled to be handled on the game engine thread.
This is a singleton. It ignores stack traces in order to be efficient.
- See Also:
NetworkThreadUtils
,ClientConnection.channelRead0(io.netty.channel.ChannelHandlerContext, net.minecraft.network.Packet<?>)
, Serialized Form- Mappings:
Namespace Name official wy
intermediary net/minecraft/class_2987
named net/minecraft/network/OffThreadException
-
Field Summary
Fields Modifier and Type Field Description static OffThreadException
INSTANCE
The singleton instance, to reduce object allocations. -
Constructor Summary
Constructors Modifier Constructor Description private
OffThreadException()
-
Method Summary
Modifier and Type Method Description Throwable
fillInStackTrace()
Methods inherited from class java.lang.Throwable
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
INSTANCE
The singleton instance, to reduce object allocations.- Mappings:
Namespace Name Mixin selector official a
Lwy;a:Lwy;
intermediary field_13400
Lnet/minecraft/class_2987;field_13400:Lnet/minecraft/class_2987;
named INSTANCE
Lnet/minecraft/network/OffThreadException;INSTANCE:Lnet/minecraft/network/OffThreadException;
-
-
Constructor Details
-
OffThreadException
private OffThreadException()
-
-
Method Details
-
fillInStackTrace
- Overrides:
fillInStackTrace
in classThrowable
- Mappings:
Namespace Name Mixin selector official fillInStackTrace
Lwy;fillInStackTrace()Ljava/lang/Throwable;
intermediary fillInStackTrace
Lnet/minecraft/class_2987;fillInStackTrace()Ljava/lang/Throwable;
named fillInStackTrace
Lnet/minecraft/network/OffThreadException;fillInStackTrace()Ljava/lang/Throwable;
-