Package net.minecraft.client.audio
Class LocatableSound
- java.lang.Object
-
- net.minecraft.client.audio.LocatableSound
-
- All Implemented Interfaces:
ISound
- Direct Known Subclasses:
AudioStreamTest.SineSound,SimpleSound,TickableSound
public abstract class LocatableSound 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.AttenuationTypeattenuationprotected intdelayprotected ResourceLocationlocationprotected booleanloopingprotected floatpitchprotected booleanpriorityprotected booleanrelativeprotected Soundsoundprotected SoundCategorysourceprotected floatvolumeprotected doublexprotected doubleyprotected doublez
-
Constructor Summary
Constructors Modifier Constructor Description protectedLocatableSound(ResourceLocation p_i46534_1_, SoundCategory p_i46534_2_)protectedLocatableSound(SoundEvent p_i46533_1_, SoundCategory p_i46533_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ISound.AttenuationTypegetAttenuation()intgetDelay()ResourceLocationgetLocation()floatgetPitch()SoundgetSound()SoundCategorygetSource()floatgetVolume()doublegetX()doublegetY()doublegetZ()booleanisLooping()booleanisRelative()SoundEventAccessorresolve(SoundHandler p_184366_1_)java.lang.StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.minecraft.client.audio.ISound
canPlaySound, canStartSilent, getStream
-
-
-
-
Field Detail
-
sound
protected Sound sound
-
source
protected final SoundCategory source
-
location
protected final ResourceLocation 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 delay
-
attenuation
protected ISound.AttenuationType attenuation
-
priority
protected boolean priority
-
relative
protected boolean relative
-
-
Constructor Detail
-
LocatableSound
protected LocatableSound(SoundEvent p_i46533_1_, SoundCategory p_i46533_2_)
-
LocatableSound
protected LocatableSound(ResourceLocation p_i46534_1_, SoundCategory p_i46534_2_)
-
-
Method Detail
-
getLocation
public ResourceLocation getLocation()
- Specified by:
getLocationin interfaceISound
-
resolve
public SoundEventAccessor resolve(SoundHandler p_184366_1_)
-
getSource
public SoundCategory getSource()
-
getAttenuation
public ISound.AttenuationType getAttenuation()
- Specified by:
getAttenuationin interfaceISound
-
isRelative
public boolean isRelative()
- Specified by:
isRelativein interfaceISound
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-