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
|
|
|
|
|
*
|
|
|
|
|
* <EFBFBD> 2015 Ellpeck
|
|
|
|
|
*/
|
|
|
|
|
|
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-10-02 19:58:03 +02:00
|
|
|
|
import ellpeck.actuallyadditions.nei.NeiScreenEvents;
|
2015-09-29 17:08:47 +02:00
|
|
|
|
import ellpeck.actuallyadditions.update.UpdateCheckerClientNotifier;
|
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
|
|
|
|
|
|
|
|
|
Util.registerEvent(new SmeltEvent());
|
|
|
|
|
Util.registerEvent(new CraftEvent());
|
2015-07-02 19:03:44 +02:00
|
|
|
|
Util.registerEvent(new LivingDropEvent());
|
2015-04-19 01:50:02 +02:00
|
|
|
|
Util.registerEvent(new PickupEvent());
|
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-09-27 15:31:43 +02:00
|
|
|
|
Util.registerEvent(new EntityConstructingEvent());
|
2015-07-10 13:08:20 +02:00
|
|
|
|
MinecraftForge.TERRAIN_GEN_BUS.register(new WorldDecorationEvent());
|
2015-03-07 02:23:31 +01:00
|
|
|
|
}
|
|
|
|
|
|
2015-09-29 17:08:47 +02:00
|
|
|
|
public static void initClient(){
|
|
|
|
|
Util.registerEvent(new TooltipEvent());
|
|
|
|
|
Util.registerEvent(new RenderPlayerEventAA());
|
|
|
|
|
|
2015-10-02 20:06:03 +02:00
|
|
|
|
if(Loader.isModLoaded("NotEnoughItems")){
|
2015-10-02 19:58:03 +02:00
|
|
|
|
Util.registerEvent(new NeiScreenEvents());
|
|
|
|
|
}
|
|
|
|
|
|
2015-09-29 17:08:47 +02:00
|
|
|
|
if(ConfigBoolValues.DO_UPDATE_CHECK.isEnabled()){
|
|
|
|
|
Util.registerEvent(new UpdateCheckerClientNotifier());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2015-03-07 02:23:31 +01:00
|
|
|
|
}
|