Package net.minecraft.client.sound
Class WeightedSoundSet
java.lang.Object
net.minecraft.client.sound.WeightedSoundSet
- All Implemented Interfaces:
SoundContainer<Sound>
- Mappings:
Namespace Name official fkuintermediary net/minecraft/class_1146named net/minecraft/client/sound/WeightedSoundSet
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Identifierprivate final AbstractRandomprivate final List<SoundContainer<Sound>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(SoundContainer<Sound> container) getId()getSound(AbstractRandom abstractRandom) intvoidpreload(SoundSystem soundSystem)
-
Field Details
-
sounds
- Mappings:
Namespace Name Mixin selector official aLfku;a:Ljava/util/List;intermediary field_5600Lnet/minecraft/class_1146;field_5600:Ljava/util/List;named soundsLnet/minecraft/client/sound/WeightedSoundSet;sounds:Ljava/util/List;
-
random
- Mappings:
Namespace Name Mixin selector official bLfku;b:Lalf;intermediary field_5601Lnet/minecraft/class_1146;field_5601:Lnet/minecraft/class_5819;named randomLnet/minecraft/client/sound/WeightedSoundSet;random:Lnet/minecraft/util/math/random/AbstractRandom;
-
id
- Mappings:
Namespace Name Mixin selector official cLfku;c:Lzy;intermediary field_5602Lnet/minecraft/class_1146;field_5602:Lnet/minecraft/class_2960;named idLnet/minecraft/client/sound/WeightedSoundSet;id:Lnet/minecraft/util/Identifier;
-
subtitle
- Mappings:
Namespace Name Mixin selector official dLfku;d:Lrf;intermediary field_5599Lnet/minecraft/class_1146;field_5599:Lnet/minecraft/class_2561;named subtitleLnet/minecraft/client/sound/WeightedSoundSet;subtitle:Lnet/minecraft/text/Text;
-
-
Constructor Details
-
WeightedSoundSet
- Mappings:
Namespace Name Mixin selector official <init>Lfku;<init>(Lzy;Ljava/lang/String;)Vintermediary <init>Lnet/minecraft/class_1146;<init>(Lnet/minecraft/class_2960;Ljava/lang/String;)Vnamed <init>Lnet/minecraft/client/sound/WeightedSoundSet;<init>(Lnet/minecraft/util/Identifier;Ljava/lang/String;)V
-
-
Method Details
-
getWeight
public int getWeight()- Specified by:
getWeightin interfaceSoundContainer<Sound>- Mappings:
Namespace Name Mixin selector official eLfkv;e()Iintermediary method_4894Lnet/minecraft/class_1148;method_4894()Inamed getWeightLnet/minecraft/client/sound/SoundContainer;getWeight()I
-
getSound
- Specified by:
getSoundin interfaceSoundContainer<Sound>- Mappings:
Namespace Name Mixin selector official aLfku;a(Lalf;)Lfjm;intermediary method_4887Lnet/minecraft/class_1146;method_4887(Lnet/minecraft/class_5819;)Lnet/minecraft/class_1111;named getSoundLnet/minecraft/client/sound/WeightedSoundSet;getSound(Lnet/minecraft/util/math/random/AbstractRandom;)Lnet/minecraft/client/sound/Sound;
-
add
- Mappings:
Namespace Name Mixin selector official aLfku;a(Lfkv;)Vintermediary method_4885Lnet/minecraft/class_1146;method_4885(Lnet/minecraft/class_1148;)Vnamed addLnet/minecraft/client/sound/WeightedSoundSet;add(Lnet/minecraft/client/sound/SoundContainer;)V
-
getId
- Mappings:
Namespace Name Mixin selector official aLfku;a()Lzy;intermediary method_35812Lnet/minecraft/class_1146;method_35812()Lnet/minecraft/class_2960;named getIdLnet/minecraft/client/sound/WeightedSoundSet;getId()Lnet/minecraft/util/Identifier;
-
getSubtitle
- Mappings:
Namespace Name Mixin selector official bLfku;b()Lrf;intermediary method_4886Lnet/minecraft/class_1146;method_4886()Lnet/minecraft/class_2561;named getSubtitleLnet/minecraft/client/sound/WeightedSoundSet;getSubtitle()Lnet/minecraft/text/Text;
-
preload
- Specified by:
preloadin interfaceSoundContainer<Sound>- Mappings:
Namespace Name Mixin selector official aLfkv;a(Lfkq;)Vintermediary method_18188Lnet/minecraft/class_1148;method_18188(Lnet/minecraft/class_1140;)Vnamed preloadLnet/minecraft/client/sound/SoundContainer;preload(Lnet/minecraft/client/sound/SoundSystem;)V
-