/*
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */

package com.skelril.skree.content.world;

import com.flowpowered.math.vector.Vector3i;
import org.spongepowered.api.block.BlockTypes;
import org.spongepowered.api.world.World;
import org.spongepowered.api.world.extent.ImmutableBiomeArea;
import org.spongepowered.api.world.extent.MutableBlockVolume;
import org.spongepowered.api.world.gen.GenerationPopulator;

public class VoidTerrainGenerator implements GenerationPopulator {
    @Override
    public void populate(World world, MutableBlockVolume buffer, ImmutableBiomeArea biomes) {
        Vector3i min = buffer.getBlockMin();
        Vector3i max = buffer.getBlockMax();
        for (int x = min.getX(); x <= max.getX(); ++x) {
            for (int z = min.getZ(); z <= max.getZ(); ++z) {
                buffer.setBlockType(x, 0, z, BlockTypes.BEDROCK);
                buffer.setBlockType(x, 1, z, BlockTypes.STONE);
                buffer.setBlockType(x, 5, z, BlockTypes.STONE);
            }
        }
    }
}

@@ -249,100 +249,8 @@
 d;%0A%0A
-import com.flowpowered.math.vector.Vector3i;%0Aimport org.spongepowered.api.block.BlockTypes;%0A
 impo
@@ -651,433 +651,8 @@
 ) %7B%0A
-        Vector3i min = buffer.getBlockMin();%0A        Vector3i max = buffer.getBlockMax();%0A        for (int x = min.getX(); x %3C= max.getX(); ++x) %7B%0A            for (int z = min.getZ(); z %3C= max.getZ(); ++z) %7B%0A                buffer.setBlockType(x, 0, z, BlockTypes.BEDROCK);%0A                buffer.setBlockType(x, 1, z, BlockTypes.STONE);%0A                buffer.setBlockType(x, 5, z, BlockTypes.STONE);%0A            %7D%0A        %7D
 %0A   

Revert changes to the Void Terrain Generator