Package net.minecraft.util.collection
Class WeightedList<U>
java.lang.Object
net.minecraft.util.collection.WeightedList<U>
- All Implemented Interfaces:
Iterable<U>
- Mappings:
Namespace Name named net/minecraft/util/collection/WeightedList
intermediary net/minecraft/class_6032
official cah
-
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) iterator()
shuffle()
stream()
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
entries
- Mappings:
Namespace Name Mixin selector named entries
Lnet/minecraft/util/collection/WeightedList;entries:Ljava/util/List;
intermediary field_30169
Lnet/minecraft/class_6032;field_30169:Ljava/util/List;
official a
Lcah;a:Ljava/util/List;
-
random
- Mappings:
Namespace Name Mixin selector named random
Lnet/minecraft/util/collection/WeightedList;random:Lnet/minecraft/util/math/random/Random;
intermediary field_30170
Lnet/minecraft/class_6032;field_30170:Lnet/minecraft/class_5819;
official b
Lcah;b:Lbam;
-
-
Constructor Details
-
WeightedList
public WeightedList() -
WeightedList
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/util/collection/WeightedList;<init>(Ljava/util/List;)V
intermediary <init>
Lnet/minecraft/class_6032;<init>(Ljava/util/List;)V
official <init>
Lcah;<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 named createCodec
Lnet/minecraft/util/collection/WeightedList;createCodec(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;
official a
Lcah;a(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
-
add
- Mappings:
Namespace Name Mixin selector named add
Lnet/minecraft/util/collection/WeightedList;add(Ljava/lang/Object;I)Lnet/minecraft/util/collection/WeightedList;
intermediary method_35093
Lnet/minecraft/class_6032;method_35093(Ljava/lang/Object;I)Lnet/minecraft/class_6032;
official a
Lcah;a(Ljava/lang/Object;I)Lcah;
-
shuffle
- Mappings:
Namespace Name Mixin selector named shuffle
Lnet/minecraft/util/collection/WeightedList;shuffle()Lnet/minecraft/util/collection/WeightedList;
intermediary method_35088
Lnet/minecraft/class_6032;method_35088()Lnet/minecraft/class_6032;
official a
Lcah;a()Lcah;
-
stream
- Mappings:
Namespace Name Mixin selector named stream
Lnet/minecraft/util/collection/WeightedList;stream()Ljava/util/stream/Stream;
intermediary method_35094
Lnet/minecraft/class_6032;method_35094()Ljava/util/stream/Stream;
official b
Lcah;b()Ljava/util/stream/Stream;
-
iterator
-
toString
-