Package net.minecraft.structure.pool
Class StructurePool
java.lang.Object
net.minecraft.structure.pool.StructurePool
- Mappings:
Namespace Name official dpfintermediary net/minecraft/class_3785named net/minecraft/structure/pool/StructurePool
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<StructurePool>private static final intprivate final List<com.mojang.datafixers.util.Pair<StructurePoolElement,Integer>> private final ObjectArrayList<StructurePoolElement>private static final MutableObject<com.mojang.serialization.Codec<RegistryEntry<StructurePool>>>private final RegistryEntry<StructurePool>private intstatic final com.mojang.serialization.Codec<RegistryEntry<StructurePool>> -
Constructor Summary
ConstructorsConstructorDescriptionStructurePool(RegistryEntry<StructurePool> registryEntry, List<com.mojang.datafixers.util.Pair<Function<StructurePool.Projection, ? extends StructurePoolElement>, Integer>> list, StructurePool.Projection projection) StructurePool(RegistryEntry<StructurePool> registryEntry, List<com.mojang.datafixers.util.Pair<StructurePoolElement, Integer>> list) -
Method Summary
Modifier and TypeMethodDescriptionintgetElementIndicesInRandomOrder(Random random) intgetHighestY(StructureTemplateManager structureTemplateManager) getRandomElement(Random random)
-
Field Details
-
DEFAULT_Y
private static final int DEFAULT_Y- See Also:
- Mappings:
Namespace Name Mixin selector official cLdpf;c:Iintermediary field_31523Lnet/minecraft/class_3785;field_31523:Inamed DEFAULT_YLnet/minecraft/structure/pool/StructurePool;DEFAULT_Y:I
-
field_40925
private static final MutableObject<com.mojang.serialization.Codec<RegistryEntry<StructurePool>>> field_40925- Mappings:
Namespace Name Mixin selector official dLdpf;d:Lorg/apache/commons/lang3/mutable/MutableObject;intermediary field_40925Lnet/minecraft/class_3785;field_40925:Lorg/apache/commons/lang3/mutable/MutableObject;named field_40925Lnet/minecraft/structure/pool/StructurePool;field_40925:Lorg/apache/commons/lang3/mutable/MutableObject;
-
CODEC
- Mappings:
Namespace Name Mixin selector official aLdpf;a:Lcom/mojang/serialization/Codec;intermediary field_25853Lnet/minecraft/class_3785;field_25853:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/structure/pool/StructurePool;CODEC:Lcom/mojang/serialization/Codec;
-
REGISTRY_CODEC
- Mappings:
Namespace Name Mixin selector official bLdpf;b:Lcom/mojang/serialization/Codec;intermediary field_24954Lnet/minecraft/class_3785;field_24954:Lcom/mojang/serialization/Codec;named REGISTRY_CODECLnet/minecraft/structure/pool/StructurePool;REGISTRY_CODEC:Lcom/mojang/serialization/Codec;
-
elementCounts
- Mappings:
Namespace Name Mixin selector official eLdpf;e:Ljava/util/List;intermediary field_16864Lnet/minecraft/class_3785;field_16864:Ljava/util/List;named elementCountsLnet/minecraft/structure/pool/StructurePool;elementCounts:Ljava/util/List;
-
elements
- Mappings:
Namespace Name Mixin selector official fLdpf;f:Lit/unimi/dsi/fastutil/objects/ObjectArrayList;intermediary field_16680Lnet/minecraft/class_3785;field_16680:Lit/unimi/dsi/fastutil/objects/ObjectArrayList;named elementsLnet/minecraft/structure/pool/StructurePool;elements:Lit/unimi/dsi/fastutil/objects/ObjectArrayList;
-
field_40926
- Mappings:
Namespace Name Mixin selector official gLdpf;g:Lgx;intermediary field_40926Lnet/minecraft/class_3785;field_40926:Lnet/minecraft/class_6880;named field_40926Lnet/minecraft/structure/pool/StructurePool;field_40926:Lnet/minecraft/util/registry/RegistryEntry;
-
highestY
private int highestY- Mappings:
Namespace Name Mixin selector official hLdpf;h:Iintermediary field_18707Lnet/minecraft/class_3785;field_18707:Inamed highestYLnet/minecraft/structure/pool/StructurePool;highestY:I
-
-
Constructor Details
-
StructurePool
public StructurePool(RegistryEntry<StructurePool> registryEntry, List<com.mojang.datafixers.util.Pair<StructurePoolElement, Integer>> list) -
StructurePool
public StructurePool(RegistryEntry<StructurePool> registryEntry, List<com.mojang.datafixers.util.Pair<Function<StructurePool.Projection, ? extends StructurePoolElement>, Integer>> list, StructurePool.Projection projection)
-
-
Method Details
-
getHighestY
- Mappings:
Namespace Name Mixin selector official aLdpf;a(Ldrp;)Iintermediary method_19309Lnet/minecraft/class_3785;method_19309(Lnet/minecraft/class_3485;)Inamed getHighestYLnet/minecraft/structure/pool/StructurePool;getHighestY(Lnet/minecraft/structure/StructureTemplateManager;)I
-
method_46736
- Mappings:
Namespace Name Mixin selector official aLdpf;a()Lgx;intermediary method_46736Lnet/minecraft/class_3785;method_46736()Lnet/minecraft/class_6880;named method_46736Lnet/minecraft/structure/pool/StructurePool;method_46736()Lnet/minecraft/util/registry/RegistryEntry;
-
getRandomElement
- Mappings:
Namespace Name Mixin selector official aLdpf;a(Lany;)Ldpd;intermediary method_16631Lnet/minecraft/class_3785;method_16631(Lnet/minecraft/class_5819;)Lnet/minecraft/class_3784;named getRandomElementLnet/minecraft/structure/pool/StructurePool;getRandomElement(Lnet/minecraft/util/math/random/Random;)Lnet/minecraft/structure/pool/StructurePoolElement;
-
getElementIndicesInRandomOrder
- Mappings:
Namespace Name Mixin selector official bLdpf;b(Lany;)Ljava/util/List;intermediary method_16633Lnet/minecraft/class_3785;method_16633(Lnet/minecraft/class_5819;)Ljava/util/List;named getElementIndicesInRandomOrderLnet/minecraft/structure/pool/StructurePool;getElementIndicesInRandomOrder(Lnet/minecraft/util/math/random/Random;)Ljava/util/List;
-
getElementCount
public int getElementCount()- Mappings:
Namespace Name Mixin selector official bLdpf;b()Iintermediary method_16632Lnet/minecraft/class_3785;method_16632()Inamed getElementCountLnet/minecraft/structure/pool/StructurePool;getElementCount()I
-