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_1327
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_5509 Lnet/minecraft/class_1327;field_5509: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_5510 Lnet/minecraft/class_1327;field_5510:Ljava/util/Random;
      named random Lnet/minecraft/client/sound/WeightedSoundSet;random:Ljava/util/Random;
    • field_5511

      private final Identifier field_5511
      Mappings:
      Namespace Name Mixin selector
      official c Lbpy;c:Ljy;
      intermediary field_5511 Lnet/minecraft/class_1327;field_5511:Lnet/minecraft/class_1605;
      named field_5511 Lnet/minecraft/client/sound/WeightedSoundSet;field_5511:Lnet/minecraft/util/Identifier;
    • field_5512

      private final SoundCategory field_5512
      Mappings:
      Namespace Name Mixin selector
      official d Lbpy;d:Lbpg;
      intermediary field_5512 Lnet/minecraft/class_1327;field_5512:Lnet/minecraft/class_1306;
      named field_5512 Lnet/minecraft/client/sound/WeightedSoundSet;field_5512:Lnet/minecraft/client/sound/SoundCategory;
    • field_5513

      private double field_5513
      Mappings:
      Namespace Name Mixin selector
      official e Lbpy;e:D
      intermediary field_5513 Lnet/minecraft/class_1327;field_5513:D
      named field_5513 Lnet/minecraft/client/sound/WeightedSoundSet;field_5513:D
    • field_5514

      private double field_5514
      Mappings:
      Namespace Name Mixin selector
      official f Lbpy;f:D
      intermediary field_5514 Lnet/minecraft/class_1327;field_5514:D
      named field_5514 Lnet/minecraft/client/sound/WeightedSoundSet;field_5514: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_4621 Lnet/minecraft/class_1331;method_4621()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_4600 Lnet/minecraft/class_1327;method_4600()Lnet/minecraft/class_1324;
      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_4599 Lnet/minecraft/class_1327;method_4599(Lnet/minecraft/class_1331;)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_4601 Lnet/minecraft/class_1327;method_4601()Lnet/minecraft/class_1605;
      named getIdentifier Lnet/minecraft/client/sound/WeightedSoundSet;getIdentifier()Lnet/minecraft/util/Identifier;
    • method_4602

      public SoundCategory method_4602()
      Mappings:
      Namespace Name Mixin selector
      official d Lbpy;d()Lbpg;
      intermediary method_4602 Lnet/minecraft/class_1327;method_4602()Lnet/minecraft/class_1306;
      named method_4602 Lnet/minecraft/client/sound/WeightedSoundSet;method_4602()Lnet/minecraft/client/sound/SoundCategory;