Package net.minecraft.world.gen.feature
Class StructurePoolFeatureConfig
java.lang.Object
net.minecraft.world.gen.feature.StructurePoolFeatureConfig
- All Implemented Interfaces:
FeatureConfig
public class StructurePoolFeatureConfig extends Object implements FeatureConfig
A feature config that specifies a starting pool and a size for the first two parameters of
net.minecraft.structure.pool.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)
.-
Field Summary
Fields Modifier and Type Field Description static com.mojang.serialization.Codec<StructurePoolFeatureConfig>
CODEC
private int
size
private Supplier<StructurePool>
startPool
Fields inherited from interface net.minecraft.world.gen.feature.FeatureConfig
DEFAULT
-
Constructor Summary
Constructors Constructor Description StructurePoolFeatureConfig(Supplier<StructurePool> startPool, int size)
-
Method Summary
Modifier and Type Method Description int
getSize()
Supplier<StructurePool>
getStartPool()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.world.gen.feature.FeatureConfig
method_30649
-
Field Details
-
CODEC
-
startPool
-
size
private final int size
-
-
Constructor Details
-
StructurePoolFeatureConfig
-
-
Method Details
-
getSize
public int getSize() -
getStartPool
-