Class AbstractSoundInstance
java.lang.Object
net.minecraft.client.resources.sounds.AbstractSoundInstance
- All Implemented Interfaces:
- SoundInstance
- Direct Known Subclasses:
- AbstractTickableSoundInstance,- ClientTests.SineSound,- SimpleSoundInstance
- 
Nested Class SummaryNested classes/interfaces inherited from interface net.minecraft.client.resources.sounds.SoundInstanceSoundInstance.Attenuation
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected SoundInstance.Attenuationprotected intprotected final ResourceLocationprotected booleanprotected floatprotected RandomSourceprotected booleanprotected Soundprotected final SoundSourceprotected floatprotected doubleprotected doubleprotected double
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedAbstractSoundInstance(ResourceLocation p_235068_, SoundSource p_235069_, RandomSource p_235070_) protectedAbstractSoundInstance(SoundEvent p_235072_, SoundSource p_235073_, RandomSource p_235074_) 
- 
Method SummaryMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.client.resources.sounds.SoundInstancecanPlaySound, canStartSilent, getStream
- 
Field Details- 
sound
- 
source
- 
location
- 
volumeprotected float volume
- 
pitchprotected float pitch
- 
xprotected double x
- 
yprotected double y
- 
zprotected double z
- 
loopingprotected boolean looping
- 
delayprotected int delay
- 
attenuation
- 
relativeprotected boolean relative
- 
random
 
- 
- 
Constructor Details- 
AbstractSoundInstanceprotected AbstractSoundInstance(SoundEvent p_235072_, SoundSource p_235073_, RandomSource p_235074_) 
- 
AbstractSoundInstanceprotected AbstractSoundInstance(ResourceLocation p_235068_, SoundSource p_235069_, RandomSource p_235070_) 
 
- 
- 
Method Details- 
getLocation- Specified by:
- getLocationin interface- SoundInstance
 
- 
resolve- Specified by:
- resolvein interface- SoundInstance
 
- 
getSound- Specified by:
- getSoundin interface- SoundInstance
 
- 
getSource- Specified by:
- getSourcein interface- SoundInstance
 
- 
isLoopingpublic boolean isLooping()- Specified by:
- isLoopingin interface- SoundInstance
 
- 
getDelaypublic int getDelay()- Specified by:
- getDelayin interface- SoundInstance
 
- 
getVolumepublic float getVolume()- Specified by:
- getVolumein interface- SoundInstance
 
- 
getPitchpublic float getPitch()- Specified by:
- getPitchin interface- SoundInstance
 
- 
getXpublic double getX()- Specified by:
- getXin interface- SoundInstance
 
- 
getYpublic double getY()- Specified by:
- getYin interface- SoundInstance
 
- 
getZpublic double getZ()- Specified by:
- getZin interface- SoundInstance
 
- 
getAttenuation- Specified by:
- getAttenuationin interface- SoundInstance
 
- 
isRelativepublic boolean isRelative()- Specified by:
- isRelativein interface- SoundInstance
 
- 
toString
 
-