2015-08-29 14:33:25 +02:00
|
|
|
/*
|
2016-05-16 22:52:27 +02:00
|
|
|
* This file ("InitEvents.java") is part of the Actually Additions mod for Minecraft.
|
2015-08-29 14:33:25 +02:00
|
|
|
* It is created and owned by Ellpeck and distributed
|
|
|
|
* under the Actually Additions License to be found at
|
2016-05-16 22:52:27 +02:00
|
|
|
* http://ellpeck.de/actaddlicense
|
2015-08-29 14:33:25 +02:00
|
|
|
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
|
|
|
|
*
|
2016-05-16 22:52:27 +02:00
|
|
|
* © 2015-2016 Ellpeck Ellpeck
|
2015-08-29 14:33:25 +02:00
|
|
|
*/
|
|
|
|
|
2016-01-05 04:47:35 +01:00
|
|
|
package de.ellpeck.actuallyadditions.mod.event;
|
2015-03-07 02:23:31 +01:00
|
|
|
|
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;
|
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-07-17 06:51:19 +02:00
|
|
|
Util.registerEvent(new LogoutEvent());
|
2015-11-01 10:34:17 +01:00
|
|
|
Util.registerEvent(new WorldLoadingEvents());
|
2016-05-08 14:11:24 +02:00
|
|
|
Util.registerEvent(new BreakEvent());
|
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
|
|
|
}
|