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();
}
}
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;
}
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();
}
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);
}
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);
}
Aggregations