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
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.audio.ISound
ISound.AttenuationType -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ISound.AttenuationTypeprotected intprotected final ResourceLocationprotected booleanprotected floatprotected booleanprotected booleanprotected Soundprotected final SoundCategoryprotected floatprotected doubleprotected doubleprotected double -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedLocatableSound(ResourceLocation p_i46534_1_, SoundCategory p_i46534_2_) protectedLocatableSound(SoundEvent p_i46533_1_, SoundCategory p_i46533_2_) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.client.audio.ISound
canPlaySound, canStartSilent, getStream
-
Field Details
-
sound
-
source
-
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
-
priority
protected boolean priority -
relative
protected boolean relative
-
-
Constructor Details
-
LocatableSound
-
LocatableSound
-
-
Method Details
-
getLocation
- Specified by:
getLocationin interfaceISound
-
resolve
-
getSound
-
getSource
-
isLooping
public boolean isLooping() -
getDelay
public int getDelay() -
getVolume
public float getVolume() -
getPitch
public float getPitch() -
getX
public double getX() -
getY
public double getY() -
getZ
public double getZ() -
getAttenuation
- Specified by:
getAttenuationin interfaceISound
-
isRelative
public boolean isRelative()- Specified by:
isRelativein interfaceISound
-
toString
-