@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() |
float |
getX() |
float |
getY() |
float |
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()
float getX()
float getY()
float getZ()
SoundInstance.AttenuationType getAttenuationType()
default boolean shouldAlwaysPlay()
default boolean canPlay()