Search in sources :

Example 1 with WorldGenBlockBlob

use of net.minecraft.world.gen.feature.WorldGenBlockBlob in project SpongeCommon by SpongePowered.

the class BlockBlobBuilder method build.

@Override
public BlockBlob build() throws IllegalStateException {
    if (this.block == null) {
        throw new IllegalStateException("Builder is missing required BlockState argument.");
    }
    BlockBlob populator = (BlockBlob) new WorldGenBlockBlob((Block) this.block.getType(), 2);
    populator.setBlock(this.block);
    populator.setRadius(this.radius);
    populator.setCount(this.count);
    return populator;
}
Also used : WorldGenBlockBlob(net.minecraft.world.gen.feature.WorldGenBlockBlob) BlockBlob(org.spongepowered.api.world.gen.populator.BlockBlob) Block(net.minecraft.block.Block) WorldGenBlockBlob(net.minecraft.world.gen.feature.WorldGenBlockBlob)

Aggregations

Block (net.minecraft.block.Block)1 WorldGenBlockBlob (net.minecraft.world.gen.feature.WorldGenBlockBlob)1 BlockBlob (org.spongepowered.api.world.gen.populator.BlockBlob)1