Class AbstractSoundInstance
java.lang.Object
net.minecraft.client.resources.sounds.AbstractSoundInstance
- All Implemented Interfaces:
SoundInstance
- Direct Known Subclasses:
AbstractTickableSoundInstance,ClientTests.SineSound,SimpleSoundInstance
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.resources.sounds.SoundInstance
SoundInstance.Attenuation -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected SoundInstance.Attenuationprotected intprotected final ResourceLocationprotected booleanprotected floatprotected RandomSourceprotected booleanprotected Soundprotected final SoundSourceprotected floatprotected doubleprotected doubleprotected double -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractSoundInstance(ResourceLocation p_235068_, SoundSource p_235069_, RandomSource p_235070_) protectedAbstractSoundInstance(SoundEvent p_235072_, SoundSource p_235073_, RandomSource p_235074_) -
Method Summary
Methods 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
-
Field Details
-
sound
-
source
-
location
-
volume
protected float volume -
pitch
protected float pitch -
x
protected double x -
y
protected double y -
z
protected double z -
looping
protected boolean looping -
delay
protected int delay -
attenuation
-
relative
protected boolean relative -
random
-
-
Constructor Details
-
AbstractSoundInstance
protected AbstractSoundInstance(SoundEvent p_235072_, SoundSource p_235073_, RandomSource p_235074_) -
AbstractSoundInstance
protected AbstractSoundInstance(ResourceLocation p_235068_, SoundSource p_235069_, RandomSource p_235070_)
-
-
Method Details
-
getLocation
- Specified by:
getLocationin interfaceSoundInstance
-
resolve
- Specified by:
resolvein interfaceSoundInstance
-
getSound
- Specified by:
getSoundin interfaceSoundInstance
-
getSource
- Specified by:
getSourcein interfaceSoundInstance
-
isLooping
public boolean isLooping()- Specified by:
isLoopingin interfaceSoundInstance
-
getDelay
public int getDelay()- Specified by:
getDelayin interfaceSoundInstance
-
getVolume
public float getVolume()- Specified by:
getVolumein interfaceSoundInstance
-
getPitch
public float getPitch()- Specified by:
getPitchin interfaceSoundInstance
-
getX
public double getX()- Specified by:
getXin interfaceSoundInstance
-
getY
public double getY()- Specified by:
getYin interfaceSoundInstance
-
getZ
public double getZ()- Specified by:
getZin interfaceSoundInstance
-
getAttenuation
- Specified by:
getAttenuationin interfaceSoundInstance
-
isRelative
public boolean isRelative()- Specified by:
isRelativein interfaceSoundInstance
-
toString
-