Class SoundUtils

java.lang.Object
org.geysermc.geyser.util.SoundUtils

public final class SoundUtils extends Object
  • Method Details

    • translatePlaySound

      public static String translatePlaySound(String javaIdentifier)
      Translates a Java Custom or Builtin Sound to its Bedrock equivalent
      Parameters:
      javaIdentifier - the sound to translate
      Returns:
      a Bedrock sound
    • playSound

      public static void playSound(GeyserSession session, com.github.steveice10.mc.protocol.data.game.level.sound.Sound javaSound, org.cloudburstmc.math.vector.Vector3f position, float volume, float pitch)
      Translates and plays a Java Builtin Sound for a Bedrock client
      Parameters:
      session - the Bedrock client session.
      javaSound - the builtin sound to play
      position - the position
      pitch - the pitch