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 classStructurePool.Projection -
Field Summary
Fields Modifier and Type Field Description static com.mojang.serialization.Codec<StructurePool>CODECprivate List<com.mojang.datafixers.util.Pair<StructurePoolElement,Integer>>elementCountsprivate List<StructurePoolElement>elementsprivate inthighestYprivate Identifieridprivate static LoggerLOGGERstatic com.mojang.serialization.Codec<Supplier<StructurePool>>REGISTRY_CODECprivate IdentifierterminatorsId -
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 intgetElementCount()List<StructurePoolElement>getElementIndicesInRandomOrder(Random random)intgetHighestY(StructureManager structureManager)IdentifiergetId()StructurePoolElementgetRandomElement(Random random)IdentifiergetTerminatorsId()
-
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()
-