Class Sound
java.lang.Object
net.minecraft.client.resources.sounds.Sound
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final intprivate final ResourceLocationprivate final SampledFloatprivate final booleanstatic final FileToIdConverterprivate final booleanprivate final Sound.Typeprivate final SampledFloatprivate final int
- 
Constructor SummaryConstructorsConstructorDescriptionSound(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 SummaryModifier and TypeMethodDescriptionintgetPath()getPitch()getSound(RandomSource p_235143_) getType()intvoidpreloadIfRequired(SoundEngine p_119789_) booleanbooleantoString()
- 
Field Details- 
SOUND_LISTER
- 
location
- 
volume
- 
pitch
- 
weightprivate final int weight
- 
type
- 
streamprivate final boolean stream
- 
preloadprivate final boolean preload
- 
attenuationDistanceprivate final int attenuationDistance
 
- 
- 
Constructor Details- 
Soundpublic 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
- 
getWeightpublic int getWeight()
- 
getSound
- 
preloadIfRequired- Specified by:
- preloadIfRequiredin interface- Weighted<Sound>
 
- 
getType
- 
shouldStreampublic boolean shouldStream()
- 
shouldPreloadpublic boolean shouldPreload()
- 
getAttenuationDistancepublic int getAttenuationDistance()
- 
toString
 
-