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.AttenuationType
attenuationType
protected SoundCategory
category
protected Identifier
id
protected boolean
looping
protected float
pitch
protected boolean
repeat
protected int
repeatDelay
protected Sound
sound
protected float
volume
protected double
x
protected double
y
protected double
z
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractSoundInstance(SoundEvent sound, SoundCategory category)
protected
AbstractSoundInstance(Identifier soundId, SoundCategory category)
-
Method Summary
Modifier and Type Method Description SoundInstance.AttenuationType
getAttenuationType()
SoundCategory
getCategory()
Identifier
getId()
float
getPitch()
int
getRepeatDelay()
Sound
getSound()
WeightedSoundSet
getSoundSet(SoundManager soundManager)
float
getVolume()
double
getX()
double
getY()
double
getZ()
boolean
isLooping()
boolean
isRepeatable()
String
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
getId
in interfaceSoundInstance
-
getSoundSet
- Specified by:
getSoundSet
in interfaceSoundInstance
-
getSound
- Specified by:
getSound
in interfaceSoundInstance
-
getCategory
- Specified by:
getCategory
in interfaceSoundInstance
-
isRepeatable
public boolean isRepeatable()- Specified by:
isRepeatable
in interfaceSoundInstance
-
getRepeatDelay
public int getRepeatDelay()- Specified by:
getRepeatDelay
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
-
getAttenuationType
- Specified by:
getAttenuationType
in interfaceSoundInstance
-
isLooping
public boolean isLooping()- Specified by:
isLooping
in interfaceSoundInstance
-
toString
-