Class AbstractSoundInstance
java.lang.Object
net.minecraft.client.resources.sounds.AbstractSoundInstance
- All Implemented Interfaces:
SoundInstance
- Direct Known Subclasses:
AbstractTickableSoundInstance
,AudioStreamTest.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 boolean
protected Sound
protected final SoundSource
protected float
protected double
protected double
protected double
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractSoundInstance
(ResourceLocation p_119587_, SoundSource p_119588_) protected
AbstractSoundInstance
(SoundEvent p_119584_, SoundSource p_119585_) -
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
-
-
Constructor Details
-
AbstractSoundInstance
-
AbstractSoundInstance
-
-
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
-