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

    • sounds

      private final List<SoundContainer<Sound>> sounds
      Mappings:
      Namespace Name Mixin selector
      official a Lgjf;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;
    • subtitle

      @Nullable private final @Nullable Text subtitle
      Mappings:
      Namespace Name Mixin selector
      official b Lgjf;b:Lvf;
      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

      public WeightedSoundSet(Identifier id, @Nullable @Nullable String subtitle)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lgjf;<init>(Lahg;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 interface SoundContainer<Sound>
      Mappings:
      Namespace Name Mixin selector
      official e Lgjg;e()I
      intermediary method_4894 Lnet/minecraft/class_1148;method_4894()I
      named getWeight Lnet/minecraft/client/sound/SoundContainer;getWeight()I
    • getSound

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

      public void add(SoundContainer<Sound> container)
      Mappings:
      Namespace Name Mixin selector
      official a Lgjf;a(Lgjg;)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

      @Nullable public @Nullable Text getSubtitle()
      Mappings:
      Namespace Name Mixin selector
      official a Lgjf;a()Lvf;
      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

      public void preload(SoundSystem soundSystem)
      Specified by:
      preload in interface SoundContainer<Sound>
      Mappings:
      Namespace Name Mixin selector
      official a Lgjg;a(Lgjb;)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