Package net.minecraft.util.collection
Class Weighting
java.lang.Object
net.minecraft.util.collection.Weighting
- Mappings:
Namespace Name named net/minecraft/util/collection/Weighting
intermediary net/minecraft/class_6011
official bpj
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Weighting
private Weighting()
-
-
Method Details
-
getWeightSum
- Mappings:
Namespace Name Mixin selector named getWeightSum
Lnet/minecraft/util/collection/Weighting;getWeightSum(Ljava/util/List;)I
intermediary method_34984
Lnet/minecraft/class_6011;method_34984(Ljava/util/List;)I
official a
Lbpj;a(Ljava/util/List;)I
-
getRandom
public static <T extends Weighted> Optional<T> getRandom(Random random, List<T> pool, int totalWeight) - Mappings:
Namespace Name Mixin selector named getRandom
Lnet/minecraft/util/collection/Weighting;getRandom(Lnet/minecraft/util/math/random/Random;Ljava/util/List;I)Ljava/util/Optional;
intermediary method_34987
Lnet/minecraft/class_6011;method_34987(Lnet/minecraft/class_5819;Ljava/util/List;I)Ljava/util/Optional;
official a
Lbpj;a(Lazh;Ljava/util/List;I)Ljava/util/Optional;
-
getAt
- Mappings:
Namespace Name Mixin selector named getAt
Lnet/minecraft/util/collection/Weighting;getAt(Ljava/util/List;I)Ljava/util/Optional;
intermediary method_34985
Lnet/minecraft/class_6011;method_34985(Ljava/util/List;I)Ljava/util/Optional;
official a
Lbpj;a(Ljava/util/List;I)Ljava/util/Optional;
-
getRandom
- Mappings:
Namespace Name Mixin selector named getRandom
Lnet/minecraft/util/collection/Weighting;getRandom(Lnet/minecraft/util/math/random/Random;Ljava/util/List;)Ljava/util/Optional;
intermediary method_34986
Lnet/minecraft/class_6011;method_34986(Lnet/minecraft/class_5819;Ljava/util/List;)Ljava/util/Optional;
official a
Lbpj;a(Lazh;Ljava/util/List;)Ljava/util/Optional;
-