Class CustomBlockPopulator

java.lang.Object
org.bukkit.generator.BlockPopulator
com.github.darksoulq.abyssallib.world.gen.CustomBlockPopulator

public abstract class CustomBlockPopulator extends org.bukkit.generator.BlockPopulator
An abstract extension of Bukkit's block populator that integrates with the AbyssalLib world generation API.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract void
    generate(WorldGenAccess level, int chunkX, int chunkZ, Random random)
    Implement this method to define custom features, ores, or structures.
    void
    populate(@NotNull org.bukkit.generator.WorldInfo worldInfo, @NotNull Random random, int chunkX, int chunkZ, @NotNull org.bukkit.generator.LimitedRegion limitedRegion)
    Standard Bukkit entry point for chunk population.

    Methods inherited from class org.bukkit.generator.BlockPopulator

    populate

    Methods inherited from class Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CustomBlockPopulator

      public CustomBlockPopulator()
  • Method Details

    • populate

      public void populate(@NotNull @NotNull org.bukkit.generator.WorldInfo worldInfo, @NotNull @NotNull Random random, int chunkX, int chunkZ, @NotNull @NotNull org.bukkit.generator.LimitedRegion limitedRegion)
      Standard Bukkit entry point for chunk population.
      Overrides:
      populate in class org.bukkit.generator.BlockPopulator
      Parameters:
      worldInfo - Information about the world.
      random - The random source for this chunk.
      chunkX - The X coordinate of the chunk.
      chunkZ - The Z coordinate of the chunk.
      limitedRegion - The region restricted to the chunk and its neighbors.
    • generate

      public abstract void generate(WorldGenAccess level, int chunkX, int chunkZ, Random random)
      Implement this method to define custom features, ores, or structures.
      Parameters:
      level - The world generation access wrapper.
      chunkX - The X coordinate of the chunk being generated.
      chunkZ - The Z coordinate of the chunk being generated.
      random - The random source for this generation pass.