public class BiomeAdditionsSound extends Object
| Modifier and Type | Field and Description |
|---|---|
private double |
chance |
static com.mojang.serialization.Codec<BiomeAdditionsSound> |
CODEC |
private SoundEvent |
sound |
| Constructor and Description |
|---|
BiomeAdditionsSound(SoundEvent sound,
double chance) |
| Modifier and Type | Method and Description |
|---|---|
double |
getChance()
Returns the chance of this addition sound to play at any tick.
|
SoundEvent |
getSound() |
public static final com.mojang.serialization.Codec<BiomeAdditionsSound> CODEC
private SoundEvent sound
private double chance
public BiomeAdditionsSound(SoundEvent sound, double chance)
@Environment(value=CLIENT) public SoundEvent getSound()
@Environment(value=CLIENT) public double getChance()