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
named net/minecraft/client/sound/WeightedSoundSet
intermediary net/minecraft/class_1146
official hgn
  • Field Details

    • sounds

      private final List<SoundContainer<Sound>> sounds
      Mappings:
      Namespace Name Mixin selector
      named sounds Lnet/minecraft/client/sound/WeightedSoundSet;sounds:Ljava/util/List;
      intermediary field_5600 Lnet/minecraft/class_1146;field_5600:Ljava/util/List;
      official a Lhgn;a:Ljava/util/List;
    • subtitle

      @Nullable private final @Nullable Text subtitle
      Mappings:
      Namespace Name Mixin selector
      named subtitle Lnet/minecraft/client/sound/WeightedSoundSet;subtitle:Lnet/minecraft/text/Text;
      intermediary field_5599 Lnet/minecraft/class_1146;field_5599:Lnet/minecraft/class_2561;
      official b Lhgn;b:Lxv;
  • Constructor Details

    • WeightedSoundSet

      public WeightedSoundSet(Identifier id, @Nullable @Nullable String subtitle)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/sound/WeightedSoundSet;<init>(Lnet/minecraft/util/Identifier;Ljava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_1146;<init>(Lnet/minecraft/class_2960;Ljava/lang/String;)V
      official <init> Lhgn;<init>(Lalz;Ljava/lang/String;)V
  • Method Details

    • getWeight

      public int getWeight()
      Specified by:
      getWeight in interface SoundContainer<Sound>
      Mappings:
      Namespace Name Mixin selector
      named getWeight Lnet/minecraft/client/sound/SoundContainer;getWeight()I
      intermediary method_4894 Lnet/minecraft/class_1148;method_4894()I
      official e Lhgo;e()I
    • getSound

      public Sound getSound(Random random)
      Specified by:
      getSound in interface SoundContainer<Sound>
      Mappings:
      Namespace Name Mixin selector
      named getSound Lnet/minecraft/client/sound/WeightedSoundSet;getSound(Lnet/minecraft/util/math/random/Random;)Lnet/minecraft/client/sound/Sound;
      intermediary method_4887 Lnet/minecraft/class_1146;method_4887(Lnet/minecraft/class_5819;)Lnet/minecraft/class_1111;
      official a Lhgn;a(Lbam;)Lhfe;
    • add

      public void add(SoundContainer<Sound> container)
      Mappings:
      Namespace Name Mixin selector
      named add Lnet/minecraft/client/sound/WeightedSoundSet;add(Lnet/minecraft/client/sound/SoundContainer;)V
      intermediary method_4885 Lnet/minecraft/class_1146;method_4885(Lnet/minecraft/class_1148;)V
      official a Lhgn;a(Lhgo;)V
    • getSubtitle

      @Nullable public @Nullable Text getSubtitle()
      Mappings:
      Namespace Name Mixin selector
      named getSubtitle Lnet/minecraft/client/sound/WeightedSoundSet;getSubtitle()Lnet/minecraft/text/Text;
      intermediary method_4886 Lnet/minecraft/class_1146;method_4886()Lnet/minecraft/class_2561;
      official a Lhgn;a()Lxv;
    • preload

      public void preload(SoundSystem soundSystem)
      Specified by:
      preload in interface SoundContainer<Sound>
      Mappings:
      Namespace Name Mixin selector
      named preload Lnet/minecraft/client/sound/SoundContainer;preload(Lnet/minecraft/client/sound/SoundSystem;)V
      intermediary method_18188 Lnet/minecraft/class_1148;method_18188(Lnet/minecraft/class_1140;)V
      official a Lhgo;a(Lhgj;)V