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.AttenuationType
attenuation
protected int
delay
protected ResourceLocation
location
protected boolean
looping
protected float
pitch
protected boolean
priority
protected boolean
relative
protected Sound
sound
protected SoundCategory
source
protected float
volume
protected double
x
protected double
y
protected double
z
-
Constructor Summary
Constructors Modifier Constructor Description protected
LocatableSound(ResourceLocation p_i46534_1_, SoundCategory p_i46534_2_)
protected
LocatableSound(SoundEvent p_i46533_1_, SoundCategory p_i46533_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ISound.AttenuationType
getAttenuation()
int
getDelay()
ResourceLocation
getLocation()
float
getPitch()
Sound
getSound()
SoundCategory
getSource()
float
getVolume()
double
getX()
double
getY()
double
getZ()
boolean
isLooping()
boolean
isRelative()
SoundEventAccessor
resolve(SoundHandler p_184366_1_)
java.lang.String
toString()
-
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:
getLocation
in interfaceISound
-
resolve
public SoundEventAccessor resolve(SoundHandler p_184366_1_)
-
getSource
public SoundCategory getSource()
-
getAttenuation
public ISound.AttenuationType getAttenuation()
- Specified by:
getAttenuation
in interfaceISound
-
isRelative
public boolean isRelative()
- Specified by:
isRelative
in interfaceISound
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-