Class BedrockSetDifficultyTranslator

java.lang.Object
org.geysermc.geyser.translator.protocol.PacketTranslator<org.cloudburstmc.protocol.bedrock.packet.SetDifficultyPacket>
org.geysermc.geyser.translator.protocol.bedrock.entity.player.BedrockSetDifficultyTranslator

public class BedrockSetDifficultyTranslator extends PacketTranslator<org.cloudburstmc.protocol.bedrock.packet.SetDifficultyPacket>
  • Constructor Details

    • BedrockSetDifficultyTranslator

      public BedrockSetDifficultyTranslator()
  • Method Details

    • translate

      public void translate(GeyserSession session, org.cloudburstmc.protocol.bedrock.packet.SetDifficultyPacket packet)
      Sets the Java server's difficulty via the Bedrock client's "world" menu (given sufficient permissions).
      Specified by:
      translate in class PacketTranslator<org.cloudburstmc.protocol.bedrock.packet.SetDifficultyPacket>