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
Modifier and TypeFieldDescriptionprotected ISound.AttenuationType
protected int
protected final ResourceLocation
protected boolean
protected float
protected boolean
protected boolean
protected Sound
protected final SoundCategory
protected float
protected double
protected double
protected double
-
Constructor Summary
ModifierConstructorDescriptionprotected
LocatableSound
(ResourceLocation p_i46534_1_, SoundCategory p_i46534_2_) protected
LocatableSound
(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, wait
Methods 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:
getLocation
in 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:
getAttenuation
in interfaceISound
-
isRelative
public boolean isRelative()- Specified by:
isRelative
in interfaceISound
-
toString
-