Class JavaDisconnectTranslator
java.lang.Object
org.geysermc.geyser.translator.protocol.PacketTranslator<com.github.steveice10.mc.protocol.packet.ingame.clientbound.ClientboundDisconnectPacket>
org.geysermc.geyser.translator.protocol.java.JavaDisconnectTranslator
public class JavaDisconnectTranslator
extends PacketTranslator<com.github.steveice10.mc.protocol.packet.ingame.clientbound.ClientboundDisconnectPacket>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Determines if this packet should be handled in the session's event loop.void
translate(GeyserSession session, com.github.steveice10.mc.protocol.packet.ingame.clientbound.ClientboundDisconnectPacket packet)
-
Constructor Details
-
JavaDisconnectTranslator
public JavaDisconnectTranslator()
-
-
Method Details
-
translate
public void translate(GeyserSession session, com.github.steveice10.mc.protocol.packet.ingame.clientbound.ClientboundDisconnectPacket packet)- Specified by:
translate
in classPacketTranslator<com.github.steveice10.mc.protocol.packet.ingame.clientbound.ClientboundDisconnectPacket>
-
shouldExecuteInEventLoop
public boolean shouldExecuteInEventLoop()Description copied from class:PacketTranslator
Determines 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:
shouldExecuteInEventLoop
in classPacketTranslator<com.github.steveice10.mc.protocol.packet.ingame.clientbound.ClientboundDisconnectPacket>
-