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.Attenuation
protected int
The number of ticks between repeating the soundprotected 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
ConstructorsModifierConstructorDescriptionprotected
AbstractSoundInstance
(ResourceLocation pLocation, SoundSource pSource, RandomSource pRandom) protected
AbstractSoundInstance
(SoundEvent pSoundEvent, SoundSource pSource, RandomSource pRandom) -
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 delayThe number of ticks between repeating the sound -
attenuation
-
relative
protected boolean relative -
random
-
-
Constructor Details
-
AbstractSoundInstance
-
AbstractSoundInstance
protected AbstractSoundInstance(ResourceLocation pLocation, SoundSource pSource, RandomSource pRandom)
-
-
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
-