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.AttenuationType
attenuationType
protected float
pitch
protected ResourceLocation
positionedSoundLocation
protected boolean
repeat
protected int
repeatDelay
+ The number of ticks between repeating the soundprotected float
volume
protected float
xPosF
protected float
yPosF
protected float
zPosF
-
Constructor Summary
Constructors Modifier Constructor Description protected
PositionedSound(ResourceLocation soundResource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canRepeat()
ISound.AttenuationType
getAttenuationType()
float
getPitch()
int
getRepeatDelay()
ResourceLocation
getSoundLocation()
float
getVolume()
float
getXPosF()
float
getYPosF()
float
getZPosF()
-
-
-
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:
getSoundLocation
in interfaceISound
-
getRepeatDelay
public int getRepeatDelay()
- Specified by:
getRepeatDelay
in interfaceISound
-
getAttenuationType
public ISound.AttenuationType getAttenuationType()
- Specified by:
getAttenuationType
in interfaceISound
-
-