Package net.minecraft.util.collection
Class DataPool<E>
- Mappings:
Namespace Name official aub
intermediary net/minecraft/class_6005
named net/minecraft/util/collection/DataPool
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <E> DataPool.Builder<E>
builder()
static <E> com.mojang.serialization.Codec<DataPool<E>>
createCodec
(com.mojang.serialization.Codec<E> dataCodec) static <E> DataPool<E>
empty()
getDataOrEmpty
(Random random) static <E> com.mojang.serialization.Codec<DataPool<E>>
method_39521
(com.mojang.serialization.Codec<E> codec) static <E> DataPool<E>
of
(E object) Methods inherited from class net.minecraft.util.collection.Pool
createCodec, empty, getEntries, getOrEmpty, isEmpty, of, of
-
Constructor Details
-
DataPool
DataPool(List<? extends Weighted.Present<E>> entries) - Mappings:
Namespace Name Mixin selector official <init>
Lauf;<init>(Ljava/util/List;)V
intermediary <init>
Lnet/minecraft/class_6012;<init>(Ljava/util/List;)V
named <init>
Lnet/minecraft/util/collection/Pool;<init>(Ljava/util/List;)V
-
-
Method Details
-
method_39521
public static <E> com.mojang.serialization.Codec<DataPool<E>> method_39521(com.mojang.serialization.Codec<E> codec) - Mappings:
Namespace Name Mixin selector official a
Laub;a(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
intermediary method_39521
Lnet/minecraft/class_6005;method_39521(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
named method_39521
Lnet/minecraft/util/collection/DataPool;method_39521(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
-
createCodec
public static <E> com.mojang.serialization.Codec<DataPool<E>> createCodec(com.mojang.serialization.Codec<E> dataCodec) - Mappings:
Namespace Name Mixin selector official b
Laub;b(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
intermediary method_34972
Lnet/minecraft/class_6005;method_34972(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
named createCodec
Lnet/minecraft/util/collection/DataPool;createCodec(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
-
builder
- Mappings:
Namespace Name Mixin selector official a
Laub;a()Laub$a;
intermediary method_34971
Lnet/minecraft/class_6005;method_34971()Lnet/minecraft/class_6005$class_6006;
named builder
Lnet/minecraft/util/collection/DataPool;builder()Lnet/minecraft/util/collection/DataPool$Builder;
-
empty
- Mappings:
Namespace Name Mixin selector official b
Laub;b()Laub;
intermediary method_38062
Lnet/minecraft/class_6005;method_38062()Lnet/minecraft/class_6005;
named empty
Lnet/minecraft/util/collection/DataPool;empty()Lnet/minecraft/util/collection/DataPool;
-
of
- Mappings:
Namespace Name Mixin selector official a
Laub;a(Ljava/lang/Object;)Laub;
intermediary method_38061
Lnet/minecraft/class_6005;method_38061(Ljava/lang/Object;)Lnet/minecraft/class_6005;
named of
Lnet/minecraft/util/collection/DataPool;of(Ljava/lang/Object;)Lnet/minecraft/util/collection/DataPool;
-
getDataOrEmpty
- Mappings:
Namespace Name Mixin selector official a
Laub;a(Ljava/util/Random;)Ljava/util/Optional;
intermediary method_34973
Lnet/minecraft/class_6005;method_34973(Ljava/util/Random;)Ljava/util/Optional;
named getDataOrEmpty
Lnet/minecraft/util/collection/DataPool;getDataOrEmpty(Ljava/util/Random;)Ljava/util/Optional;
-