Package net.minecraft.sound
Class BiomeAdditionsSound
java.lang.Object
net.minecraft.sound.BiomeAdditionsSound
public class BiomeAdditionsSound extends Object
Represents an "additions sound" for a biome.
-
Field Summary
Fields Modifier and Type Field Description private doublechancestatic com.mojang.serialization.Codec<BiomeAdditionsSound>CODECprivate SoundEventsound -
Constructor Summary
Constructors Constructor Description BiomeAdditionsSound(SoundEvent sound, double chance) -
Method Summary
Modifier and Type Method Description doublegetChance()Returns the chance of this addition sound to play at any tick.SoundEventgetSound()
-
Field Details
-
CODEC
-
sound
-
chance
private final double chance
-
-
Constructor Details
-
BiomeAdditionsSound
-
-
Method Details
-
getSound
-
getChance
@Environment(CLIENT) public double getChance()Returns the chance of this addition sound to play at any tick.
-