Class JavaCustomPayloadTranslator
java.lang.Object
org.geysermc.geyser.translator.protocol.PacketTranslator<com.github.steveice10.mc.protocol.packet.common.clientbound.ClientboundCustomPayloadPacket>
org.geysermc.geyser.translator.protocol.java.JavaCustomPayloadTranslator
public class JavaCustomPayloadTranslator
extends PacketTranslator<com.github.steveice10.mc.protocol.packet.common.clientbound.ClientboundCustomPayloadPacket>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermines if this packet should be handled in the session's event loop.voidtranslate(GeyserSession session, com.github.steveice10.mc.protocol.packet.common.clientbound.ClientboundCustomPayloadPacket packet)
-
Constructor Details
-
JavaCustomPayloadTranslator
public JavaCustomPayloadTranslator()
-
-
Method Details
-
translate
public void translate(GeyserSession session, com.github.steveice10.mc.protocol.packet.common.clientbound.ClientboundCustomPayloadPacket packet) - Specified by:
translatein classPacketTranslator<com.github.steveice10.mc.protocol.packet.common.clientbound.ClientboundCustomPayloadPacket>
-
shouldExecuteInEventLoop
public boolean shouldExecuteInEventLoop()Description copied from class:PacketTranslatorDetermines if this packet should be handled in the session's event loop. This should generally be true - only when the packet has to be executed immediately should it be false.- Overrides:
shouldExecuteInEventLoopin classPacketTranslator<com.github.steveice10.mc.protocol.packet.common.clientbound.ClientboundCustomPayloadPacket>
-