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
Modifier and TypeFieldDescriptionprotected SoundInstance.Attenuation
protected int
protected final ResourceLocation
protected boolean
protected float
protected RandomSource
protected boolean
protected Sound
protected final SoundSource
protected float
protected double
protected double
protected double
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractSoundInstance
(ResourceLocation p_235068_, SoundSource p_235069_, RandomSource p_235070_) protected
AbstractSoundInstance
(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, wait
Methods 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:
getLocation
in interfaceSoundInstance
-
resolve
- Specified by:
resolve
in interfaceSoundInstance
-
getSound
- Specified by:
getSound
in interfaceSoundInstance
-
getSource
- Specified by:
getSource
in interfaceSoundInstance
-
isLooping
public boolean isLooping()- Specified by:
isLooping
in interfaceSoundInstance
-
getDelay
public int getDelay()- Specified by:
getDelay
in interfaceSoundInstance
-
getVolume
public float getVolume()- Specified by:
getVolume
in interfaceSoundInstance
-
getPitch
public float getPitch()- Specified by:
getPitch
in interfaceSoundInstance
-
getX
public double getX()- Specified by:
getX
in interfaceSoundInstance
-
getY
public double getY()- Specified by:
getY
in interfaceSoundInstance
-
getZ
public double getZ()- Specified by:
getZ
in interfaceSoundInstance
-
getAttenuation
- Specified by:
getAttenuation
in interfaceSoundInstance
-
isRelative
public boolean isRelative()- Specified by:
isRelative
in interfaceSoundInstance
-
toString
-