Interface SoundInstance
- All Known Subinterfaces:
TickableSoundInstance
- All Known Implementing Classes:
AbstractSoundInstance, AbstractTickableSoundInstance, BeeAggressiveSoundInstance, BeeFlyingSoundInstance, BeeSoundInstance, BiomeAmbientSoundsHandler.LoopSoundInstance, DirectionalSoundInstance, ElytraOnPlayerSoundInstance, EntityBoundSoundInstance, GuardianAttackSoundInstance, MinecartSoundInstance, RidingEntitySoundInstance, RidingMinecartSoundInstance, SimpleSoundInstance, SnifferSoundInstance, UnderwaterAmbientSoundInstances.SubSound, UnderwaterAmbientSoundInstances.UnderwaterAmbientSoundInstance
public interface SoundInstance
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiondefault booleandefault booleanstatic RandomSourceintgetDelay()floatgetPitch()@Nullable SoundgetSound()default CompletableFuture<AudioStream> getStream(SoundBufferLibrary soundBuffers, Sound sound, boolean looping) floatdoublegetX()doublegetY()doublegetZ()booleanboolean@Nullable WeighedSoundEventsresolve(SoundManager soundManager)
-
Method Details
-
getIdentifier
Identifier getIdentifier() -
resolve
-
getSound
@Nullable Sound getSound() -
getSource
SoundSource getSource() -
isLooping
boolean isLooping() -
isRelative
boolean isRelative() -
getDelay
int getDelay() -
getVolume
float getVolume() -
getPitch
float getPitch() -
getX
double getX() -
getY
double getY() -
getZ
double getZ() -
getAttenuation
SoundInstance.Attenuation getAttenuation() -
canStartSilent
default boolean canStartSilent() -
canPlaySound
default boolean canPlaySound() -
createUnseededRandom
-
getStream
default CompletableFuture<AudioStream> getStream(SoundBufferLibrary soundBuffers, Sound sound, boolean looping)
-