Package net.minecraft.structure.pool
Class StructurePool
java.lang.Object
net.minecraft.structure.pool.StructurePool
public class StructurePool extends Object
-
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 identifier, Identifier identifier2, List<com.mojang.datafixers.util.Pair<Function<StructurePool.Projection,? extends StructurePoolElement>,Integer>> list, StructurePool.Projection projection)
StructurePool(Identifier identifier, Identifier identifier2, List<com.mojang.datafixers.util.Pair<StructurePoolElement,Integer>> list)
-
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
-
CODEC
-
REGISTRY_CODEC
-
id
-
elementCounts
-
elements
-
terminatorsId
-
highestY
private int highestY
-
-
Constructor Details
-
StructurePool
public StructurePool(Identifier identifier, Identifier identifier2, List<com.mojang.datafixers.util.Pair<StructurePoolElement,Integer>> list) -
StructurePool
public StructurePool(Identifier identifier, Identifier identifier2, List<com.mojang.datafixers.util.Pair<Function<StructurePool.Projection,? extends StructurePoolElement>,Integer>> list, StructurePool.Projection projection)
-
-
Method Details
-
getHighestY
-
getTerminatorsId
-
getRandomElement
-
getElementIndicesInRandomOrder
-
getId
-
getElementCount
public int getElementCount()
-