Package net.minecraft.network.protocol
Class PacketUtils
java.lang.Object
net.minecraft.network.protocol.PacketUtils
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends PacketListener>
voidensureRunningOnSameThread
(Packet<T> p_131360_, T p_131361_, ServerLevel p_131362_) static <T extends PacketListener>
voidensureRunningOnSameThread
(Packet<T> p_131364_, T p_131365_, BlockableEventLoop<?> p_131366_) static <T extends PacketListener>
voidfillCrashReport
(CrashReport p_340891_, T p_340866_, Packet<T> p_340900_) static <T extends PacketListener>
ReportedExceptionmakeReportedException
(Exception p_341646_, Packet<T> p_341629_, T p_341619_)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER
-
-
Constructor Details
-
PacketUtils
public PacketUtils()
-
-
Method Details
-
ensureRunningOnSameThread
public static <T extends PacketListener> void ensureRunningOnSameThread(Packet<T> p_131360_, T p_131361_, ServerLevel p_131362_) throws RunningOnDifferentThreadException -
ensureRunningOnSameThread
public static <T extends PacketListener> void ensureRunningOnSameThread(Packet<T> p_131364_, T p_131365_, BlockableEventLoop<?> p_131366_) throws RunningOnDifferentThreadException -
makeReportedException
public static <T extends PacketListener> ReportedException makeReportedException(Exception p_341646_, Packet<T> p_341629_, T p_341619_) -
fillCrashReport
public static <T extends PacketListener> void fillCrashReport(CrashReport p_340891_, T p_340866_, @Nullable Packet<T> p_340900_)
-