Package net.minecraft.client.audio
Class PositionedSound
- java.lang.Object
-
- net.minecraft.client.audio.PositionedSound
-
- All Implemented Interfaces:
ISound
- Direct Known Subclasses:
MovingSound,PositionedSoundRecord
public abstract class PositionedSound extends java.lang.Object implements ISound
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.minecraft.client.audio.ISound
ISound.AttenuationType
-
-
Field Summary
Fields Modifier and Type Field Description protected ISound.AttenuationTypeattenuationTypeprotected floatpitchprotected ResourceLocationpositionedSoundLocationprotected booleanrepeatprotected intrepeatDelay+ The number of ticks between repeating the soundprotected floatvolumeprotected floatxPosFprotected floatyPosFprotected floatzPosF
-
Constructor Summary
Constructors Modifier Constructor Description protectedPositionedSound(ResourceLocation soundResource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanRepeat()ISound.AttenuationTypegetAttenuationType()floatgetPitch()intgetRepeatDelay()ResourceLocationgetSoundLocation()floatgetVolume()floatgetXPosF()floatgetYPosF()floatgetZPosF()
-
-
-
Field Detail
-
positionedSoundLocation
protected final ResourceLocation positionedSoundLocation
-
volume
protected float volume
-
pitch
protected float pitch
-
xPosF
protected float xPosF
-
yPosF
protected float yPosF
-
zPosF
protected float zPosF
-
repeat
protected boolean repeat
-
repeatDelay
protected int repeatDelay
+ The number of ticks between repeating the sound
-
attenuationType
protected ISound.AttenuationType attenuationType
-
-
Constructor Detail
-
PositionedSound
protected PositionedSound(ResourceLocation soundResource)
-
-
Method Detail
-
getSoundLocation
public ResourceLocation getSoundLocation()
- Specified by:
getSoundLocationin interfaceISound
-
getRepeatDelay
public int getRepeatDelay()
- Specified by:
getRepeatDelayin interfaceISound
-
getAttenuationType
public ISound.AttenuationType getAttenuationType()
- Specified by:
getAttenuationTypein interfaceISound
-
-