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_)
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.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
-