Package net.minecraft.structure.pool
Class StructurePool
java.lang.Object
net.minecraft.structure.pool.StructurePool
public class StructurePool extends Object
- Mappings:
Namespace Name official cty
intermediary net/minecraft/class_3785
named net/minecraft/structure/pool/StructurePool
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StructurePool.Projection
-
Field Summary
Fields Modifier and Type Field Description static com.mojang.serialization.Codec<StructurePool>
CODEC
private List<com.mojang.datafixers.util.Pair<StructurePoolElement,Integer>>
elementCounts
private List<StructurePoolElement>
elements
private int
highestY
private Identifier
id
private static Logger
LOGGER
static com.mojang.serialization.Codec<Supplier<StructurePool>>
REGISTRY_CODEC
private Identifier
terminatorsId
-
Constructor Summary
Constructors Constructor Description StructurePool(Identifier id, Identifier terminatorsId, List<com.mojang.datafixers.util.Pair<Function<StructurePool.Projection,? extends StructurePoolElement>,Integer>> elementCounts, StructurePool.Projection projection)
StructurePool(Identifier id, Identifier terminatorsId, List<com.mojang.datafixers.util.Pair<StructurePoolElement,Integer>> elementCounts)
-
Method Summary
Modifier and Type Method Description int
getElementCount()
List<StructurePoolElement>
getElementIndicesInRandomOrder(Random random)
int
getHighestY(StructureManager structureManager)
Identifier
getId()
StructurePoolElement
getRandomElement(Random random)
Identifier
getTerminatorsId()
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official c
Lcty;c:Lorg/apache/logging/log4j/Logger;
intermediary field_24955
Lnet/minecraft/class_3785;field_24955:Lorg/apache/logging/log4j/Logger;
named LOGGER
Lnet/minecraft/structure/pool/StructurePool;LOGGER:Lorg/apache/logging/log4j/Logger;
-
CODEC
- Mappings:
Namespace Name Mixin selector official a
Lcty;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
Lcty;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;
-
id
- Mappings:
Namespace Name Mixin selector official d
Lcty;d:Lwb;
intermediary field_16678
Lnet/minecraft/class_3785;field_16678:Lnet/minecraft/class_2960;
named id
Lnet/minecraft/structure/pool/StructurePool;id:Lnet/minecraft/util/Identifier;
-
elementCounts
- Mappings:
Namespace Name Mixin selector official e
Lcty;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
Lcty;f:Ljava/util/List;
intermediary field_16680
Lnet/minecraft/class_3785;field_16680:Ljava/util/List;
named elements
Lnet/minecraft/structure/pool/StructurePool;elements:Ljava/util/List;
-
terminatorsId
- Mappings:
Namespace Name Mixin selector official g
Lcty;g:Lwb;
intermediary field_16681
Lnet/minecraft/class_3785;field_16681:Lnet/minecraft/class_2960;
named terminatorsId
Lnet/minecraft/structure/pool/StructurePool;terminatorsId:Lnet/minecraft/util/Identifier;
-
highestY
private int highestY- Mappings:
Namespace Name Mixin selector official h
Lcty;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(Identifier id, Identifier terminatorsId, List<com.mojang.datafixers.util.Pair<StructurePoolElement,Integer>> elementCounts)- Mappings:
Namespace Name Mixin selector official <init>
Lcty;<init>(Lwb;Lwb;Ljava/util/List;)V
intermediary <init>
Lnet/minecraft/class_3785;<init>(Lnet/minecraft/class_2960;Lnet/minecraft/class_2960;Ljava/util/List;)V
named <init>
Lnet/minecraft/structure/pool/StructurePool;<init>(Lnet/minecraft/util/Identifier;Lnet/minecraft/util/Identifier;Ljava/util/List;)V
-
StructurePool
public StructurePool(Identifier id, Identifier terminatorsId, List<com.mojang.datafixers.util.Pair<Function<StructurePool.Projection,? extends StructurePoolElement>,Integer>> elementCounts, StructurePool.Projection projection)- Mappings:
Namespace Name Mixin selector official <init>
Lcty;<init>(Lwb;Lwb;Ljava/util/List;Lcty$a;)V
intermediary <init>
Lnet/minecraft/class_3785;<init>(Lnet/minecraft/class_2960;Lnet/minecraft/class_2960;Ljava/util/List;Lnet/minecraft/class_3785$class_3786;)V
named <init>
Lnet/minecraft/structure/pool/StructurePool;<init>(Lnet/minecraft/util/Identifier;Lnet/minecraft/util/Identifier;Ljava/util/List;Lnet/minecraft/structure/pool/StructurePool$Projection;)V
-
-
Method Details
-
getHighestY
- Mappings:
Namespace Name Mixin selector official a
Lcty;a(Lcyj;)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/StructureManager;)I
-
getTerminatorsId
- Mappings:
Namespace Name Mixin selector official a
Lcty;a()Lwb;
intermediary method_16634
Lnet/minecraft/class_3785;method_16634()Lnet/minecraft/class_2960;
named getTerminatorsId
Lnet/minecraft/structure/pool/StructurePool;getTerminatorsId()Lnet/minecraft/util/Identifier;
-
getRandomElement
- Mappings:
Namespace Name Mixin selector official a
Lcty;a(Ljava/util/Random;)Lctw;
intermediary method_16631
Lnet/minecraft/class_3785;method_16631(Ljava/util/Random;)Lnet/minecraft/class_3784;
named getRandomElement
Lnet/minecraft/structure/pool/StructurePool;getRandomElement(Ljava/util/Random;)Lnet/minecraft/structure/pool/StructurePoolElement;
-
getElementIndicesInRandomOrder
- Mappings:
Namespace Name Mixin selector official b
Lcty;b(Ljava/util/Random;)Ljava/util/List;
intermediary method_16633
Lnet/minecraft/class_3785;method_16633(Ljava/util/Random;)Ljava/util/List;
named getElementIndicesInRandomOrder
Lnet/minecraft/structure/pool/StructurePool;getElementIndicesInRandomOrder(Ljava/util/Random;)Ljava/util/List;
-
getId
- Mappings:
Namespace Name Mixin selector official b
Lcty;b()Lwb;
intermediary method_16629
Lnet/minecraft/class_3785;method_16629()Lnet/minecraft/class_2960;
named getId
Lnet/minecraft/structure/pool/StructurePool;getId()Lnet/minecraft/util/Identifier;
-
getElementCount
public int getElementCount()- Mappings:
Namespace Name Mixin selector official c
Lcty;c()I
intermediary method_16632
Lnet/minecraft/class_3785;method_16632()I
named getElementCount
Lnet/minecraft/structure/pool/StructurePool;getElementCount()I
-