Class Sound
java.lang.Object
net.minecraft.client.resources.sounds.Sound
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private ResourceLocation
private float
private boolean
private boolean
private Sound.Type
private float
private int
-
Constructor Summary
ConstructorDescriptionSound(String p_119779_, float p_119780_, float p_119781_, int p_119782_, Sound.Type p_119783_, boolean p_119784_, boolean p_119785_, int p_119786_)
-
Method Summary
Modifier and TypeMethodDescriptionint
getPath()
float
getPitch()
getSound()
getType()
float
int
void
preloadIfRequired(SoundEngine p_119789_)
boolean
boolean
toString()
-
Field Details
-
location
-
volume
private final float volume -
pitch
private final float pitch -
weight
private final int weight -
type
-
stream
private final boolean stream -
preload
private final boolean preload -
attenuationDistance
private final int attenuationDistance
-
-
Constructor Details
-
Sound
public Sound(String p_119779_, float p_119780_, float p_119781_, int p_119782_, Sound.Type p_119783_, boolean p_119784_, boolean p_119785_, int p_119786_)
-
-
Method Details
-
getLocation
-
getPath
-
getVolume
public float getVolume() -
getPitch
public float getPitch() -
getWeight
public int getWeight() -
getSound
-
preloadIfRequired
- Specified by:
preloadIfRequired
in interfaceWeighted<Sound>
-
getType
-
shouldStream
public boolean shouldStream() -
shouldPreload
public boolean shouldPreload() -
getAttenuationDistance
public int getAttenuationDistance() -
toString
-