Class JavaUpdateRecipesTranslator
java.lang.Object
org.geysermc.geyser.translator.protocol.PacketTranslator<com.github.steveice10.mc.protocol.packet.ingame.clientbound.ClientboundUpdateRecipesPacket>
org.geysermc.geyser.translator.protocol.java.JavaUpdateRecipesTranslator
public class JavaUpdateRecipesTranslator
extends PacketTranslator<com.github.steveice10.mc.protocol.packet.ingame.clientbound.ClientboundUpdateRecipesPacket>
Used to send all valid recipes from Java to Bedrock.
Bedrock REQUIRES a CraftingDataPacket to be sent in order to craft anything.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
translate(GeyserSession session, com.github.steveice10.mc.protocol.packet.ingame.clientbound.ClientboundUpdateRecipesPacket packet)
Methods inherited from class org.geysermc.geyser.translator.protocol.PacketTranslator
shouldExecuteInEventLoop
-
Constructor Details
-
JavaUpdateRecipesTranslator
public JavaUpdateRecipesTranslator()
-
-
Method Details
-
translate
public void translate(GeyserSession session, com.github.steveice10.mc.protocol.packet.ingame.clientbound.ClientboundUpdateRecipesPacket packet)- Specified by:
translate
in classPacketTranslator<com.github.steveice10.mc.protocol.packet.ingame.clientbound.ClientboundUpdateRecipesPacket>
-