net.minecraftforge.common.AchievementPage Java Examples

The following examples show how to use net.minecraftforge.common.AchievementPage. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ProductionLine.java    From Production-Line with MIT License 5 votes vote down vote up
@Mod.EventHandler
    public void init(FMLInitializationEvent event) {
        PLOreDictionary.init();
        // register Recipes. 注册合成
//        PLRecipes.init();
        //register gui handler
        NetworkRegistry.INSTANCE.registerGuiHandler(INSTANCE, GuiHandler.getInstance());
        //register achievement
        PLAchievement.init();
        //register achievement page
        AchievementPage.registerAchievementPage(PLAchievement.pagePL);
        //register ore gen bus. 注册矿石生成总线
        PLWorldGen.init();
        proxy.init();
    }
 
Example #2
Source File: Achievements.java    From BaseMetals with GNU Lesser General Public License v2.1 5 votes vote down vote up
public static void init(){
	if(initDone)return;
	
	page = new AchievementPage(BaseMetals.NAME);
	AchievementPage.registerAchievementPage(page);
	
	this_is_new = makeAchievement("this_is_new",AchievementList.BUILD_FURNACE,0,0,Items.copper_ingot);
	blocktastic = makeAchievement("blocktastic",this_is_new,2,0,Blocks.copper_block);
	geologist = makeAchievement("geologist",this_is_new,4,2,Items.iron_crackhammer);
	metallurgy = makeAchievement("metallurgy",geologist,6,2,Items.brass_blend);
	brass_maker = makeAchievement("brass_maker",metallurgy,9,3,Items.brass_ingot);
	bronze_maker = makeAchievement("bronze_maker",metallurgy,9,4,Items.bronze_ingot);
	cupronickel_maker = makeAchievement("cupronickel_maker",metallurgy,9,5,Items.cupronickel_ingot);
	electrum_maker = makeAchievement("electrum_maker",metallurgy,9,6,Items.electrum_ingot);
	steel_maker = makeAchievement("steel_maker",metallurgy,9,7,Items.steel_ingot);
	invar_maker = makeAchievement("invar_maker",metallurgy,9,8,Items.invar_ingot);
	mithril_maker = makeAchievement("mithril_maker",metallurgy,11,10,Items.mithril_ingot);
	aquarium_maker = makeAchievement("aquarium_maker",metallurgy,11,12,Items.aquarium_ingot);
	demon_slayer = makeAchievement("demon_slayer",AchievementList.PORTAL,-5,5,Items.coldiron_sword);
	angel_of_death = makeAchievement("angel_of_death",mithril_maker,11,11,Items.mithril_sword);
	scuba_diver = makeAchievement("scuba_diver",aquarium_maker,11,13,Items.aquarium_sword);
	scuba_diver.setSpecial();
	juggernaut = makeAchievement("juggernaut",AchievementList.PORTAL,-7,3,Items.adamantine_helmet);
	juggernaut.setSpecial();
	moon_boots = makeAchievement("moon_boots",AchievementList.THE_END,-2,6,Items.starsteel_boots);
	moon_boots.setSpecial();
	
	
	initDone = true;
}
 
Example #3
Source File: AchievementHandler.java    From PneumaticCraft with GNU General Public License v3.0 5 votes vote down vote up
public static void init(){
    registerAcquire(0, 0, Itemss.ingotIronCompressed, null);
    registerAcquire(2, 0, Blockss.airCompressor, getAchieve(Itemss.ingotIronCompressed));
    registerAcquire(4, 0, Fluids.getBucket(Fluids.oil), getAchieve(Itemss.ingotIronCompressed));
    registerAcquire(6, 0, Blockss.refinery, getAchieve(Fluids.getBucket(Fluids.oil)));
    registerAcquire(8, 0, Itemss.plastic, getAchieve(Blockss.refinery));
    registerAcquire(10, 0, Blockss.uvLightBox, getAchieve(Itemss.plastic));
    registerAcquire(12, 0, Fluids.getBucket(Fluids.etchingAcid), getAchieve(Blockss.uvLightBox));

    register("dw9x9", 0, 2, new ItemStack(Blocks.cobblestone), null).setSpecial();

    AchievementPage.registerAchievementPage(new AchievementPage("PneumaticCraft", achieveList.values().toArray(new Achievement[achieveList.size()])));
}