Class Sound

java.lang.Object
net.minecraft.client.sound.Sound
All Implemented Interfaces:
SoundContainer<Sound>

@Environment(CLIENT)
public class Sound
extends Object
implements SoundContainer<Sound>
  • Field Details

    • id

      private final Identifier id
    • volume

      private final float volume
    • pitch

      private final float pitch
    • weight

      private final int weight
    • registrationType

      private final Sound.RegistrationType registrationType
    • stream

      private final boolean stream
    • preload

      private final boolean preload
    • attenuation

      private final int attenuation
  • Constructor Details

    • Sound

      public Sound​(String id, float volume, float pitch, int weight, Sound.RegistrationType registrationType, boolean stream, boolean preload, int attenuation)
  • Method Details