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) privateSimpleSoundInstance(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 SimpleSoundInstanceforAmbientAddition(SoundEvent pSound) static SimpleSoundInstanceforAmbientMood(SoundEvent pSoundEvent, RandomSource pRandom, double pX, double pY, double pZ) static SimpleSoundInstanceforJukeboxSong(SoundEvent pSound, Vec3 pPos) static SimpleSoundInstanceforLocalAmbience(SoundEvent pSound, float pVolume, float pPitch) static SimpleSoundInstanceforMusic(SoundEvent pSound) static SimpleSoundInstanceforUI(Holder<SoundEvent> pSoundHolder, float pPitch) static SimpleSoundInstanceforUI(SoundEvent pSound, float pPitch) static SimpleSoundInstanceforUI(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, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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)
-