Package net.minecraft.client.sound
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 bpyintermediary net/minecraft/class_1327named net/minecraft/client/sound/WeightedSoundSet
-
Field Summary
Fields Modifier and Type Field Description private Identifierfield_5511private SoundCategoryfield_5512private doublefield_5513private doublefield_5514private Randomrandomprivate List<SoundContainer<Sound>>sounds -
Constructor Summary
Constructors Constructor Description WeightedSoundSet(Identifier identifier, double double2, double double3, SoundCategory soundCategory) -
Method Summary
Modifier and Type Method Description voidadd(SoundContainer<Sound> soundContainer)IdentifiergetIdentifier()SoundgetSound()intgetWeight()SoundCategorymethod_4602()
-
Field Details
-
sounds
- Mappings:
Namespace Name Mixin selector official aLbpy;a:Ljava/util/List;intermediary field_5509Lnet/minecraft/class_1327;field_5509:Ljava/util/List;named soundsLnet/minecraft/client/sound/WeightedSoundSet;sounds:Ljava/util/List;
-
random
- Mappings:
Namespace Name Mixin selector official bLbpy;b:Ljava/util/Random;intermediary field_5510Lnet/minecraft/class_1327;field_5510:Ljava/util/Random;named randomLnet/minecraft/client/sound/WeightedSoundSet;random:Ljava/util/Random;
-
field_5511
- Mappings:
Namespace Name Mixin selector official cLbpy;c:Ljy;intermediary field_5511Lnet/minecraft/class_1327;field_5511:Lnet/minecraft/class_1605;named field_5511Lnet/minecraft/client/sound/WeightedSoundSet;field_5511:Lnet/minecraft/util/Identifier;
-
field_5512
- Mappings:
Namespace Name Mixin selector official dLbpy;d:Lbpg;intermediary field_5512Lnet/minecraft/class_1327;field_5512:Lnet/minecraft/class_1306;named field_5512Lnet/minecraft/client/sound/WeightedSoundSet;field_5512:Lnet/minecraft/client/sound/SoundCategory;
-
field_5513
private double field_5513- Mappings:
Namespace Name Mixin selector official eLbpy;e:Dintermediary field_5513Lnet/minecraft/class_1327;field_5513:Dnamed field_5513Lnet/minecraft/client/sound/WeightedSoundSet;field_5513:D
-
field_5514
private double field_5514- Mappings:
Namespace Name Mixin selector official fLbpy;f:Dintermediary field_5514Lnet/minecraft/class_1327;field_5514:Dnamed field_5514Lnet/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:
getWeightin interfaceSoundContainer<Sound>- Mappings:
Namespace Name Mixin selector official aLbqb;a()Iintermediary method_4621Lnet/minecraft/class_1331;method_4621()Inamed getWeightLnet/minecraft/client/sound/SoundContainer;getWeight()I
-
getSound
- Specified by:
getSoundin interfaceSoundContainer<Sound>- Mappings:
Namespace Name Mixin selector official bLbpy;b()Lbpw;intermediary method_4600Lnet/minecraft/class_1327;method_4600()Lnet/minecraft/class_1324;named getSoundLnet/minecraft/client/sound/WeightedSoundSet;getSound()Lnet/minecraft/client/sound/Sound;
-
add
- Mappings:
Namespace Name Mixin selector official aLbpy;a(Lbqb;)Vintermediary method_4599Lnet/minecraft/class_1327;method_4599(Lnet/minecraft/class_1331;)Vnamed addLnet/minecraft/client/sound/WeightedSoundSet;add(Lnet/minecraft/client/sound/SoundContainer;)V
-
getIdentifier
- Mappings:
Namespace Name Mixin selector official cLbpy;c()Ljy;intermediary method_4601Lnet/minecraft/class_1327;method_4601()Lnet/minecraft/class_1605;named getIdentifierLnet/minecraft/client/sound/WeightedSoundSet;getIdentifier()Lnet/minecraft/util/Identifier;
-
method_4602
- Mappings:
Namespace Name Mixin selector official dLbpy;d()Lbpg;intermediary method_4602Lnet/minecraft/class_1327;method_4602()Lnet/minecraft/class_1306;named method_4602Lnet/minecraft/client/sound/WeightedSoundSet;method_4602()Lnet/minecraft/client/sound/SoundCategory;
-