use of gregtech.api.worldgen.generator.WorldGeneratorImpl 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);
}
}
Aggregations