Package net.minecraft.util.collection
Class WeightedList<U>
java.lang.Object
net.minecraft.util.collection.WeightedList<U>
- Mappings:
Namespace Name official bas
intermediary net/minecraft/class_6032
named net/minecraft/util/collection/WeightedList
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <U> com.mojang.serialization.Codec<WeightedList<U>>
createCodec
(com.mojang.serialization.Codec<U> codec) shuffle()
stream()
toString()
-
Field Details
-
entries
- Mappings:
Namespace Name Mixin selector official a
Lbas;a:Ljava/util/List;
intermediary field_30169
Lnet/minecraft/class_6032;field_30169:Ljava/util/List;
named entries
Lnet/minecraft/util/collection/WeightedList;entries:Ljava/util/List;
-
random
- Mappings:
Namespace Name Mixin selector official b
Lbas;b:Ljava/util/Random;
intermediary field_30170
Lnet/minecraft/class_6032;field_30170:Ljava/util/Random;
named random
Lnet/minecraft/util/collection/WeightedList;random:Ljava/util/Random;
-
-
Constructor Details
-
WeightedList
public WeightedList() -
WeightedList
- Mappings:
Namespace Name Mixin selector official <init>
Lbas;<init>(Ljava/util/List;)V
intermediary <init>
Lnet/minecraft/class_6032;<init>(Ljava/util/List;)V
named <init>
Lnet/minecraft/util/collection/WeightedList;<init>(Ljava/util/List;)V
-
-
Method Details
-
createCodec
public static <U> com.mojang.serialization.Codec<WeightedList<U>> createCodec(com.mojang.serialization.Codec<U> codec) - Mappings:
Namespace Name Mixin selector official a
Lbas;a(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
intermediary method_35091
Lnet/minecraft/class_6032;method_35091(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
named createCodec
Lnet/minecraft/util/collection/WeightedList;createCodec(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
-
add
- Mappings:
Namespace Name Mixin selector official a
Lbas;a(Ljava/lang/Object;I)Lbas;
intermediary method_35093
Lnet/minecraft/class_6032;method_35093(Ljava/lang/Object;I)Lnet/minecraft/class_6032;
named add
Lnet/minecraft/util/collection/WeightedList;add(Ljava/lang/Object;I)Lnet/minecraft/util/collection/WeightedList;
-
shuffle
- Mappings:
Namespace Name Mixin selector official a
Lbas;a()Lbas;
intermediary method_35088
Lnet/minecraft/class_6032;method_35088()Lnet/minecraft/class_6032;
named shuffle
Lnet/minecraft/util/collection/WeightedList;shuffle()Lnet/minecraft/util/collection/WeightedList;
-
stream
- Mappings:
Namespace Name Mixin selector official b
Lbas;b()Ljava/util/stream/Stream;
intermediary method_35094
Lnet/minecraft/class_6032;method_35094()Ljava/util/stream/Stream;
named stream
Lnet/minecraft/util/collection/WeightedList;stream()Ljava/util/stream/Stream;
-
toString
-