Search in sources :

Example 1 with WorldPreset

use of net.minecraft.client.gui.screens.worldselection.WorldPreset in project MinecraftForge by MinecraftForge.

the class ForgeWorldPresetScreens method getDefaultPreset.

static WorldPreset getDefaultPreset() {
    ForgeWorldPreset def = ForgeWorldPreset.getDefaultWorldPreset();
    if (def == null) {
        return WorldPreset.NORMAL;
    }
    WorldPreset gen = GENERATORS.get(def);
    if (gen == null) {
        LOGGER.error("The default world type '{}' has not been added to the GUI. Was it registered too late?", def.getRegistryName());
        return WorldPreset.NORMAL;
    }
    return gen;
}
Also used : ForgeWorldPreset(net.minecraftforge.common.world.ForgeWorldPreset) ForgeWorldPreset(net.minecraftforge.common.world.ForgeWorldPreset) WorldPreset(net.minecraft.client.gui.screens.worldselection.WorldPreset)

Aggregations

WorldPreset (net.minecraft.client.gui.screens.worldselection.WorldPreset)1 ForgeWorldPreset (net.minecraftforge.common.world.ForgeWorldPreset)1