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 class
SoundInstance.AttenuationType
-
Method Summary
Modifier and Type Method 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()
-
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()
-