Search in sources :

Example 1 with SiliconGuiHandler

use of buildcraft.silicon.SiliconGuiHandler in project BuildCraft by BuildCraft.

the class BuildCraftSilicon method init.

@Mod.EventHandler
public void init(FMLInitializationEvent evt) {
    channels = NetworkRegistry.INSTANCE.newChannel(DefaultProps.NET_CHANNEL_NAME + "-SILICON", new ChannelHandler(), new PacketHandler());
    NetworkRegistry.INSTANCE.registerGuiHandler(instance, new SiliconGuiHandler());
    BCRegistry.INSTANCE.registerTileEntity(TileLaser.class, "buildcraft.silicon.TileLaser", "net.minecraft.src.buildcraft.factory.TileLaser");
    BCRegistry.INSTANCE.registerTileEntity(TileAssemblyTable.class, "buildcraft.silicon.TileAssemblyTable", "net.minecraft.src.buildcraft.factory.TileAssemblyTable");
    BCRegistry.INSTANCE.registerTileEntity(TileAdvancedCraftingTable.class, "buildcraft.silicon.TileAdvancedCraftingTable", "net.minecraft.src.buildcraft.factory.TileAssemblyAdvancedWorkbench");
    BCRegistry.INSTANCE.registerTileEntity(TileIntegrationTable.class, "buildcraft.silicon.TileIntegrationTable", "net.minecraft.src.buildcraft.factory.TileIntegrationTable");
    BCRegistry.INSTANCE.registerTileEntity(TileChargingTable.class, "buildcraft.silicon.TileChargingTable", "net.minecraft.src.buildcraft.factory.TileChargingTable");
    BCRegistry.INSTANCE.registerTileEntity(TileProgrammingTable.class, "buildcraft.silicon.TileProgrammingTable", "net.minecraft.src.buildcraft.factory.TileProgrammingTable");
    timeForSomeLogicAchievement = BuildCraftCore.achievementManager.registerAchievement(new Achievement("buildcraft|silicon:achievement.timeForSomeLogic", "timeForSomeLogicAchievement", 9, -2, assemblyTableBlock, BuildCraftCore.diamondGearAchievement));
    tinglyLaserAchievement = BuildCraftCore.achievementManager.registerAchievement(new Achievement("buildcraft|silicon:achievement.tinglyLaser", "tinglyLaserAchievement", 11, -2, laserBlock, timeForSomeLogicAchievement));
    if (BuildCraftCore.loadDefaultRecipes) {
        loadRecipes();
    }
    SiliconProxy.proxy.registerRenderers();
}
Also used : PacketHandler(buildcraft.core.lib.network.base.PacketHandler) SiliconGuiHandler(buildcraft.silicon.SiliconGuiHandler) ChannelHandler(buildcraft.core.lib.network.base.ChannelHandler) Achievement(net.minecraft.stats.Achievement)

Aggregations

ChannelHandler (buildcraft.core.lib.network.base.ChannelHandler)1 PacketHandler (buildcraft.core.lib.network.base.PacketHandler)1 SiliconGuiHandler (buildcraft.silicon.SiliconGuiHandler)1 Achievement (net.minecraft.stats.Achievement)1