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 class
ISound.AttenuationType
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default boolean
canPlaySound()
default boolean
canStartSilent()
ISound.AttenuationType
getAttenuation()
int
getDelay()
ResourceLocation
getLocation()
float
getPitch()
Sound
getSound()
SoundCategory
getSource()
default java.util.concurrent.CompletableFuture<IAudioStream>
getStream(AudioStreamManager soundBuffers, Sound sound, boolean looping)
float
getVolume()
double
getX()
double
getY()
double
getZ()
boolean
isLooping()
boolean
isRelative()
SoundEventAccessor
resolve(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)
-
-