ActuallyAdditions/src/main/java/de/ellpeck/actuallyadditions/mod/event/InitEvents.java

49 lines
1.6 KiB
Java
Raw Normal View History

2015-08-29 14:33:25 +02:00
/*
* This file ("InitEvents.java") is part of the Actually Additions Mod for Minecraft.
* It is created and owned by Ellpeck and distributed
* under the Actually Additions License to be found at
2016-01-03 16:05:51 +01:00
* http://ellpeck.de/actaddlicense/
2015-08-29 14:33:25 +02:00
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
*
2016-01-03 16:05:51 +01:00
* © 2016 Ellpeck
2015-08-29 14:33:25 +02:00
*/
2016-01-05 04:47:35 +01:00
package de.ellpeck.actuallyadditions.mod.event;
2016-01-05 04:47:35 +01:00
import de.ellpeck.actuallyadditions.mod.config.values.ConfigBoolValues;
import de.ellpeck.actuallyadditions.mod.nei.NEIScreenEvents;
import de.ellpeck.actuallyadditions.mod.update.UpdateCheckerClientNotificationEvent;
import de.ellpeck.actuallyadditions.mod.util.ModUtil;
import de.ellpeck.actuallyadditions.mod.util.Util;
2015-07-10 13:08:20 +02:00
import net.minecraftforge.common.MinecraftForge;
2016-01-07 18:20:59 +01:00
import net.minecraftforge.fml.common.Loader;
public class InitEvents{
public static void init(){
2015-07-01 21:32:48 +02:00
ModUtil.LOGGER.info("Initializing Events...");
2015-11-23 19:17:17 +01:00
Util.registerEvent(new PlayerObtainEvents());
2015-07-02 19:03:44 +02:00
Util.registerEvent(new LivingDropEvent());
2015-05-07 16:36:29 +02:00
Util.registerEvent(new EntityLivingEvent());
2015-07-17 06:51:19 +02:00
Util.registerEvent(new LogoutEvent());
2015-11-01 10:34:17 +01:00
Util.registerEvent(new WorldLoadingEvents());
2015-07-10 13:08:20 +02:00
MinecraftForge.TERRAIN_GEN_BUS.register(new WorldDecorationEvent());
2015-12-20 20:35:10 +01:00
}
2015-09-29 17:08:47 +02:00
public static void initClient(){
Util.registerEvent(new TooltipEvent());
Util.registerEvent(new HudEvent());
2015-09-29 17:08:47 +02:00
2015-10-02 20:06:03 +02:00
if(Loader.isModLoaded("NotEnoughItems")){
2015-11-27 15:22:44 +01:00
Util.registerEvent(new NEIScreenEvents());
}
if(ConfigBoolValues.DO_UPDATE_CHECK.isEnabled() && !Util.isDevVersion()){
2015-11-23 19:17:17 +01:00
Util.registerEvent(new UpdateCheckerClientNotificationEvent());
2015-09-29 17:08:47 +02:00
}
}
}