Search in sources :

Example 1 with RTGConfig

use of rtg.api.config.RTGConfig in project Realistic-Terrain-Generation by Team-RTG.

the class RTG method initPre.

@EventHandler
public void initPre(FMLPreInitializationEvent event) {
    instance = this;
    worldtype = new WorldTypeRTG(ModInfo.WORLD_TYPE);
    DimensionManagerRTG.addRTGDimension(DimensionManagerRTG.OVERWORLD);
    RTGAPI.configPath = event.getModConfigurationDirectory() + File.separator + ModInfo.CONFIG_DIRECTORY + File.separator;
    RTGAPI.rtgConfig = new RTGConfig();
    RTGAPI.rtgConfig.load(configPath + "rtg.cfg");
    this.registerStructures();
}
Also used : WorldTypeRTG(rtg.world.WorldTypeRTG) RTGConfig(rtg.api.config.RTGConfig) WorldTypeMessageEventHandler(rtg.event.WorldTypeMessageEventHandler) EventHandler(net.minecraftforge.fml.common.Mod.EventHandler)

Aggregations

EventHandler (net.minecraftforge.fml.common.Mod.EventHandler)1 RTGConfig (rtg.api.config.RTGConfig)1 WorldTypeMessageEventHandler (rtg.event.WorldTypeMessageEventHandler)1 WorldTypeRTG (rtg.world.WorldTypeRTG)1