Search in sources :

Example 1 with FactoryGuiHandler

use of buildcraft.factory.FactoryGuiHandler in project BuildCraft by BuildCraft.

the class BuildCraftFactory method fmlInit.

@Mod.EventHandler
public void fmlInit(FMLInitializationEvent evt) {
    NetworkRegistry.INSTANCE.registerGuiHandler(instance, new FactoryGuiHandler());
    BCRegistry.INSTANCE.registerTileEntity(TileMiningWell.class, "buildcraft.factory.MiningWell", "MiningWell");
    BCRegistry.INSTANCE.registerTileEntity(TileAutoWorkbench.class, "buildcraft.factory.AutoWorkbench", "AutoWorkbench");
    BCRegistry.INSTANCE.registerTileEntity(TilePump.class, "buildcraft.factory.Pump", "net.minecraft.src.buildcraft.factory.TilePump");
    BCRegistry.INSTANCE.registerTileEntity(TileFloodGate.class, "buildcraft.factory.FloodGate", "net.minecraft.src.buildcraft.factory.TileFloodGate");
    BCRegistry.INSTANCE.registerTileEntity(TileTank.class, "buildcraft.factory.Tank", "net.minecraft.src.buildcraft.factory.TileTank");
    BCRegistry.INSTANCE.registerTileEntity(TileRefinery.class, "buildcraft.factory.Refinery", "net.minecraft.src.buildcraft.factory.Refinery");
    BCRegistry.INSTANCE.registerTileEntity(TileChute.class, "buildcraft.factory.Chute", "net.minecraft.src.buildcraft.factory.TileHopper");
    BCRegistry.INSTANCE.registerTileEntity(TileEnergyHeater.class, "buildcraft.factory.TileEnergyHeater");
    BCRegistry.INSTANCE.registerTileEntity(TileHeatExchange_BC8.class, "buildcraft.factory.TileHeatExchange");
    BCRegistry.INSTANCE.registerTileEntity(TileDistiller_BC8.class, "buildcraft.factory.TileDistiller");
    if (Loader.isModLoaded("BuildCraft|Energy")) {
        ComplexRefiningManager.init();
    }
    FactoryProxy.proxy.fmlInit();
    BuilderAPI.schematicRegistry.registerSchematicBlock(refineryBlock, SchematicRefinery.class);
    BuilderAPI.schematicRegistry.registerSchematicBlock(tankBlock, SchematicTileIgnoreState.class);
    BuilderAPI.schematicRegistry.registerSchematicBlock(pumpBlock, SchematicPump.class);
    BuilderAPI.schematicRegistry.registerSchematicBlock(floodGateBlock, SchematicTileIgnoreState.class);
    BuilderAPI.schematicRegistry.registerSchematicBlock(autoWorkbenchBlock, SchematicAutoWorkbench.class);
    BuilderAPI.schematicRegistry.registerSchematicBlock(chuteBlock, SchematicTile.class);
    BuilderAPI.schematicRegistry.registerSchematicBlock(plainPipeBlock, SchematicFree.class);
    aLotOfCraftingAchievement = BuildCraftCore.achievementManager.registerAchievement(new Achievement("buildcraft|factory:achievement.aLotOfCrafting", "aLotOfCraftingAchievement", 1, 2, autoWorkbenchBlock, BuildCraftCore.woodenGearAchievement));
    straightDownAchievement = BuildCraftCore.achievementManager.registerAchievement(new Achievement("buildcraft|factory:achievement.straightDown", "straightDownAchievement", 5, 2, miningWellBlock, BuildCraftCore.ironGearAchievement));
    refineAndRedefineAchievement = BuildCraftCore.achievementManager.registerAchievement(new Achievement("buildcraft|factory:achievement.refineAndRedefine", "refineAndRedefineAchievement", 10, 0, refineryBlock, BuildCraftCore.diamondGearAchievement));
    if (BuildCraftCore.loadDefaultRecipes) {
        loadRecipes();
    }
}
Also used : FactoryGuiHandler(buildcraft.factory.FactoryGuiHandler) Achievement(net.minecraft.stats.Achievement)

Aggregations

FactoryGuiHandler (buildcraft.factory.FactoryGuiHandler)1 Achievement (net.minecraft.stats.Achievement)1