package dev.plex.world; import java.util.Arrays; import java.util.List; import org.bukkit.World; import org.bukkit.generator.BlockPopulator; import org.bukkit.generator.ChunkGenerator; public abstract class CustomChunkGenerator extends ChunkGenerator { protected int height; private final List populators; protected CustomChunkGenerator(int height, BlockPopulator... populators) { this.height = height; this.populators = Arrays.asList(populators); } public List getDefaultPopulators(World world) { return populators; } public abstract void createLoopChunkData(int x, int y, int z, ChunkData chunk); }