Package net.minecraft.client.sound
Interface SoundInstance
- All Known Subinterfaces:
TickableSoundInstance
- All Known Implementing Classes:
AbstractBeeSoundInstance,AbstractSoundInstance,AggressiveBeeSoundInstance,AmbientSoundLoops.MusicLoop,AmbientSoundLoops.Underwater,BiomeEffectSoundPlayer.MusicLoop,ElytraSoundInstance,EntityTrackingSoundInstance,GuardianAttackSoundInstance,MinecartInsideSoundInstance,MovingMinecartSoundInstance,MovingSoundInstance,PassiveBeeSoundInstance,PositionedSoundInstance
@Environment(CLIENT)
public interface SoundInstance
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classSoundInstance.AttenuationType -
Method Summary
Modifier and Type Method Description default booleancanPlay()SoundInstance.AttenuationTypegetAttenuationType()SoundCategorygetCategory()IdentifiergetId()floatgetPitch()intgetRepeatDelay()SoundgetSound()WeightedSoundSetgetSoundSet(SoundManager soundManager)floatgetVolume()doublegetX()doublegetY()doublegetZ()booleanisLooping()booleanisRepeatable()default booleanshouldAlwaysPlay()
-
Method Details
-
getId
Identifier getId() -
getSoundSet
-
getSound
Sound getSound() -
getCategory
SoundCategory getCategory() -
isRepeatable
boolean isRepeatable() -
isLooping
boolean isLooping() -
getRepeatDelay
int getRepeatDelay() -
getVolume
float getVolume() -
getPitch
float getPitch() -
getX
double getX() -
getY
double getY() -
getZ
double getZ() -
getAttenuationType
SoundInstance.AttenuationType getAttenuationType() -
shouldAlwaysPlay
default boolean shouldAlwaysPlay() -
canPlay
default boolean canPlay()
-