Package net.minecraft.client.audio
Class Sound
java.lang.Object
net.minecraft.client.audio.Sound
- All Implemented Interfaces:
ISoundEventAccessor<Sound>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate final ResourceLocationprivate final floatprivate final booleanprivate final booleanprivate final Sound.Typeprivate final floatprivate final int -
Constructor Summary
ConstructorsConstructorDescriptionSound(String p_i49182_1_, float p_i49182_2_, float p_i49182_3_, int p_i49182_4_, Sound.Type p_i49182_5_, boolean p_i49182_6_, boolean p_i49182_7_, int p_i49182_8_) -
Method Summary
Modifier and TypeMethodDescriptionintgetPath()floatgetPitch()getSound()getType()floatintvoidpreloadIfRequired(SoundEngine p_217867_1_) booleanbooleantoString()
-
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_i49182_1_, float p_i49182_2_, float p_i49182_3_, int p_i49182_4_, Sound.Type p_i49182_5_, boolean p_i49182_6_, boolean p_i49182_7_, int p_i49182_8_)
-
-
Method Details
-
getLocation
-
getPath
-
getVolume
public float getVolume() -
getPitch
public float getPitch() -
getWeight
public int getWeight()- Specified by:
getWeightin interfaceISoundEventAccessor<Sound>
-
getSound
- Specified by:
getSoundin interfaceISoundEventAccessor<Sound>
-
preloadIfRequired
- Specified by:
preloadIfRequiredin interfaceISoundEventAccessor<Sound>
-
getType
-
shouldStream
public boolean shouldStream() -
shouldPreload
public boolean shouldPreload() -
getAttenuationDistance
public int getAttenuationDistance() -
toString
-