Package net.minecraft.util.collection
Class Weighting
java.lang.Object
net.minecraft.util.collection.Weighting
- Mappings:
Namespace Name official aqr
intermediary net/minecraft/class_6011
named net/minecraft/util/collection/Weighting
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Weighting
private Weighting()
-
-
Method Details
-
getWeightSum
- Mappings:
Namespace Name Mixin selector official a
Laqr;a(Ljava/util/List;)I
intermediary method_34984
Lnet/minecraft/class_6011;method_34984(Ljava/util/List;)I
named getWeightSum
Lnet/minecraft/util/collection/Weighting;getWeightSum(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 official a
Laqr;a(Ljava/util/Random;Ljava/util/List;I)Ljava/util/Optional;
intermediary method_34987
Lnet/minecraft/class_6011;method_34987(Ljava/util/Random;Ljava/util/List;I)Ljava/util/Optional;
named getRandom
Lnet/minecraft/util/collection/Weighting;getRandom(Ljava/util/Random;Ljava/util/List;I)Ljava/util/Optional;
-
getAt
- Mappings:
Namespace Name Mixin selector official a
Laqr;a(Ljava/util/List;I)Ljava/util/Optional;
intermediary method_34985
Lnet/minecraft/class_6011;method_34985(Ljava/util/List;I)Ljava/util/Optional;
named getAt
Lnet/minecraft/util/collection/Weighting;getAt(Ljava/util/List;I)Ljava/util/Optional;
-
getRandom
- Mappings:
Namespace Name Mixin selector official a
Laqr;a(Ljava/util/Random;Ljava/util/List;)Ljava/util/Optional;
intermediary method_34986
Lnet/minecraft/class_6011;method_34986(Ljava/util/Random;Ljava/util/List;)Ljava/util/Optional;
named getRandom
Lnet/minecraft/util/collection/Weighting;getRandom(Ljava/util/Random;Ljava/util/List;)Ljava/util/Optional;
-