public class BiomeMoodSound extends Object
| Modifier and Type | Field and Description |
|---|---|
static BiomeMoodSound |
CAVE |
static com.mojang.serialization.Codec<BiomeMoodSound> |
CODEC |
private int |
cultivationTicks |
private double |
extraDistance |
private SoundEvent |
sound |
private int |
spawnRange |
| Constructor and Description |
|---|
BiomeMoodSound(SoundEvent sound,
int cultivationTicks,
int spawnRange,
double extraDistance) |
| Modifier and Type | Method and Description |
|---|---|
int |
getCultivationTicks()
Returns the ticks it takes for entering the mood environment (a totally
dark cave) to playing the mood sound, or the inverse of the per-tick.
|
double |
getExtraDistance()
Returns the extra distance of the sound from the player when the sound
plays from the mood position.
|
SoundEvent |
getSound() |
int |
getSpawnRange()
Returns the chebyshev distance from which the mood sound can play to
the player.
|
public static final com.mojang.serialization.Codec<BiomeMoodSound> CODEC
public static final BiomeMoodSound CAVE
private final SoundEvent sound
private final int cultivationTicks
private final int spawnRange
private final double extraDistance
public BiomeMoodSound(SoundEvent sound, int cultivationTicks, int spawnRange, double extraDistance)
@Environment(value=CLIENT) public SoundEvent getSound()
@Environment(value=CLIENT) public int getCultivationTicks()
@Environment(value=CLIENT) public int getSpawnRange()
@Environment(value=CLIENT) public double getExtraDistance()
The sound is actually played at a position along the line on the three-dimensional vector from the player to the chosen mood position that is this distance to the mood position and this distance farther from the player.