Search in sources :

Example 1 with GenericWorldGenerator

use of mcjty.rftoolsdim.dimensions.world.GenericWorldGenerator in project RFToolsDimensions by McJty.

the class ModDimensions method init.

public static void init() {
    int id = GeneralConfiguration.rftoolsProviderId;
    if (id == -1) {
        for (DimensionType type : DimensionType.values()) {
            if (type.getId() > id) {
                id = type.getId();
            }
        }
        id++;
    }
    Logging.log("Registering rftools dimension type at id " + id);
    rftoolsType = DimensionType.register("rftools_dimension", "_rftools", id, GenericWorldProvider.class, false);
    GameRegistry.registerWorldGenerator(new GenericWorldGenerator(), 1000);
    MapGenStructureIO.registerStructure(MapGenDesertTemple.Start.class, "RFTDesertTemple");
    MapGenStructureIO.registerStructure(MapGenJungleTemple.Start.class, "RFTJungleTemple");
    MapGenStructureIO.registerStructure(MapGenSwampHut.Start.class, "RFTSwampHut");
    MapGenStructureIO.registerStructure(MapGenIgloo.Start.class, "RFTIgloo");
}
Also used : DimensionType(net.minecraft.world.DimensionType) MapGenJungleTemple(mcjty.rftoolsdim.dimensions.world.mapgen.MapGenJungleTemple) MapGenDesertTemple(mcjty.rftoolsdim.dimensions.world.mapgen.MapGenDesertTemple) GenericWorldGenerator(mcjty.rftoolsdim.dimensions.world.GenericWorldGenerator) MapGenSwampHut(mcjty.rftoolsdim.dimensions.world.mapgen.MapGenSwampHut) MapGenIgloo(mcjty.rftoolsdim.dimensions.world.mapgen.MapGenIgloo) GenericWorldProvider(mcjty.rftoolsdim.dimensions.world.GenericWorldProvider)

Aggregations

GenericWorldGenerator (mcjty.rftoolsdim.dimensions.world.GenericWorldGenerator)1 GenericWorldProvider (mcjty.rftoolsdim.dimensions.world.GenericWorldProvider)1 MapGenDesertTemple (mcjty.rftoolsdim.dimensions.world.mapgen.MapGenDesertTemple)1 MapGenIgloo (mcjty.rftoolsdim.dimensions.world.mapgen.MapGenIgloo)1 MapGenJungleTemple (mcjty.rftoolsdim.dimensions.world.mapgen.MapGenJungleTemple)1 MapGenSwampHut (mcjty.rftoolsdim.dimensions.world.mapgen.MapGenSwampHut)1 DimensionType (net.minecraft.world.DimensionType)1