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

    • sounds

      private final List<SoundContainer<Sound>> sounds
      Mappings:
      Namespace Name Mixin selector
      official a Lbpy;a:Ljava/util/List;
      intermediary field_8206 Lnet/minecraft/class_1908;field_8206:Ljava/util/List;
      named sounds Lnet/minecraft/client/sound/WeightedSoundSet;sounds:Ljava/util/List;
    • random

      private final Random random
      Mappings:
      Namespace Name Mixin selector
      official b Lbpy;b:Ljava/util/Random;
      intermediary field_8207 Lnet/minecraft/class_1908;field_8207:Ljava/util/Random;
      named random Lnet/minecraft/client/sound/WeightedSoundSet;random:Ljava/util/Random;
    • field_8208

      private final Identifier field_8208
      Mappings:
      Namespace Name Mixin selector
      official c Lbpy;c:Ljy;
      intermediary field_8208 Lnet/minecraft/class_1908;field_8208:Lnet/minecraft/class_1653;
      named field_8208 Lnet/minecraft/client/sound/WeightedSoundSet;field_8208:Lnet/minecraft/util/Identifier;
    • field_8209

      private final SoundCategory field_8209
      Mappings:
      Namespace Name Mixin selector
      official d Lbpy;d:Lbpg;
      intermediary field_8209 Lnet/minecraft/class_1908;field_8209:Lnet/minecraft/class_2153;
      named field_8209 Lnet/minecraft/client/sound/WeightedSoundSet;field_8209:Lnet/minecraft/client/sound/SoundCategory;
    • field_8210

      private double field_8210
      Mappings:
      Namespace Name Mixin selector
      official e Lbpy;e:D
      intermediary field_8210 Lnet/minecraft/class_1908;field_8210:D
      named field_8210 Lnet/minecraft/client/sound/WeightedSoundSet;field_8210:D
    • field_8211

      private double field_8211
      Mappings:
      Namespace Name Mixin selector
      official f Lbpy;f:D
      intermediary field_8211 Lnet/minecraft/class_1908;field_8211:D
      named field_8211 Lnet/minecraft/client/sound/WeightedSoundSet;field_8211:D
  • Constructor Details

    • WeightedSoundSet

      public WeightedSoundSet(Identifier identifier, double double2, double double3, SoundCategory soundCategory)
  • Method Details

    • getWeight

      public int getWeight()
      Specified by:
      getWeight in interface SoundContainer<Sound>
      Mappings:
      Namespace Name Mixin selector
      official a Lbqb;a()I
      intermediary method_7136 Lnet/minecraft/class_1914;method_7136()I
      named getWeight Lnet/minecraft/client/sound/SoundContainer;getWeight()I
    • getSound

      public Sound getSound()
      Specified by:
      getSound in interface SoundContainer<Sound>
      Mappings:
      Namespace Name Mixin selector
      official b Lbpy;b()Lbpw;
      intermediary method_7116 Lnet/minecraft/class_1908;method_7116()Lnet/minecraft/class_621;
      named getSound Lnet/minecraft/client/sound/WeightedSoundSet;getSound()Lnet/minecraft/client/sound/Sound;
    • add

      public void add(SoundContainer<Sound> soundContainer)
      Mappings:
      Namespace Name Mixin selector
      official a Lbpy;a(Lbqb;)V
      intermediary method_7115 Lnet/minecraft/class_1908;method_7115(Lnet/minecraft/class_1914;)V
      named add Lnet/minecraft/client/sound/WeightedSoundSet;add(Lnet/minecraft/client/sound/SoundContainer;)V
    • getIdentifier

      public Identifier getIdentifier()
      Mappings:
      Namespace Name Mixin selector
      official c Lbpy;c()Ljy;
      intermediary method_7117 Lnet/minecraft/class_1908;method_7117()Lnet/minecraft/class_1653;
      named getIdentifier Lnet/minecraft/client/sound/WeightedSoundSet;getIdentifier()Lnet/minecraft/util/Identifier;
    • method_7118

      public SoundCategory method_7118()
      Mappings:
      Namespace Name Mixin selector
      official d Lbpy;d()Lbpg;
      intermediary method_7118 Lnet/minecraft/class_1908;method_7118()Lnet/minecraft/class_2153;
      named method_7118 Lnet/minecraft/client/sound/WeightedSoundSet;method_7118()Lnet/minecraft/client/sound/SoundCategory;