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

50 lines
1.7 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
*/
2015-12-30 22:02:15 +01:00
package de.ellpeck.actuallyadditions.event;
import cpw.mods.fml.common.Loader;
2015-12-30 22:02:15 +01:00
import de.ellpeck.actuallyadditions.config.values.ConfigBoolValues;
import de.ellpeck.actuallyadditions.nei.NEIScreenEvents;
import de.ellpeck.actuallyadditions.update.UpdateCheckerClientNotificationEvent;
import de.ellpeck.actuallyadditions.util.ModUtil;
import de.ellpeck.actuallyadditions.util.Util;
2015-07-10 13:08:20 +02:00
import net.minecraftforge.common.MinecraftForge;
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-05-20 22:39:43 +02:00
Util.registerEvent(new BucketFillEvent());
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
}
}
}