mirror of https://github.com/plexusorg/Plex.git
26 lines
697 B
Java
26 lines
697 B
Java
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<BlockPopulator> populators;
|
|
|
|
protected CustomChunkGenerator(int height, BlockPopulator... populators)
|
|
{
|
|
this.height = height;
|
|
this.populators = Arrays.asList(populators);
|
|
}
|
|
|
|
public List<BlockPopulator> getDefaultPopulators(World world)
|
|
{
|
|
return populators;
|
|
}
|
|
|
|
public abstract void createLoopChunkData(int x, int y, int z, ChunkData chunk);
|
|
} |