Package net.minecraft.client.sound
Class AbstractSoundInstance
java.lang.Object
net.minecraft.client.sound.AbstractSoundInstance
- All Implemented Interfaces:
SoundInstance
- Direct Known Subclasses:
MovingSoundInstance,PositionedSoundInstance
@Environment(CLIENT) public abstract class AbstractSoundInstance extends Object implements SoundInstance
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.sound.SoundInstance
SoundInstance.AttenuationType -
Field Summary
Fields Modifier and Type Field Description protected SoundInstance.AttenuationTypeattenuationTypeprotected SoundCategorycategoryprotected Identifieridprotected booleanloopingprotected floatpitchprotected booleanrepeatprotected intrepeatDelayprotected Soundsoundprotected floatvolumeprotected doublexprotected doubleyprotected doublez -
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractSoundInstance(SoundEvent sound, SoundCategory category)protectedAbstractSoundInstance(Identifier soundId, SoundCategory category) -
Method Summary
Modifier and Type Method Description SoundInstance.AttenuationTypegetAttenuationType()SoundCategorygetCategory()IdentifiergetId()floatgetPitch()intgetRepeatDelay()SoundgetSound()WeightedSoundSetgetSoundSet(SoundManager soundManager)floatgetVolume()doublegetX()doublegetY()doublegetZ()booleanisLooping()booleanisRepeatable()StringtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.client.sound.SoundInstance
canPlay, shouldAlwaysPlay
-
Field Details
-
sound
-
category
-
id
-
volume
protected float volume -
pitch
protected float pitch -
x
protected double x -
y
protected double y -
z
protected double z -
repeat
protected boolean repeat -
repeatDelay
protected int repeatDelay -
attenuationType
-
looping
protected boolean looping
-
-
Constructor Details
-
AbstractSoundInstance
-
AbstractSoundInstance
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceSoundInstance
-
getSoundSet
- Specified by:
getSoundSetin interfaceSoundInstance
-
getSound
- Specified by:
getSoundin interfaceSoundInstance
-
getCategory
- Specified by:
getCategoryin interfaceSoundInstance
-
isRepeatable
public boolean isRepeatable()- Specified by:
isRepeatablein interfaceSoundInstance
-
getRepeatDelay
public int getRepeatDelay()- Specified by:
getRepeatDelayin 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
-
getAttenuationType
- Specified by:
getAttenuationTypein interfaceSoundInstance
-
isLooping
public boolean isLooping()- Specified by:
isLoopingin interfaceSoundInstance
-
toString
-