Package net.minecraft.structure.pool
Class StructurePool
java.lang.Object
net.minecraft.structure.pool.StructurePool
- Mappings:
Namespace Name official dsy
intermediary net/minecraft/class_3785
named net/minecraft/structure/pool/StructurePool
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<StructurePool>
private static final int
private final List<com.mojang.datafixers.util.Pair<StructurePoolElement,
Integer>> private final ObjectArrayList<StructurePoolElement>
private final RegistryEntry<StructurePool>
private static final MutableObject<com.mojang.serialization.Codec<RegistryEntry<StructurePool>>>
private int
static final com.mojang.serialization.Codec<RegistryEntry<StructurePool>>
-
Constructor Summary
ConstructorDescriptionStructurePool
(RegistryEntry<StructurePool> fallback, List<com.mojang.datafixers.util.Pair<Function<StructurePool.Projection, ? extends StructurePoolElement>, Integer>> elementCountsByGetters, StructurePool.Projection projection) StructurePool
(RegistryEntry<StructurePool> fallback, List<com.mojang.datafixers.util.Pair<StructurePoolElement, Integer>> elementCounts) -
Method Summary
Modifier and TypeMethodDescriptionint
getElementIndicesInRandomOrder
(Random random) int
getHighestY
(StructureTemplateManager structureTemplateManager) getRandomElement
(Random random)
-
Field Details
-
DEFAULT_Y
private static final int DEFAULT_Y- See Also:
- Mappings:
Namespace Name Mixin selector official c
Ldsy;c:I
intermediary field_31523
Lnet/minecraft/class_3785;field_31523:I
named DEFAULT_Y
Lnet/minecraft/structure/pool/StructurePool;DEFAULT_Y:I
-
FALLBACK
private static final MutableObject<com.mojang.serialization.Codec<RegistryEntry<StructurePool>>> FALLBACK- Mappings:
Namespace Name Mixin selector official d
Ldsy;d:Lorg/apache/commons/lang3/mutable/MutableObject;
intermediary field_40925
Lnet/minecraft/class_3785;field_40925:Lorg/apache/commons/lang3/mutable/MutableObject;
named FALLBACK
Lnet/minecraft/structure/pool/StructurePool;FALLBACK:Lorg/apache/commons/lang3/mutable/MutableObject;
-
CODEC
- Mappings:
Namespace Name Mixin selector official a
Ldsy;a:Lcom/mojang/serialization/Codec;
intermediary field_25853
Lnet/minecraft/class_3785;field_25853:Lcom/mojang/serialization/Codec;
named CODEC
Lnet/minecraft/structure/pool/StructurePool;CODEC:Lcom/mojang/serialization/Codec;
-
REGISTRY_CODEC
- Mappings:
Namespace Name Mixin selector official b
Ldsy;b:Lcom/mojang/serialization/Codec;
intermediary field_24954
Lnet/minecraft/class_3785;field_24954:Lcom/mojang/serialization/Codec;
named REGISTRY_CODEC
Lnet/minecraft/structure/pool/StructurePool;REGISTRY_CODEC:Lcom/mojang/serialization/Codec;
-
elementCounts
- Mappings:
Namespace Name Mixin selector official e
Ldsy;e:Ljava/util/List;
intermediary field_16864
Lnet/minecraft/class_3785;field_16864:Ljava/util/List;
named elementCounts
Lnet/minecraft/structure/pool/StructurePool;elementCounts:Ljava/util/List;
-
elements
- Mappings:
Namespace Name Mixin selector official f
Ldsy;f:Lit/unimi/dsi/fastutil/objects/ObjectArrayList;
intermediary field_16680
Lnet/minecraft/class_3785;field_16680:Lit/unimi/dsi/fastutil/objects/ObjectArrayList;
named elements
Lnet/minecraft/structure/pool/StructurePool;elements:Lit/unimi/dsi/fastutil/objects/ObjectArrayList;
-
fallback
- Mappings:
Namespace Name Mixin selector official g
Ldsy;g:Lhd;
intermediary field_40926
Lnet/minecraft/class_3785;field_40926:Lnet/minecraft/class_6880;
named fallback
Lnet/minecraft/structure/pool/StructurePool;fallback:Lnet/minecraft/registry/entry/RegistryEntry;
-
highestY
private int highestY- Mappings:
Namespace Name Mixin selector official h
Ldsy;h:I
intermediary field_18707
Lnet/minecraft/class_3785;field_18707:I
named highestY
Lnet/minecraft/structure/pool/StructurePool;highestY:I
-
-
Constructor Details
-
StructurePool
public StructurePool(RegistryEntry<StructurePool> fallback, List<com.mojang.datafixers.util.Pair<StructurePoolElement, Integer>> elementCounts) - Mappings:
Namespace Name Mixin selector official <init>
Ldsy;<init>(Lhd;Ljava/util/List;)V
intermediary <init>
Lnet/minecraft/class_3785;<init>(Lnet/minecraft/class_6880;Ljava/util/List;)V
named <init>
Lnet/minecraft/structure/pool/StructurePool;<init>(Lnet/minecraft/registry/entry/RegistryEntry;Ljava/util/List;)V
-
StructurePool
public StructurePool(RegistryEntry<StructurePool> fallback, List<com.mojang.datafixers.util.Pair<Function<StructurePool.Projection, ? extends StructurePoolElement>, Integer>> elementCountsByGetters, StructurePool.Projection projection) - Mappings:
Namespace Name Mixin selector official <init>
Ldsy;<init>(Lhd;Ljava/util/List;Ldsy$a;)V
intermediary <init>
Lnet/minecraft/class_3785;<init>(Lnet/minecraft/class_6880;Ljava/util/List;Lnet/minecraft/class_3785$class_3786;)V
named <init>
Lnet/minecraft/structure/pool/StructurePool;<init>(Lnet/minecraft/registry/entry/RegistryEntry;Ljava/util/List;Lnet/minecraft/structure/pool/StructurePool$Projection;)V
-
-
Method Details
-
getHighestY
- Mappings:
Namespace Name Mixin selector official a
Ldsy;a(Ldvi;)I
intermediary method_19309
Lnet/minecraft/class_3785;method_19309(Lnet/minecraft/class_3485;)I
named getHighestY
Lnet/minecraft/structure/pool/StructurePool;getHighestY(Lnet/minecraft/structure/StructureTemplateManager;)I
-
getFallback
- Mappings:
Namespace Name Mixin selector official a
Ldsy;a()Lhd;
intermediary method_46736
Lnet/minecraft/class_3785;method_46736()Lnet/minecraft/class_6880;
named getFallback
Lnet/minecraft/structure/pool/StructurePool;getFallback()Lnet/minecraft/registry/entry/RegistryEntry;
-
getRandomElement
- Mappings:
Namespace Name Mixin selector official a
Ldsy;a(Lapo;)Ldsw;
intermediary method_16631
Lnet/minecraft/class_3785;method_16631(Lnet/minecraft/class_5819;)Lnet/minecraft/class_3784;
named getRandomElement
Lnet/minecraft/structure/pool/StructurePool;getRandomElement(Lnet/minecraft/util/math/random/Random;)Lnet/minecraft/structure/pool/StructurePoolElement;
-
getElementIndicesInRandomOrder
- Mappings:
Namespace Name Mixin selector official b
Ldsy;b(Lapo;)Ljava/util/List;
intermediary method_16633
Lnet/minecraft/class_3785;method_16633(Lnet/minecraft/class_5819;)Ljava/util/List;
named getElementIndicesInRandomOrder
Lnet/minecraft/structure/pool/StructurePool;getElementIndicesInRandomOrder(Lnet/minecraft/util/math/random/Random;)Ljava/util/List;
-
getElementCount
public int getElementCount()- Mappings:
Namespace Name Mixin selector official b
Ldsy;b()I
intermediary method_16632
Lnet/minecraft/class_3785;method_16632()I
named getElementCount
Lnet/minecraft/structure/pool/StructurePool;getElementCount()I
-