public class StructurePool extends Object
Modifier and Type | Class and Description |
---|---|
static class |
StructurePool.Projection |
Modifier and Type | Field and 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 and 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) |
Modifier and Type | Method and Description |
---|---|
int |
getElementCount() |
List<StructurePoolElement> |
getElementIndicesInRandomOrder(Random random) |
int |
getHighestY(StructureManager structureManager) |
Identifier |
getId() |
StructurePoolElement |
getRandomElement(Random random) |
Identifier |
getTerminatorsId() |
private static final Logger LOGGER
public static final com.mojang.serialization.Codec<StructurePool> CODEC
public static final com.mojang.serialization.Codec<Supplier<StructurePool>> REGISTRY_CODEC
private final Identifier id
private final List<com.mojang.datafixers.util.Pair<StructurePoolElement,Integer>> elementCounts
private final List<StructurePoolElement> elements
private final Identifier terminatorsId
private int highestY
public StructurePool(Identifier identifier, Identifier identifier2, List<com.mojang.datafixers.util.Pair<StructurePoolElement,Integer>> list)
public StructurePool(Identifier identifier, Identifier identifier2, List<com.mojang.datafixers.util.Pair<Function<StructurePool.Projection,? extends StructurePoolElement>,Integer>> list, StructurePool.Projection projection)
public int getHighestY(StructureManager structureManager)
public Identifier getTerminatorsId()
public StructurePoolElement getRandomElement(Random random)
public List<StructurePoolElement> getElementIndicesInRandomOrder(Random random)
public Identifier getId()
public int getElementCount()