Package net.minecraft.client.sound
Class WeightedSoundSet
java.lang.Object
net.minecraft.client.sound.WeightedSoundSet
- All Implemented Interfaces:
SoundContainer<Sound>
@Environment(CLIENT) public class WeightedSoundSet extends Object implements SoundContainer<Sound>
-
Field Summary
Fields Modifier and Type Field Description private Identifieridprivate Randomrandomprivate List<SoundContainer<Sound>>soundsprivate Textsubtitle -
Constructor Summary
Constructors Constructor Description WeightedSoundSet(Identifier id, String subtitle) -
Method Summary
Modifier and Type Method Description voidadd(SoundContainer<Sound> soundContainer)SoundgetSound()TextgetSubtitle()intgetWeight()voidpreload(SoundSystem soundSystem)
-
Field Details
-
sounds
-
random
-
id
-
subtitle
-
-
Constructor Details
-
WeightedSoundSet
-
-
Method Details
-
getWeight
public int getWeight()- Specified by:
getWeightin interfaceSoundContainer<Sound>
-
getSound
- Specified by:
getSoundin interfaceSoundContainer<Sound>
-
add
-
getSubtitle
-
preload
- Specified by:
preloadin interfaceSoundContainer<Sound>
-