mirror of
https://github.com/plexusorg/Plex.git
synced 2024-11-17 09:06:12 +00:00
27 lines
711 B
Java
27 lines
711 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
|
|
{
|
|
private final List<BlockPopulator> populators;
|
|
protected int height;
|
|
|
|
protected CustomChunkGenerator(int height, BlockPopulator... populators)
|
|
{
|
|
this.height = height;
|
|
this.populators = Arrays.asList(populators);
|
|
}
|
|
|
|
@Override
|
|
public List<BlockPopulator> getDefaultPopulators(World world)
|
|
{
|
|
return populators;
|
|
}
|
|
|
|
public abstract void createLoopChunkData(int x, int y, int z, ChunkData chunk);
|
|
} |