类 WeightedSoundSet
- java.lang.Object
-
- net.minecraft.client.sound.WeightedSoundSet
-
- 所有已实现的接口:
SoundContainer<Sound>
@Environment(CLIENT) public class WeightedSoundSet extends Object implements SoundContainer<Sound>
- Mappings:
Namespace Name official ezvintermediary net/minecraft/class_1146named net/minecraft/client/sound/WeightedSoundSet
-
-
构造器概要
构造器 构造器 说明 WeightedSoundSet(Identifier id, @Nullable String subtitle)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidadd(SoundContainer<Sound> soundContainer)SoundgetSound()@Nullable TextgetSubtitle()intgetWeight()Identifiermethod_35812()voidpreload(SoundSystem soundSystem)
-
-
-
字段详细资料
-
sounds
private final List<SoundContainer<Sound>> sounds
- Mappings:
Namespace Name Mixin selector official aLezv;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
private final Random random
- Mappings:
Namespace Name Mixin selector official bLezv;b:Ljava/util/Random;intermediary field_5601Lnet/minecraft/class_1146;field_5601:Ljava/util/Random;named randomLnet/minecraft/client/sound/WeightedSoundSet;random:Ljava/util/Random;
-
id
private final Identifier id
- Mappings:
Namespace Name Mixin selector official cLezv;c:Lwp;intermediary field_5602Lnet/minecraft/class_1146;field_5602:Lnet/minecraft/class_2960;named idLnet/minecraft/client/sound/WeightedSoundSet;id:Lnet/minecraft/util/Identifier;
-
subtitle
@Nullable private final @Nullable Text subtitle
- Mappings:
Namespace Name Mixin selector official dLezv;d:Lon;intermediary field_5599Lnet/minecraft/class_1146;field_5599:Lnet/minecraft/class_2561;named subtitleLnet/minecraft/client/sound/WeightedSoundSet;subtitle:Lnet/minecraft/text/Text;
-
-
构造器详细资料
-
WeightedSoundSet
public WeightedSoundSet(Identifier id, @Nullable @Nullable String subtitle)
- Mappings:
Namespace Name Mixin selector official <init>Lezv;<init>(Lwp;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
-
-
方法详细资料
-
getWeight
public int getWeight()
- 指定者:
getWeight在接口中SoundContainer<Sound>- Mappings:
Namespace Name Mixin selector official eLezw;e()Iintermediary method_4894Lnet/minecraft/class_1148;method_4894()Inamed getWeightLnet/minecraft/client/sound/SoundContainer;getWeight()I
-
getSound
public Sound getSound()
- 指定者:
getSound在接口中SoundContainer<Sound>- Mappings:
Namespace Name Mixin selector official aLezv;a()Leyr;intermediary method_4887Lnet/minecraft/class_1146;method_4887()Lnet/minecraft/class_1111;named getSoundLnet/minecraft/client/sound/WeightedSoundSet;getSound()Lnet/minecraft/client/sound/Sound;
-
add
public void add(SoundContainer<Sound> soundContainer)
- Mappings:
Namespace Name Mixin selector official aLezv;a(Lezw;)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
-
method_35812
public Identifier method_35812()
- Mappings:
Namespace Name Mixin selector official bLezv;b()Lwp;intermediary method_35812Lnet/minecraft/class_1146;method_35812()Lnet/minecraft/class_2960;named method_35812Lnet/minecraft/client/sound/WeightedSoundSet;method_35812()Lnet/minecraft/util/Identifier;
-
getSubtitle
@Nullable public @Nullable Text getSubtitle()
- Mappings:
Namespace Name Mixin selector official cLezv;c()Lon;intermediary method_4886Lnet/minecraft/class_1146;method_4886()Lnet/minecraft/class_2561;named getSubtitleLnet/minecraft/client/sound/WeightedSoundSet;getSubtitle()Lnet/minecraft/text/Text;
-
preload
public void preload(SoundSystem soundSystem)
- 指定者:
preload在接口中SoundContainer<Sound>- Mappings:
Namespace Name Mixin selector official aLezw;a(Lezr;)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
-
-