Class StructureStart
java.lang.Object
cn.nukkit.level.generator.populator.impl.structure.utils.structure.StructureStart
- Direct Known Subclasses:
PopulatorMineshaft.MineshaftStart
,PopulatorNetherFortress.NetherFortressStart
,PopulatorOceanMonument.OceanMonumentStart
,PopulatorStronghold.StrongholdStart
,PopulatorVillage.VillageStart
-
Field Summary
Modifier and TypeFieldDescriptionprotected BoundingBox
protected final ChunkManager
protected final List<StructurePiece>
protected final NukkitRandom
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
final CompoundTag
abstract void
generatePieces
(ChunkManager level, int chunkX, int chunkZ) int
int
abstract String
getType()
boolean
isValid()
protected void
moveBelowSeaLevel
(int max, NukkitRandom random, int min) protected void
moveInsideHeights
(NukkitRandom random, int min, int max) void
postProcess
(ChunkManager level, NukkitRandom random, BoundingBox boundingBox, int chunkX, int chunkZ)
-
Field Details
-
level
-
pieces
-
random
-
boundingBox
-
-
Constructor Details
-
StructureStart
-
-
Method Details
-
generatePieces
-
getBoundingBox
-
getPieces
-
postProcess
public void postProcess(ChunkManager level, NukkitRandom random, BoundingBox boundingBox, int chunkX, int chunkZ) -
calculateBoundingBox
protected void calculateBoundingBox() -
createTag
-
moveBelowSeaLevel
-
moveInsideHeights
-
isValid
public boolean isValid() -
getChunkX
public int getChunkX() -
getChunkZ
public int getChunkZ() -
getType
-