Class SimpleSoundInstance
java.lang.Object
net.minecraft.client.resources.sounds.AbstractSoundInstance
net.minecraft.client.resources.sounds.SimpleSoundInstance
- All Implemented Interfaces:
SoundInstance
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.resources.sounds.SoundInstance
SoundInstance.Attenuation
-
Field Summary
-
Constructor Summary
ConstructorsModifierConstructorDescriptionSimpleSoundInstance
(ResourceLocation pLocation, SoundSource pSource, float pVolume, float pPitch, RandomSource pRandom, boolean pLooping, int pDelay, SoundInstance.Attenuation pAttenuation, double pX, double pY, double pZ, boolean pRelative) private
SimpleSoundInstance
(SoundEvent pSoundEvent, SoundSource pSource, float pVolume, float pPitch, RandomSource pRandom, boolean pLooping, int pDelay, SoundInstance.Attenuation pAttenuation, double pX, double pY, double pZ) SimpleSoundInstance
(SoundEvent pSoundEvent, SoundSource pSource, float pVolume, float pPitch, RandomSource pRandom, double pX, double pY, double pZ) SimpleSoundInstance
(SoundEvent pSoundEvent, SoundSource pSource, float pVolume, float pPitch, RandomSource pRandom, BlockPos pEntity) -
Method Summary
Modifier and TypeMethodDescriptionstatic SimpleSoundInstance
forAmbientAddition
(SoundEvent pSound) static SimpleSoundInstance
forAmbientMood
(SoundEvent pSoundEvent, RandomSource pRandom, double pX, double pY, double pZ) static SimpleSoundInstance
forJukeboxSong
(SoundEvent pSound, Vec3 pPos) static SimpleSoundInstance
forLocalAmbience
(SoundEvent pSound, float pVolume, float pPitch) static SimpleSoundInstance
forMusic
(SoundEvent pSound) static SimpleSoundInstance
forUI
(Holder<SoundEvent> pSoundHolder, float pPitch) static SimpleSoundInstance
forUI
(SoundEvent pSound, float pPitch) static SimpleSoundInstance
forUI
(SoundEvent pSound, float pPitch, float pVolume) Methods inherited from class net.minecraft.client.resources.sounds.AbstractSoundInstance
getAttenuation, getDelay, getLocation, getPitch, getSound, getSource, getVolume, getX, getY, getZ, isLooping, isRelative, resolve, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.client.resources.sounds.SoundInstance
canPlaySound, canStartSilent, getStream
-
Constructor Details
-
SimpleSoundInstance
public SimpleSoundInstance(SoundEvent pSoundEvent, SoundSource pSource, float pVolume, float pPitch, RandomSource pRandom, BlockPos pEntity) -
SimpleSoundInstance
public SimpleSoundInstance(SoundEvent pSoundEvent, SoundSource pSource, float pVolume, float pPitch, RandomSource pRandom, double pX, double pY, double pZ) -
SimpleSoundInstance
private SimpleSoundInstance(SoundEvent pSoundEvent, SoundSource pSource, float pVolume, float pPitch, RandomSource pRandom, boolean pLooping, int pDelay, SoundInstance.Attenuation pAttenuation, double pX, double pY, double pZ) -
SimpleSoundInstance
public SimpleSoundInstance(ResourceLocation pLocation, SoundSource pSource, float pVolume, float pPitch, RandomSource pRandom, boolean pLooping, int pDelay, SoundInstance.Attenuation pAttenuation, double pX, double pY, double pZ, boolean pRelative)
-
-
Method Details
-
forUI
-
forUI
-
forUI
-
forMusic
-
forJukeboxSong
-
forLocalAmbience
-
forAmbientAddition
-
forAmbientMood
public static SimpleSoundInstance forAmbientMood(SoundEvent pSoundEvent, RandomSource pRandom, double pX, double pY, double pZ)
-