Package net.minecraft.util.collection
Class Pool<E extends Weighted>
java.lang.Object
net.minecraft.util.collection.Pool<E>
- Direct Known Subclasses:
DataPool
- Mappings:
Namespace Name official auw
intermediary net/minecraft/class_6012
named net/minecraft/util/collection/Pool
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateCodec
(com.mojang.serialization.Codec<E> entryCodec) empty()
getOrEmpty
(Random random) boolean
isEmpty()
of
(E[] entries)
-
Field Details
-
totalWeight
private final int totalWeight- Mappings:
Namespace Name Mixin selector official a
Lauw;a:I
intermediary field_29934
Lnet/minecraft/class_6012;field_29934:I
named totalWeight
Lnet/minecraft/util/collection/Pool;totalWeight:I
-
entries
- Mappings:
Namespace Name Mixin selector official b
Lauw;b:Lcom/google/common/collect/ImmutableList;
intermediary field_29935
Lnet/minecraft/class_6012;field_29935:Lcom/google/common/collect/ImmutableList;
named entries
Lnet/minecraft/util/collection/Pool;entries:Lcom/google/common/collect/ImmutableList;
-
-
Constructor Details
-
Pool
- Mappings:
Namespace Name Mixin selector official <init>
Lauw;<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
-
empty
- Mappings:
Namespace Name Mixin selector official c
Lauw;c()Lauw;
intermediary method_34990
Lnet/minecraft/class_6012;method_34990()Lnet/minecraft/class_6012;
named empty
Lnet/minecraft/util/collection/Pool;empty()Lnet/minecraft/util/collection/Pool;
-
of
- Mappings:
Namespace Name Mixin selector official a
Lauw;a([Lauu;)Lauw;
intermediary method_34989
Lnet/minecraft/class_6012;method_34989([Lnet/minecraft/class_6008;)Lnet/minecraft/class_6012;
named of
Lnet/minecraft/util/collection/Pool;of([Lnet/minecraft/util/collection/Weighted;)Lnet/minecraft/util/collection/Pool;
-
of
- Mappings:
Namespace Name Mixin selector official a
Lauw;a(Ljava/util/List;)Lauw;
intermediary method_34988
Lnet/minecraft/class_6012;method_34988(Ljava/util/List;)Lnet/minecraft/class_6012;
named of
Lnet/minecraft/util/collection/Pool;of(Ljava/util/List;)Lnet/minecraft/util/collection/Pool;
-
isEmpty
public boolean isEmpty()- Mappings:
Namespace Name Mixin selector official d
Lauw;d()Z
intermediary method_34993
Lnet/minecraft/class_6012;method_34993()Z
named isEmpty
Lnet/minecraft/util/collection/Pool;isEmpty()Z
-
getOrEmpty
- Mappings:
Namespace Name Mixin selector official b
Lauw;b(Ljava/util/Random;)Ljava/util/Optional;
intermediary method_34992
Lnet/minecraft/class_6012;method_34992(Ljava/util/Random;)Ljava/util/Optional;
named getOrEmpty
Lnet/minecraft/util/collection/Pool;getOrEmpty(Ljava/util/Random;)Ljava/util/Optional;
-
getEntries
- Mappings:
Namespace Name Mixin selector official e
Lauw;e()Ljava/util/List;
intermediary method_34994
Lnet/minecraft/class_6012;method_34994()Ljava/util/List;
named getEntries
Lnet/minecraft/util/collection/Pool;getEntries()Ljava/util/List;
-
createCodec
public static <E extends Weighted> com.mojang.serialization.Codec<Pool<E>> createCodec(com.mojang.serialization.Codec<E> entryCodec) - Mappings:
Namespace Name Mixin selector official c
Lauw;c(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
intermediary method_34991
Lnet/minecraft/class_6012;method_34991(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
named createCodec
Lnet/minecraft/util/collection/Pool;createCodec(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
-