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

@PowerNukkitXOnly @Since("1.19.21-r2") public abstract class StructureStart extends Object
  • Field Details

  • Constructor Details

    • StructureStart

      public StructureStart(ChunkManager level, int chunkX, int chunkZ)
  • Method Details

    • generatePieces

      public abstract void generatePieces(ChunkManager level, int chunkX, int chunkZ)
    • getBoundingBox

      public BoundingBox getBoundingBox()
    • getPieces

      public List<StructurePiece> getPieces()
    • postProcess

      public void postProcess(ChunkManager level, NukkitRandom random, BoundingBox boundingBox, int chunkX, int chunkZ)
    • calculateBoundingBox

      protected void calculateBoundingBox()
    • createTag

      public final CompoundTag createTag()
    • moveBelowSeaLevel

      protected void moveBelowSeaLevel(int max, NukkitRandom random, int min)
    • moveInsideHeights

      protected void moveInsideHeights(NukkitRandom random, int min, int max)
    • isValid

      public boolean isValid()
    • getChunkX

      public int getChunkX()
    • getChunkZ

      public int getChunkZ()
    • getType

      public abstract String getType()