Class Sound
java.lang.Object
net.minecraft.client.resources.sounds.Sound
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate final ResourceLocationprivate final SampledFloatprivate final booleanstatic final FileToIdConverterprivate final booleanprivate final Sound.Typeprivate final SampledFloatprivate final int -
Constructor Summary
ConstructorsConstructorDescriptionSound(String p_235134_, SampledFloat p_235135_, SampledFloat p_235136_, int p_235137_, Sound.Type p_235138_, boolean p_235139_, boolean p_235140_, int p_235141_) -
Method Summary
Modifier and TypeMethodDescriptionintgetPath()getPitch()getSound(RandomSource p_235143_) getType()intvoidpreloadIfRequired(SoundEngine p_119789_) booleanbooleantoString()
-
Field Details
-
SOUND_LISTER
-
location
-
volume
-
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_235134_, SampledFloat p_235135_, SampledFloat p_235136_, int p_235137_, Sound.Type p_235138_, boolean p_235139_, boolean p_235140_, int p_235141_)
-
-
Method Details
-
getLocation
-
getPath
-
getVolume
-
getPitch
-
getWeight
public int getWeight() -
getSound
-
preloadIfRequired
- Specified by:
preloadIfRequiredin interfaceWeighted<Sound>
-
getType
-
shouldStream
public boolean shouldStream() -
shouldPreload
public boolean shouldPreload() -
getAttenuationDistance
public int getAttenuationDistance() -
toString
-