
package com.flowpowered.api.generator;

import com.flowpowered.api.geo.World;
import com.flowpowered.api.material.BlockMaterial;
import com.flowpowered.api.util.cuboid.CuboidBlockMaterialBuffer;

/**
 * Generates an empty world using air blocks
 */
public class EmptyWorldGenerator implements WorldGenerator {
    @Override
    public void generate(CuboidBlockMaterialBuffer blockData, World world) {
        blockData.flood(BlockMaterial.AIR);
    }

    @Override
    public Populator[] getPopulators() {
        return new Populator[0];
    }

    @Override
    public String getName() {
        return "EmptyWorld";
    }
}
