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 -
Method Summary
Modifier and TypeMethodDescriptionabstract voidgenerate(WorldGenAccess level, int chunkX, int chunkZ, Random random) Implement this method to define custom features, ores, or structures.voidpopulate(@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
-
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:
populatein classorg.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
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.
-