Search in sources :

Example 1 with FlatTheEndGeneratorType

use of org.lanternpowered.server.world.gen.flat.FlatTheEndGeneratorType in project LanternServer by LanternPowered.

the class GeneratorTypeRegistryModule method registerDefaults.

@Override
public void registerDefaults() {
    final FlatOverworldGeneratorType flat = new FlatOverworldGeneratorType("minecraft", "flat");
    final FlatNetherGeneratorType flatNether = new FlatNetherGeneratorType("lantern", "flat_nether");
    final FlatTheEndGeneratorType flatTheEnd = new FlatTheEndGeneratorType("lantern", "flat_the_end");
    // Default inbuilt generator types
    register(flat);
    register(flatNether);
    register(flatTheEnd);
    register(new DebugGeneratorType("minecraft", "debug"));
    // Plugin provided generator types, these will fall back
    // to flat if missing
    register(new DelegateGeneratorType("minecraft", "default", flat));
    register(new DelegateGeneratorType("minecraft", "overworld", flat));
    register(new DelegateGeneratorType("minecraft", "large_biomes", flat));
    register(new DelegateGeneratorType("minecraft", "amplified", flat));
    register(new DelegateGeneratorType("minecraft", "nether", flatNether));
    register(new DelegateGeneratorType("minecraft", "the_end", flatTheEnd));
    // Sponge
    register(new TheVoidGeneratorType("sponge", "void"));
}
Also used : FlatNetherGeneratorType(org.lanternpowered.server.world.gen.flat.FlatNetherGeneratorType) FlatOverworldGeneratorType(org.lanternpowered.server.world.gen.flat.FlatOverworldGeneratorType) FlatTheEndGeneratorType(org.lanternpowered.server.world.gen.flat.FlatTheEndGeneratorType) DebugGeneratorType(org.lanternpowered.server.world.gen.debug.DebugGeneratorType) TheVoidGeneratorType(org.lanternpowered.server.world.gen.thevoid.TheVoidGeneratorType) DelegateGeneratorType(org.lanternpowered.server.world.gen.DelegateGeneratorType)

Aggregations

DelegateGeneratorType (org.lanternpowered.server.world.gen.DelegateGeneratorType)1 DebugGeneratorType (org.lanternpowered.server.world.gen.debug.DebugGeneratorType)1 FlatNetherGeneratorType (org.lanternpowered.server.world.gen.flat.FlatNetherGeneratorType)1 FlatOverworldGeneratorType (org.lanternpowered.server.world.gen.flat.FlatOverworldGeneratorType)1 FlatTheEndGeneratorType (org.lanternpowered.server.world.gen.flat.FlatTheEndGeneratorType)1 TheVoidGeneratorType (org.lanternpowered.server.world.gen.thevoid.TheVoidGeneratorType)1