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
ModifierConstructorDescriptionSimpleSoundInstance
(ResourceLocation p_119734_, SoundSource p_119735_, float p_119736_, float p_119737_, boolean p_119738_, int p_119739_, SoundInstance.Attenuation p_119740_, double p_119741_, double p_119742_, double p_119743_, boolean p_119744_) private
SimpleSoundInstance
(SoundEvent p_119723_, SoundSource p_119724_, float p_119725_, float p_119726_, boolean p_119727_, int p_119728_, SoundInstance.Attenuation p_119729_, double p_119730_, double p_119731_, double p_119732_) SimpleSoundInstance
(SoundEvent p_119709_, SoundSource p_119710_, float p_119711_, float p_119712_, double p_119713_, double p_119714_, double p_119715_) SimpleSoundInstance
(SoundEvent p_119717_, SoundSource p_119718_, float p_119719_, float p_119720_, BlockPos p_119721_) -
Method Summary
Modifier and TypeMethodDescriptionstatic SimpleSoundInstance
forAmbientAddition
(SoundEvent p_119760_) static SimpleSoundInstance
forAmbientMood
(SoundEvent p_119762_, double p_119763_, double p_119764_, double p_119765_) static SimpleSoundInstance
forLocalAmbience
(SoundEvent p_119767_, float p_119768_, float p_119769_) static SimpleSoundInstance
forMusic
(SoundEvent p_119746_) static SimpleSoundInstance
forRecord
(SoundEvent p_119748_, double p_119749_, double p_119750_, double p_119751_) static SimpleSoundInstance
forUI
(SoundEvent p_119753_, float p_119754_) static SimpleSoundInstance
forUI
(SoundEvent p_119756_, float p_119757_, float p_119758_) 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 p_119717_, SoundSource p_119718_, float p_119719_, float p_119720_, BlockPos p_119721_) -
SimpleSoundInstance
public SimpleSoundInstance(SoundEvent p_119709_, SoundSource p_119710_, float p_119711_, float p_119712_, double p_119713_, double p_119714_, double p_119715_) -
SimpleSoundInstance
private SimpleSoundInstance(SoundEvent p_119723_, SoundSource p_119724_, float p_119725_, float p_119726_, boolean p_119727_, int p_119728_, SoundInstance.Attenuation p_119729_, double p_119730_, double p_119731_, double p_119732_) -
SimpleSoundInstance
public SimpleSoundInstance(ResourceLocation p_119734_, SoundSource p_119735_, float p_119736_, float p_119737_, boolean p_119738_, int p_119739_, SoundInstance.Attenuation p_119740_, double p_119741_, double p_119742_, double p_119743_, boolean p_119744_)
-
-
Method Details
-
forUI
-
forUI
-
forMusic
-
forRecord
public static SimpleSoundInstance forRecord(SoundEvent p_119748_, double p_119749_, double p_119750_, double p_119751_) -
forLocalAmbience
public static SimpleSoundInstance forLocalAmbience(SoundEvent p_119767_, float p_119768_, float p_119769_) -
forAmbientAddition
-
forAmbientMood
public static SimpleSoundInstance forAmbientMood(SoundEvent p_119762_, double p_119763_, double p_119764_, double p_119765_)
-