Search in sources :

Example 1 with EventManagerRTG

use of rtg.event.EventManagerRTG in project Realistic-Terrain-Generation by Team-RTG.

the class RTG method init.

@EventHandler
public void init(FMLInitializationEvent event) {
    eventMgr = new EventManagerRTG();
    eventMgr.registerEventHandlers();
    // This event handler unregisters itself, so it doesn't need to be a part of the event management system.
    if (config().ENABLE_WORLD_TYPE_NOTIFICATION_SCREEN.get()) {
        MinecraftForge.EVENT_BUS.register(WorldTypeMessageEventHandler.instance);
    }
}
Also used : EventManagerRTG(rtg.event.EventManagerRTG) WorldTypeMessageEventHandler(rtg.event.WorldTypeMessageEventHandler) EventHandler(net.minecraftforge.fml.common.Mod.EventHandler)

Aggregations

EventHandler (net.minecraftforge.fml.common.Mod.EventHandler)1 EventManagerRTG (rtg.event.EventManagerRTG)1 WorldTypeMessageEventHandler (rtg.event.WorldTypeMessageEventHandler)1