Class WeightedSoundSet

java.lang.Object
net.minecraft.client.sound.WeightedSoundSet
All Implemented Interfaces:
SoundContainer

@Environment(CLIENT) public class WeightedSoundSet extends Object implements SoundContainer
Mappings:
Namespace Name
official czg
intermediary net/minecraft/class_1908
named net/minecraft/client/sound/WeightedSoundSet
  • Field Details

    • sounds

      private final List sounds
      Mappings:
      Namespace Name Mixin selector
      official a Lczg;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 Lczg;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 Lczg;c:Loa;
      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 Lczg;d:Lcxz;
      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 Lczg;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 Lczg;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
      Mappings:
      Namespace Name Mixin selector
      official a Lczm;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
      Mappings:
      Namespace Name Mixin selector
      official b Lczg;b()Lcyz;
      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 soundContainer)
      Mappings:
      Namespace Name Mixin selector
      official a Lczg;a(Lczm;)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 Lczg;c()Loa;
      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 Lczg;d()Lcxz;
      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;