use of net.minecraftforge.common.world.ForgeWorldPreset 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;
}
Aggregations