2013-12-28 01:54:31 +01:00
|
|
|
package com.pahimar.ee3.proxy;
|
|
|
|
|
2014-07-15 18:24:18 +02:00
|
|
|
import com.pahimar.ee3.handler.CraftingHandler;
|
2014-05-23 00:35:31 +02:00
|
|
|
import com.pahimar.ee3.handler.ItemEventHandler;
|
2014-06-22 16:49:44 +02:00
|
|
|
import com.pahimar.ee3.handler.PlayerEventHandler;
|
2014-06-19 20:18:04 +02:00
|
|
|
import com.pahimar.ee3.handler.WorldEventHandler;
|
2014-04-11 01:59:04 +02:00
|
|
|
import com.pahimar.ee3.reference.Names;
|
2014-04-30 03:46:59 +02:00
|
|
|
import com.pahimar.ee3.tileentity.*;
|
2014-05-23 00:35:31 +02:00
|
|
|
import cpw.mods.fml.common.FMLCommonHandler;
|
2014-04-11 01:59:04 +02:00
|
|
|
import cpw.mods.fml.common.registry.GameRegistry;
|
2014-05-23 00:35:31 +02:00
|
|
|
import net.minecraftforge.common.MinecraftForge;
|
2014-04-11 01:59:04 +02:00
|
|
|
|
|
|
|
public abstract class CommonProxy implements IProxy
|
2013-12-28 01:54:31 +01:00
|
|
|
{
|
2014-05-23 00:35:31 +02:00
|
|
|
public void registerEventHandlers()
|
|
|
|
{
|
|
|
|
ItemEventHandler itemEventHandler = new ItemEventHandler();
|
2014-07-15 18:24:18 +02:00
|
|
|
CraftingHandler craftingHandler = new CraftingHandler();
|
2014-05-23 00:35:31 +02:00
|
|
|
|
|
|
|
FMLCommonHandler.instance().bus().register(itemEventHandler);
|
|
|
|
MinecraftForge.EVENT_BUS.register(itemEventHandler);
|
2014-06-19 20:18:04 +02:00
|
|
|
MinecraftForge.EVENT_BUS.register(new WorldEventHandler());
|
2014-06-22 16:49:44 +02:00
|
|
|
MinecraftForge.EVENT_BUS.register(new PlayerEventHandler());
|
2014-07-15 18:24:18 +02:00
|
|
|
FMLCommonHandler.instance().bus().register(craftingHandler);
|
|
|
|
MinecraftForge.EVENT_BUS.register(craftingHandler);
|
2014-05-23 00:35:31 +02:00
|
|
|
}
|
|
|
|
|
2014-04-11 01:59:04 +02:00
|
|
|
public void registerTileEntities()
|
|
|
|
{
|
2014-07-14 03:46:32 +02:00
|
|
|
GameRegistry.registerTileEntityWithAlternatives(TileEntityAlchemicalChest.class, Names.Blocks.ALCHEMICAL_CHEST, "tile." + Names.Blocks.ALCHEMICAL_CHEST);
|
|
|
|
GameRegistry.registerTileEntityWithAlternatives(TileEntityAlchemicalChestSmall.class, Names.Blocks.ALCHEMICAL_CHEST + "Small", "tile." + Names.Blocks.ALCHEMICAL_CHEST + "Small");
|
|
|
|
GameRegistry.registerTileEntityWithAlternatives(TileEntityAlchemicalChestMedium.class, Names.Blocks.ALCHEMICAL_CHEST + "Medium", "tile." + Names.Blocks.ALCHEMICAL_CHEST + "Medium");
|
|
|
|
GameRegistry.registerTileEntityWithAlternatives(TileEntityAlchemicalChestLarge.class, Names.Blocks.ALCHEMICAL_CHEST + "Large", "tile." + Names.Blocks.ALCHEMICAL_CHEST + "Large");
|
|
|
|
GameRegistry.registerTileEntityWithAlternatives(TileEntityAludel.class, Names.Blocks.ALUDEL, "tile." + Names.Blocks.ALUDEL);
|
|
|
|
GameRegistry.registerTileEntityWithAlternatives(TileEntityCalcinator.class, Names.Blocks.CALCINATOR, "tile." + Names.Blocks.CALCINATOR);
|
|
|
|
GameRegistry.registerTileEntityWithAlternatives(TileEntityGlassBell.class, Names.Blocks.GLASS_BELL, "tile." + Names.Blocks.GLASS_BELL);
|
|
|
|
GameRegistry.registerTileEntityWithAlternatives(TileEntityResearchStation.class, Names.Blocks.RESEARCH_STATION);
|
2014-04-11 01:59:04 +02:00
|
|
|
}
|
2013-12-28 01:54:31 +01:00
|
|
|
}
|