Class BiomeAdditionsSound

java.lang.Object
net.minecraft.sound.BiomeAdditionsSound

public class BiomeAdditionsSound extends Object
Represents an "additions sound" for a biome.
Mappings:
Namespace Name
named net/minecraft/sound/BiomeAdditionsSound
intermediary net/minecraft/class_4967
official dcv
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<BiomeAdditionsSound> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/sound/BiomeAdditionsSound;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_24673 Lnet/minecraft/class_4967;field_24673:Lcom/mojang/serialization/Codec;
      official a Ldcv;a:Lcom/mojang/serialization/Codec;
    • sound

      private final RegistryEntry<SoundEvent> sound
      Mappings:
      Namespace Name Mixin selector
      named sound Lnet/minecraft/sound/BiomeAdditionsSound;sound:Lnet/minecraft/registry/entry/RegistryEntry;
      intermediary field_23144 Lnet/minecraft/class_4967;field_23144:Lnet/minecraft/class_6880;
      official b Ldcv;b:Lji;
    • chance

      private final double chance
      Mappings:
      Namespace Name Mixin selector
      named chance Lnet/minecraft/sound/BiomeAdditionsSound;chance:D
      intermediary field_23145 Lnet/minecraft/class_4967;field_23145:D
      official c Ldcv;c:D
  • Constructor Details

    • BiomeAdditionsSound

      public BiomeAdditionsSound(RegistryEntry<SoundEvent> sound, double chance)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/sound/BiomeAdditionsSound;<init>(Lnet/minecraft/registry/entry/RegistryEntry;D)V
      intermediary <init> Lnet/minecraft/class_4967;<init>(Lnet/minecraft/class_6880;D)V
      official <init> Ldcv;<init>(Lji;D)V
  • Method Details

    • getSound

      public RegistryEntry<SoundEvent> getSound()
      Mappings:
      Namespace Name Mixin selector
      named getSound Lnet/minecraft/sound/BiomeAdditionsSound;getSound()Lnet/minecraft/registry/entry/RegistryEntry;
      intermediary method_26098 Lnet/minecraft/class_4967;method_26098()Lnet/minecraft/class_6880;
      official a Ldcv;a()Lji;
    • getChance

      public double getChance()
      Returns the chance of this addition sound to play at any tick.
      Mappings:
      Namespace Name Mixin selector
      named getChance Lnet/minecraft/sound/BiomeAdditionsSound;getChance()D
      intermediary method_26099 Lnet/minecraft/class_4967;method_26099()D
      official b Ldcv;b()D