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
|
|
|
|
* http://github.com/Ellpeck/ActuallyAdditions/blob/master/README.md
|
|
|
|
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
|
|
|
|
*
|
2015-11-02 20:55:19 +01:00
|
|
|
* © 2015 Ellpeck
|
2015-08-29 14:33:25 +02:00
|
|
|
*/
|
|
|
|
|
2015-03-07 12:51:28 +01:00
|
|
|
package ellpeck.actuallyadditions.event;
|
2015-03-07 02:23:31 +01:00
|
|
|
|
2015-10-02 19:58:03 +02:00
|
|
|
import cpw.mods.fml.common.Loader;
|
2015-09-29 17:08:47 +02:00
|
|
|
import ellpeck.actuallyadditions.config.values.ConfigBoolValues;
|
2015-11-27 15:22:44 +01:00
|
|
|
import ellpeck.actuallyadditions.nei.NEIScreenEvents;
|
2015-11-23 19:17:17 +01:00
|
|
|
import ellpeck.actuallyadditions.update.UpdateCheckerClientNotificationEvent;
|
2015-07-01 21:32:48 +02:00
|
|
|
import ellpeck.actuallyadditions.util.ModUtil;
|
2015-03-07 12:51:28 +01:00
|
|
|
import ellpeck.actuallyadditions.util.Util;
|
2015-07-10 13:08:20 +02:00
|
|
|
import net.minecraftforge.common.MinecraftForge;
|
2015-03-07 02:23:31 +01:00
|
|
|
|
|
|
|
public class InitEvents{
|
|
|
|
|
|
|
|
public static void init(){
|
2015-07-01 21:32:48 +02:00
|
|
|
ModUtil.LOGGER.info("Initializing Events...");
|
2015-03-07 02:23:31 +01:00
|
|
|
|
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-03-07 02:23:31 +01:00
|
|
|
}
|
|
|
|
|
2015-09-29 17:08:47 +02:00
|
|
|
public static void initClient(){
|
|
|
|
Util.registerEvent(new TooltipEvent());
|
2015-12-21 22:18:33 +01:00
|
|
|
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());
|
2015-10-02 19:58:03 +02:00
|
|
|
}
|
|
|
|
|
2015-12-13 23:01:56 +01:00
|
|
|
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
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-03-07 02:23:31 +01:00
|
|
|
}
|