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>
- Mappings:
Namespace Name official evn
intermediary net/minecraft/class_1146
named net/minecraft/client/sound/WeightedSoundSet
-
Field Summary
Fields Modifier and Type Field Description private Identifier
id
private Random
random
private List<SoundContainer<Sound>>
sounds
private Text
subtitle
-
Constructor Summary
Constructors Constructor Description WeightedSoundSet(Identifier id, String subtitle)
-
Method Summary
Modifier and Type Method Description void
add(SoundContainer<Sound> soundContainer)
Sound
getSound()
Text
getSubtitle()
int
getWeight()
void
preload(SoundSystem soundSystem)
-
Field Details
-
sounds
- Mappings:
Namespace Name Mixin selector official a
Levn;a:Ljava/util/List;
intermediary field_5600
Lnet/minecraft/class_1146;field_5600:Ljava/util/List;
named sounds
Lnet/minecraft/client/sound/WeightedSoundSet;sounds:Ljava/util/List;
-
random
- Mappings:
Namespace Name Mixin selector official b
Levn;b:Ljava/util/Random;
intermediary field_5601
Lnet/minecraft/class_1146;field_5601:Ljava/util/Random;
named random
Lnet/minecraft/client/sound/WeightedSoundSet;random:Ljava/util/Random;
-
id
- Mappings:
Namespace Name Mixin selector official c
Levn;c:Lwb;
intermediary field_5602
Lnet/minecraft/class_1146;field_5602:Lnet/minecraft/class_2960;
named id
Lnet/minecraft/client/sound/WeightedSoundSet;id:Lnet/minecraft/util/Identifier;
-
subtitle
- Mappings:
Namespace Name Mixin selector official d
Levn;d:Loi;
intermediary field_5599
Lnet/minecraft/class_1146;field_5599:Lnet/minecraft/class_2561;
named subtitle
Lnet/minecraft/client/sound/WeightedSoundSet;subtitle:Lnet/minecraft/text/Text;
-
-
Constructor Details
-
WeightedSoundSet
- Mappings:
Namespace Name Mixin selector official <init>
Levn;<init>(Lwb;Ljava/lang/String;)V
intermediary <init>
Lnet/minecraft/class_1146;<init>(Lnet/minecraft/class_2960;Ljava/lang/String;)V
named <init>
Lnet/minecraft/client/sound/WeightedSoundSet;<init>(Lnet/minecraft/util/Identifier;Ljava/lang/String;)V
-
-
Method Details
-
getWeight
public int getWeight()- Specified by:
getWeight
in interfaceSoundContainer<Sound>
- Mappings:
Namespace Name Mixin selector official e
Levo;e()I
intermediary method_4894
Lnet/minecraft/class_1148;method_4894()I
named getWeight
Lnet/minecraft/client/sound/SoundContainer;getWeight()I
-
getSound
- Specified by:
getSound
in interfaceSoundContainer<Sound>
- Mappings:
Namespace Name Mixin selector official a
Levn;a()Leui;
intermediary method_4887
Lnet/minecraft/class_1146;method_4887()Lnet/minecraft/class_1111;
named getSound
Lnet/minecraft/client/sound/WeightedSoundSet;getSound()Lnet/minecraft/client/sound/Sound;
-
add
- Mappings:
Namespace Name Mixin selector official a
Levn;a(Levo;)V
intermediary method_4885
Lnet/minecraft/class_1146;method_4885(Lnet/minecraft/class_1148;)V
named add
Lnet/minecraft/client/sound/WeightedSoundSet;add(Lnet/minecraft/client/sound/SoundContainer;)V
-
getSubtitle
- Mappings:
Namespace Name Mixin selector official c
Levn;c()Loi;
intermediary method_4886
Lnet/minecraft/class_1146;method_4886()Lnet/minecraft/class_2561;
named getSubtitle
Lnet/minecraft/client/sound/WeightedSoundSet;getSubtitle()Lnet/minecraft/text/Text;
-
preload
- Specified by:
preload
in interfaceSoundContainer<Sound>
- Mappings:
Namespace Name Mixin selector official a
Levo;a(Levj;)V
intermediary method_18188
Lnet/minecraft/class_1148;method_18188(Lnet/minecraft/class_1140;)V
named preload
Lnet/minecraft/client/sound/SoundContainer;preload(Lnet/minecraft/client/sound/SoundSystem;)V
-