@Environment(value=CLIENT)
public interface SoundInstance
Modifier and Type | Interface and Description |
---|---|
static class |
SoundInstance.AttenuationType |
Modifier and Type | Method and Description |
---|---|
default boolean |
canPlay() |
SoundInstance.AttenuationType |
getAttenuationType() |
SoundCategory |
getCategory() |
Identifier |
getId() |
float |
getPitch() |
int |
getRepeatDelay() |
Sound |
getSound() |
WeightedSoundSet |
getSoundSet(SoundManager soundManager) |
float |
getVolume() |
double |
getX() |
double |
getY() |
double |
getZ() |
boolean |
isLooping() |
boolean |
isRepeatable() |
default boolean |
shouldAlwaysPlay() |
Identifier getId()
@Nullable WeightedSoundSet getSoundSet(SoundManager soundManager)
Sound getSound()
SoundCategory getCategory()
boolean isRepeatable()
boolean isLooping()
int getRepeatDelay()
float getVolume()
float getPitch()
double getX()
double getY()
double getZ()
SoundInstance.AttenuationType getAttenuationType()
default boolean shouldAlwaysPlay()
default boolean canPlay()