Package net.minecraft.client.audio
Interface ISound
-
- All Known Subinterfaces:
ITickableSound
- All Known Implementing Classes:
AudioStreamTest.SineSound,BeeAngrySound,BeeFlightSound,BeeSound,BiomeSoundHandler.Sound,ElytraSound,EntityTickableSound,GuardianSound,LocatableSound,MinecartTickableSound,RidingMinecartTickableSound,SimpleSound,TickableSound,UnderwaterAmbientSounds.SubSound,UnderwaterAmbientSounds.UnderWaterSound
public interface ISound
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classISound.AttenuationType
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default booleancanPlaySound()default booleancanStartSilent()ISound.AttenuationTypegetAttenuation()intgetDelay()ResourceLocationgetLocation()floatgetPitch()SoundgetSound()SoundCategorygetSource()default java.util.concurrent.CompletableFuture<IAudioStream>getStream(AudioStreamManager soundBuffers, Sound sound, boolean looping)floatgetVolume()doublegetX()doublegetY()doublegetZ()booleanisLooping()booleanisRelative()SoundEventAccessorresolve(SoundHandler p_184366_1_)
-
-
-
Method Detail
-
getLocation
ResourceLocation getLocation()
-
resolve
@Nullable SoundEventAccessor resolve(SoundHandler p_184366_1_)
-
getSound
Sound getSound()
-
getSource
SoundCategory 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
ISound.AttenuationType getAttenuation()
-
canStartSilent
default boolean canStartSilent()
-
canPlaySound
default boolean canPlaySound()
-
getStream
default java.util.concurrent.CompletableFuture<IAudioStream> getStream(AudioStreamManager soundBuffers, Sound sound, boolean looping)
-
-