static final class StructurePoolBasedGenerator.StructurePoolGenerator extends Object
| Modifier and Type | Field and Description |
|---|---|
private List<StructurePiece> |
children |
private ChunkGenerator<?> |
chunkGenerator |
private int |
maxSize |
private StructurePoolBasedGenerator.PieceFactory |
pieceFactory |
private Random |
random |
private StructureManager |
structureManager |
private Deque<StructurePoolBasedGenerator.ShapedPoolStructurePiece> |
structurePieces |
| Constructor and Description |
|---|
StructurePoolGenerator(Identifier startingPool,
int maxSize,
StructurePoolBasedGenerator.PieceFactory pieceFactory,
ChunkGenerator<?> chunkGenerator,
StructureManager structureManager,
BlockPos blockPos,
List<StructurePiece> children,
Random random) |
| Modifier and Type | Method and Description |
|---|---|
private void |
generatePiece(PoolStructurePiece piece,
AtomicReference<VoxelShape> pieceShape,
int minY,
int currentSize) |
private final int maxSize
private final StructurePoolBasedGenerator.PieceFactory pieceFactory
private final ChunkGenerator<?> chunkGenerator
private final StructureManager structureManager
private final List<StructurePiece> children
private final Random random
private final Deque<StructurePoolBasedGenerator.ShapedPoolStructurePiece> structurePieces
public StructurePoolGenerator(Identifier startingPool, int maxSize, StructurePoolBasedGenerator.PieceFactory pieceFactory, ChunkGenerator<?> chunkGenerator, StructureManager structureManager, BlockPos blockPos, List<StructurePiece> children, Random random)
private void generatePiece(PoolStructurePiece piece, AtomicReference<VoxelShape> pieceShape, int minY, int currentSize)