Search in sources :

Example 6 with Achievement

use of net.minecraft.stats.Achievement 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)

Example 7 with Achievement

use of net.minecraft.stats.Achievement in project PneumaticCraft by MineMaarten.

the class AchievementHandler method register.

private static Achievement register(String id, int x, int y, ItemStack icon, Achievement parentAchievement) {
    Achievement achieve = new Achievement(id, id, x, y, icon, parentAchievement);
    achieve.initIndependentStat();
    achieve.registerStat();
    achieveList.put(id, achieve);
    return achieve;
}
Also used : Achievement(net.minecraft.stats.Achievement)

Example 8 with Achievement

use of net.minecraft.stats.Achievement in project Minechem by iopleke.

the class AchievementHandler method initMinechem.

private static void initMinechem() {
    Achievement journal = AchievementRegistry.getInstance().addAchievement(ItemRegistry.journal.getUnlocalizedName(), 0, 0, ItemRegistry.journal);
    Achievement microscope = AchievementRegistry.getInstance().addAchievement(BlockRegistry.opticalMicroscope.getUnlocalizedName(), 1, 3, BlockRegistry.opticalMicroscope, journal);
    Achievement electrolysis = AchievementRegistry.getInstance().addAchievement(BlockRegistry.electrolysisBlock.getUnlocalizedName(), 3, 3, BlockRegistry.electrolysisBlock, microscope);
    Achievement crucible = AchievementRegistry.getInstance().addAchievement(BlockRegistry.electricCrucibleBlock.getUnlocalizedName(), -2, 3, BlockRegistry.electricCrucibleBlock, microscope);
    AchievementRegistry.getInstance().registerMinechemAchievements();
}
Also used : Achievement(net.minecraft.stats.Achievement)

Example 9 with Achievement

use of net.minecraft.stats.Achievement in project Minechem by iopleke.

the class AchievementRegistry method registerElementAchievements.

/**
     * Registers {@link minechem.achievement.ElementAchievement}s to the periodic table page
     */
public void registerElementAchievements() {
    Collection<Achievement> achievements = elementsAchievementMap.values();
    for (Achievement achievement : achievements) {
        achievement.registerStat();
    }
    elementsPage = new ElementAchievementPage("Periodic Table", achievements.toArray(new Achievement[achievements.size()]));
    AchievementPage.registerAchievementPage(elementsPage);
}
Also used : ElementAchievementPage(minechem.achievement.ElementAchievementPage) Achievement(net.minecraft.stats.Achievement) ElementAchievement(minechem.achievement.ElementAchievement)

Example 10 with Achievement

use of net.minecraft.stats.Achievement in project Minechem by iopleke.

the class AchievementRegistry method registerMinechemAchievements.

/**
     * Registers {@link minechem.achievement.ElementAchievement}s to the minechem page
     */
public void registerMinechemAchievements() {
    Collection<Achievement> achievements = minechemAchievementMap.values();
    for (Achievement achievement : achievements) {
        achievement.registerStat();
    }
    minechemPage = new AchievementPage(Compendium.Naming.name, achievements.toArray(new Achievement[achievements.size()]));
    AchievementPage.registerAchievementPage(minechemPage);
}
Also used : AchievementPage(net.minecraftforge.common.AchievementPage) ElementAchievementPage(minechem.achievement.ElementAchievementPage) Achievement(net.minecraft.stats.Achievement) ElementAchievement(minechem.achievement.ElementAchievement)

Aggregations

Achievement (net.minecraft.stats.Achievement)15 ItemStack (net.minecraft.item.ItemStack)5 AchievementPage (net.minecraftforge.common.AchievementPage)4 ChannelHandler (buildcraft.core.lib.network.base.ChannelHandler)3 PacketHandler (buildcraft.core.lib.network.base.PacketHandler)3 ElementAchievement (minechem.achievement.ElementAchievement)3 ElementAchievementPage (minechem.achievement.ElementAchievementPage)2 IFillerPattern (buildcraft.api.filler.IFillerPattern)1 RealBlueprintDeployer (buildcraft.builders.blueprints.RealBlueprintDeployer)1 SpringPopulate (buildcraft.core.gen.SpringPopulate)1 TabletProgramMenuFactory (buildcraft.core.tablet.TabletProgramMenuFactory)1 EnergyStatementProvider (buildcraft.energy.statements.EnergyStatementProvider)1 FactoryGuiHandler (buildcraft.factory.FactoryGuiHandler)1 SiliconGuiHandler (buildcraft.silicon.SiliconGuiHandler)1 Player (com.minecolonies.api.colony.permissions.Player)1 Block (net.minecraft.block.Block)1 EntityPlayer (net.minecraft.entity.player.EntityPlayer)1 Item (net.minecraft.item.Item)1 FluidStack (net.minecraftforge.fluids.FluidStack)1 NotNull (org.jetbrains.annotations.NotNull)1