Search in sources :

Example 1 with SimpleBlockFiller

use of gregtech.api.worldgen.filler.SimpleBlockFiller in project GregTech by GregTechCE.

the class WorldGenRegistry method initializeRegistry.

public void initializeRegistry() {
    GTLog.logger.info("Initializing ore generation registry...");
    registerShapeGenerator("ellipsoid", EllipsoidGenerator::new);
    registerShapeGenerator("sphere", SphereGenerator::new);
    registerShapeGenerator("plate", PlateGenerator::new);
    registerShapeGenerator("single", SingleBlockGenerator::new);
    registerBlockFiller("simple", SimpleBlockFiller::new);
    registerBlockFiller("ignore_bedrock", () -> new BlacklistedBlockFiller(Lists.newArrayList(Blocks.BEDROCK.getDefaultState())));
    registerVeinPopulator("surface_rock", SurfaceRockPopulator::new);
    registerVeinPopulator("fluid_spring", FluidSpringPopulator::new);
    registerVeinPopulator("surface_block", SurfaceBlockPopulator::new);
    WorldGeneratorImpl worldGenerator = new WorldGeneratorImpl();
    GameRegistry.registerWorldGenerator(worldGenerator, 1);
    MinecraftForge.ORE_GEN_BUS.register(worldGenerator);
    try {
        reinitializeRegisteredVeins();
    } catch (IOException | RuntimeException exception) {
        GTLog.logger.fatal("Failed to initialize worldgen registry.", exception);
    }
}
Also used : WorldGeneratorImpl(gregtech.api.worldgen.generator.WorldGeneratorImpl) SurfaceRockPopulator(gregtech.api.worldgen.populator.SurfaceRockPopulator) FluidSpringPopulator(gregtech.api.worldgen.populator.FluidSpringPopulator) IOException(java.io.IOException) BlacklistedBlockFiller(gregtech.api.worldgen.filler.BlacklistedBlockFiller) SurfaceBlockPopulator(gregtech.api.worldgen.populator.SurfaceBlockPopulator) SimpleBlockFiller(gregtech.api.worldgen.filler.SimpleBlockFiller)

Aggregations

BlacklistedBlockFiller (gregtech.api.worldgen.filler.BlacklistedBlockFiller)1 SimpleBlockFiller (gregtech.api.worldgen.filler.SimpleBlockFiller)1 WorldGeneratorImpl (gregtech.api.worldgen.generator.WorldGeneratorImpl)1 FluidSpringPopulator (gregtech.api.worldgen.populator.FluidSpringPopulator)1 SurfaceBlockPopulator (gregtech.api.worldgen.populator.SurfaceBlockPopulator)1 SurfaceRockPopulator (gregtech.api.worldgen.populator.SurfaceRockPopulator)1 IOException (java.io.IOException)1