public class StructurePoolFeatureConfig extends Object implements FeatureConfig
StructurePoolBasedGenerator.addPieces(net.minecraft.util.Identifier, int, net.minecraft.structure.pool.StructurePoolBasedGenerator.PieceFactory, net.minecraft.world.gen.chunk.ChunkGenerator, net.minecraft.structure.StructureManager, net.minecraft.util.math.BlockPos, java.util.List, java.util.Random, boolean, boolean)
.Modifier and Type | Field and Description |
---|---|
int |
size |
Identifier |
startPool |
DEFAULT
Constructor and Description |
---|
StructurePoolFeatureConfig(String startPool,
int size) |
Modifier and Type | Method and Description |
---|---|
static <T> StructurePoolFeatureConfig |
deserialize(com.mojang.datafixers.Dynamic<T> dynamic) |
int |
getSize() |
String |
getStartPool() |
<T> com.mojang.datafixers.Dynamic<T> |
serialize(com.mojang.datafixers.types.DynamicOps<T> ops) |
public final Identifier startPool
public final int size
public StructurePoolFeatureConfig(String startPool, int size)
public <T> com.mojang.datafixers.Dynamic<T> serialize(com.mojang.datafixers.types.DynamicOps<T> ops)
serialize
in interface FeatureConfig
public static <T> StructurePoolFeatureConfig deserialize(com.mojang.datafixers.Dynamic<T> dynamic)
public int getSize()
public String getStartPool()