Package net.minecraft.util.collection
Class DataPool<E>
- Mappings:
Namespace Name named net/minecraft/util/collection/DataPool
intermediary net/minecraft/class_6005
official bpf
-
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> com.mojang.serialization.Codec
<DataPool<E>> createEmptyAllowedCodec
(com.mojang.serialization.Codec<E> dataCodec) static <E> DataPool
<E> empty()
getDataOrEmpty
(Random random) static <E> DataPool
<E> of
(E object) Methods inherited from class net.minecraft.util.collection.Pool
createCodec, empty, equals, getEntries, getOrEmpty, hashCode, isEmpty, of, of
-
Constructor Details
-
DataPool
DataPool(List<? extends Weighted.Present<E>> entries) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/util/collection/Pool;<init>(Ljava/util/List;)V
intermediary <init>
Lnet/minecraft/class_6012;<init>(Ljava/util/List;)V
official <init>
Lbpj;<init>(Ljava/util/List;)V
-
-
Method Details
-
createEmptyAllowedCodec
public static <E> com.mojang.serialization.Codec<DataPool<E>> createEmptyAllowedCodec(com.mojang.serialization.Codec<E> dataCodec) - Mappings:
Namespace Name Mixin selector named createEmptyAllowedCodec
Lnet/minecraft/util/collection/DataPool;createEmptyAllowedCodec(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;
official a
Lbpf;a(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 named createCodec
Lnet/minecraft/util/collection/DataPool;createCodec(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;
official b
Lbpf;b(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
-
builder
- Mappings:
Namespace Name Mixin selector named builder
Lnet/minecraft/util/collection/DataPool;builder()Lnet/minecraft/util/collection/DataPool$Builder;
intermediary method_34971
Lnet/minecraft/class_6005;method_34971()Lnet/minecraft/class_6005$class_6006;
official a
Lbpf;a()Lbpf$a;
-
empty
- Mappings:
Namespace Name Mixin selector named empty
Lnet/minecraft/util/collection/DataPool;empty()Lnet/minecraft/util/collection/DataPool;
intermediary method_38062
Lnet/minecraft/class_6005;method_38062()Lnet/minecraft/class_6005;
official b
Lbpf;b()Lbpf;
-
of
- Mappings:
Namespace Name Mixin selector named of
Lnet/minecraft/util/collection/DataPool;of(Ljava/lang/Object;)Lnet/minecraft/util/collection/DataPool;
intermediary method_38061
Lnet/minecraft/class_6005;method_38061(Ljava/lang/Object;)Lnet/minecraft/class_6005;
official a
Lbpf;a(Ljava/lang/Object;)Lbpf;
-
getDataOrEmpty
- Mappings:
Namespace Name Mixin selector named getDataOrEmpty
Lnet/minecraft/util/collection/DataPool;getDataOrEmpty(Lnet/minecraft/util/math/random/Random;)Ljava/util/Optional;
intermediary method_34973
Lnet/minecraft/class_6005;method_34973(Lnet/minecraft/class_5819;)Ljava/util/Optional;
official a
Lbpf;a(Lazh;)Ljava/util/Optional;
-