當前位置: 首頁>>代碼示例>>Java>>正文


Java GameRegistry.addRecipe方法代碼示例

本文整理匯總了Java中net.minecraftforge.fml.common.registry.GameRegistry.addRecipe方法的典型用法代碼示例。如果您正苦於以下問題:Java GameRegistry.addRecipe方法的具體用法?Java GameRegistry.addRecipe怎麽用?Java GameRegistry.addRecipe使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在net.minecraftforge.fml.common.registry.GameRegistry的用法示例。


在下文中一共展示了GameRegistry.addRecipe方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: registerItemRecipes

import net.minecraftforge.fml.common.registry.GameRegistry; //導入方法依賴的package包/類
private void registerItemRecipes()
{
	this.registerLeaderRecipes(new ItemStack(this.claimOrder), Items.PAPER, Items.ARROW);
	this.registerLeaderRecipes(new ItemStack(this.paymentOrder), Items.PAPER, Items.BOWL);
	this.registerLeaderRecipes(new ItemStack(this.renameOrder), Items.PAPER, Items.BLAZE_POWDER);
	this.registerLeaderRecipes(new ItemStack(this.inheritanceDeed), Items.PAPER, Items.GOLD_INGOT);
	this.registerLeaderRecipes(new ItemStack(this.factionLedger), Items.PAPER, Items.BOOK);
	this.registerLeaderRecipes(new ItemStack(this.returnOrder), Items.PAPER, Items.MAP);

	GameRegistry.addShapelessRecipe(new ItemStack(this.playerIDCard), new ItemStack(Items.PAPER), new ItemStack(Items.PAPER), new ItemStack(Items.WOODEN_SWORD));

	GameRegistry.addRecipe(new ItemStack(this.territoryMap), " o ", "oco", " o ",
               'o', new ItemStack(this.claimOrder),
               'c', Items.COMPASS
       );
}
 
開發者ID:Domochevsky,項目名稱:minecraft-territorialdealings,代碼行數:17,代碼來源:Main.java

示例2: registerPayment

import net.minecraftforge.fml.common.registry.GameRegistry; //導入方法依賴的package包/類
private void registerPayment(ItemStack component, int value)
{
	ArrayList list = new ArrayList();

	ItemStack resultStack = new ItemStack(this.paymentOrder, 1, OreDictionary.WILDCARD_VALUE);

	list.add(resultStack);
	list.add(component);

	GameRegistry.addRecipe(new Recipe_Payment(new ItemStack(this.paymentOrder), list, value));
}
 
開發者ID:Domochevsky,項目名稱:minecraft-territorialdealings,代碼行數:12,代碼來源:Main.java

示例3: registerRecipe

import net.minecraftforge.fml.common.registry.GameRegistry; //導入方法依賴的package包/類
private static void registerRecipe()
{
	GameRegistry.addRecipe(new ItemStack(ItemLoader.itemCamera), new Object[]{
	                "[email protected]#", "$%@", "@@@", '@', Blocks.OBSIDIAN, '!', Blocks.GLOWSTONE , '#',Blocks.STONE_BUTTON,'$',Items.ENDER_EYE,'%',Blocks.REDSTONE_BLOCK
	        });
	GameRegistry.addShapelessRecipe(new ItemStack(ItemLoader.itemCamera),ItemLoader.itemTripod);
	GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(BlockLoader.pictureFrame), new Object[]{
            "!!", "@@", '!', "plankWood", '@', Blocks.WOOL
    }));
	GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(BlockLoader.pictureFrameMultiple), new Object[]{
            "!!!", "@@@","@@@", '!', "plankWood", '@', Blocks.WOOL
    }));
	GameRegistry.addRecipe(new ItemStack(ItemLoader.itemBattery), new Object[]{
            "!#!", "[email protected]!","[email protected]!", '!', Blocks.REDSTONE_BLOCK, '@', Blocks.OBSIDIAN,'#',Blocks.STONE_BUTTON
    });
	GameRegistry.addRecipe(new ItemStack(ItemLoader.itemFilm), new Object[]{
            "!!!", "@@@","!!!", '!', Items.ENDER_PEARL, '@', Blocks.GLASS_PANE
    });
	GameRegistry.addRecipe(new ItemStack(BlockLoader.photoprocessor), new Object[]{
            "[email protected]!", "!#!","!$!", '!', Blocks.IRON_BLOCK, '@', Items.DIAMOND,'#',Items.ENDER_PEARL,'$',Blocks.REDSTONE_BLOCK
    });
	GameRegistry.addShapelessRecipe(new ItemStack(ItemLoader.itemPhotoPaper), Items.MILK_BUCKET,Items.PAPER,Items.IRON_INGOT,Items.GOLD_INGOT);
	GameRegistry.addRecipe(new ItemStack(ItemLoader.itemCntsTempLiquid), new Object[]{
            "!!!", "@[email protected]","@#@", '!', Items.BLAZE_ROD, '@', Blocks.GLASS_PANE,'#',Items.WATER_BUCKET
    });
	GameRegistry.addRecipe(new ItemStack(ItemLoader.itemDevelopingAgent), new Object[]{
            "[email protected]#", "$%$","^&^", '!', new ItemStack(Items.DYE, 1, EnumDyeColor.RED.getDyeDamage()), '@',  new ItemStack(Items.DYE, 1, EnumDyeColor.YELLOW.getDyeDamage()),'#', new ItemStack(Items.DYE, 1, EnumDyeColor.BLUE.getDyeDamage()),'$',Items.GOLD_INGOT,'%',Items.ENDER_PEARL,'^',Blocks.GLASS_PANE,'&',Items.WATER_BUCKET
    });
	GameRegistry.addRecipe(new ItemStack(ItemLoader.itemTripod), new Object[]{
			" ! ", " @ ","@#@", '!', ItemLoader.itemCamera, '@', Blocks.IRON_BLOCK,'#',Items.ENDER_EYE
    });
	GameRegistry.addRecipe(new ItemStack(ItemLoader.itemGlassesHelmet), new Object[]{
			"!$!", "@#@","! !", '!', Items.STICK, '@', Blocks.GLASS_PANE,'#',Blocks.OBSIDIAN,'$',Items.ENDER_EYE
    });
	GameRegistry.addRecipe(new ItemStack(ItemLoader.itemPictureBook), new Object[]{
			"!!!", "[email protected]#","!##", '!', Items.PAPER, '@', Items.SLIME_BALL,'#',Items.LEATHER
    });
}
 
開發者ID:PorPit,項目名稱:MineCamera,代碼行數:39,代碼來源:CraftingLoader.java

示例4: init

import net.minecraftforge.fml.common.registry.GameRegistry; //導入方法依賴的package包/類
public static void init() {
	if (Config.enableAreaProtectorRecipe) GameRegistry.addRecipe(new ItemStack(ModBlocks.areaProtector),
			"*p~",
			"bdg",
			"~e*",
			'*', Item.getItemFromBlock(Blocks.OBSIDIAN),
			'p', Items.POTIONITEM,
			'~', Item.getItemFromBlock(Blocks.END_STONE),
			'b', Items.BONE,
			'd', Items.DIAMOND,
			'g', Items.GUNPOWDER,
			'e', Items.ENDER_PEARL);
}
 
開發者ID:Maxwell-lt,項目名稱:MobBlocker,代碼行數:14,代碼來源:ModRecipes.java

示例5: init

import net.minecraftforge.fml.common.registry.GameRegistry; //導入方法依賴的package包/類
@EventHandler
public void init(FMLInitializationEvent event) {
	sentinentAItem = new SentinentAI().setRegistryName(MODID, "sentinentai");
	GameRegistry.register(sentinentAItem);
	
	ModelResourceLocation sentinentAItemModel = new ModelResourceLocation("sentinentai:sentinentai", "inventory"); 
	Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(sentinentAItem, 0, sentinentAItemModel);
	
	bodyKitItem = new BodyKit().setRegistryName(MODID, "bodykit");
	GameRegistry.register(bodyKitItem);
	
	ModelResourceLocation bodyKitItemModel = new ModelResourceLocation("sentinentai:bodykit", "inventory"); 
	Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(bodyKitItem, 0, bodyKitItemModel);		

	coreItemEgg = new CoreItemEgg().setRegistryName(MODID, "coreitemegg");
	GameRegistry.register(coreItemEgg);
	
	ModelResourceLocation coreItemEggModel = new ModelResourceLocation("sentinentai:coreitemegg", "inventory"); 
	Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(coreItemEgg, 0, coreItemEggModel);		
	
	EntityRegistry.registerModEntity(new ResourceLocation(MODID,"corentity"), CoreEntity.class, "coreentity", 1, this, 80, 3, true);

	GameRegistry.addRecipe(
			new ItemStack(coreItemEgg),
			" s ",
			" r ",
			" b ",
			's', sentinentAItem,
			'r', Blocks.REDSTONE_BLOCK,
			'b', bodyKitItem);
}
 
開發者ID:hlgr360,項目名稱:SentinentAImod,代碼行數:32,代碼來源:Main.java

示例6: initializeCraftingRecipes

import net.minecraftforge.fml.common.registry.GameRegistry; //導入方法依賴的package包/類
public static void initializeCraftingRecipes() {
	GameRegistry.addRecipe(new ItemStack(ModBlocks.blockChatBomb),
			"WGW", "GNG", "WGW",
			'W', new ItemStack(Blocks.WOOL),
			'G', new ItemStack(Items.GUNPOWDER),
               'N', new ItemStack(Blocks.NOTEBLOCK));
}
 
開發者ID:MasterEric,項目名稱:ChatBomb,代碼行數:8,代碼來源:ModRecipes.java

示例7: init

import net.minecraftforge.fml.common.registry.GameRegistry; //導入方法依賴的package包/類
public static void init() {
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MBlocks.GENERATOR_TRASH), "ifi", "fsf", "ifi", 'f', new ItemStack(Blocks.FURNACE), 's', new ItemStack(MBlocks.STONE_REINFORCED), 'i', "ingotIron"));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MBlocks.GENERATOR_COAL), "ifi", "fcf", "ifi", 'f', new ItemStack(Blocks.FURNACE), 'c', new ItemStack(Items.COAL), 'i', "ingotIron"));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MBlocks.CRANK), " ww", "twt", "sss", 'w', "plankWood", 's', new ItemStack(MBlocks.STONE_REINFORCED), 't', new ItemStack(Blocks.STONE_SLAB)));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MBlocks.STONE_REINFORCED), "sis", "isi", "sis", 'i', "ingotIron", 's', "stone"));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MBlocks.ACCUMULATOR_STONE_REINFORCED), "sis", "iri", "sis", 'i', "ingotIron", 's', new ItemStack(MBlocks.STONE_REINFORCED), 'r', "blockRedstone"));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MBlocks.ACCUMULATOR_IRON), "sis", "iri", "sis", 'i', "blockIron", 'r', new ItemStack(MBlocks.ACCUMULATOR_STONE_REINFORCED), 's', new ItemStack(MBlocks.STONE_REINFORCED)));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MItems.WRENCH), "s s", "sss", " s ", 's', new ItemStack(MBlocks.STONE_REINFORCED)));

    registerFurnaceRecipes();
}
 
開發者ID:jaredlll08,項目名稱:Machines-and-Stuff,代碼行數:12,代碼來源:RecipeData.java

示例8: init

import net.minecraftforge.fml.common.registry.GameRegistry; //導入方法依賴的package包/類
@EventHandler
public void init(FMLInitializationEvent event){
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(blockWopper),
            "W W", "WCW", " W ",
            'W', "plankWood",
            'C', "chestWood"));
}
 
開發者ID:Ellpeck,項目名稱:Wopper,代碼行數:8,代碼來源:Wopper.java

示例9: registerCrafting

import net.minecraftforge.fml.common.registry.GameRegistry; //導入方法依賴的package包/類
private void registerCrafting() {
	GameRegistry.addRecipe(new ShapedOreRecipe(ModItems.pole, "#", "#", '#', Items.STICK));
	GameRegistry.addShapedRecipe(ModItems.woodSpear, 
			"#",
			"$",
			"$",
			'#', new ItemStack(Items.WOODEN_SWORD),
			'$', ModItems.pole);
	GameRegistry.addShapedRecipe(ModItems.stoneSpear, 
			"#",
			"$",
			"$",
			'#', new ItemStack(Items.STONE_SWORD),
			'$', ModItems.pole);
	GameRegistry.addShapedRecipe(ModItems.ironSpear, 
			"#",
			"$",
			"$",
			'#', new ItemStack(Items.IRON_SWORD),
			'$', ModItems.pole);
	GameRegistry.addShapedRecipe(ModItems.goldSpear, 
			"#",
			"$",
			"$",
			'#', new ItemStack(Items.GOLDEN_SWORD),
			'$', ModItems.pole);
	GameRegistry.addShapedRecipe(ModItems.diamondSpear, 
			"#",
			"$",
			"$",
			'#', new ItemStack(Items.DIAMOND_SWORD),
			'$', ModItems.pole);
}
 
開發者ID:TheTrueForce,項目名稱:Polearms,代碼行數:34,代碼來源:CommonProxy.java

示例10: initRecipes

import net.minecraftforge.fml.common.registry.GameRegistry; //導入方法依賴的package包/類
public static void initRecipes() {
	
	if (!UniqueCrops.baublesLoaded) return;
	
	GameRegistry.addRecipe(new ItemStack(emblemMelee), " d ", "gDi", " w " , 'd', Items.DIAMOND_SWORD, 'g', Items.GOLDEN_SWORD, 'i', Items.IRON_SWORD, 'w', Items.WOODEN_SWORD, 'D', UCBlocks.darkBlock);
	GameRegistry.addRecipe(new ItemStack(emblemScarab), "gGg", "GDG", "gGg", 'g', Items.GOLD_INGOT, 'G', Blocks.GOLD_BLOCK, 'D', UCBlocks.darkBlock);
	GameRegistry.addRecipe(new ItemStack(emblemTransformation), " P ", "fDf", " f ", 'P', UCItems.generic.createStack(EnumItems.POTIONSPLASH), 'f', Items.FEATHER, 'D', UCBlocks.darkBlock);
	GameRegistry.addRecipe(new ItemStack(emblemPowerfist), " p ", "BDB", " b ", 'p', Items.DIAMOND_PICKAXE, 'B', Items.BLAZE_ROD, 'b', Items.BLAZE_POWDER, 'D', UCBlocks.darkBlock);
	GameRegistry.addRecipe(new ItemStack(emblemRainbow), "RGB", "YDb", "PNW", 'R', new ItemStack(Blocks.WOOL, 1, EnumDyeColor.RED.getMetadata()), 'G', new ItemStack(Blocks.WOOL, 1, EnumDyeColor.GREEN.getMetadata()), 'B', new ItemStack(Blocks.WOOL, 1, EnumDyeColor.BLUE.getMetadata()), 'Y', new ItemStack(Blocks.WOOL, 1, EnumDyeColor.YELLOW.getMetadata()), 'b', new ItemStack(Blocks.WOOL, 1, EnumDyeColor.BLACK.getMetadata()), 'P', new ItemStack(Blocks.WOOL, 1, EnumDyeColor.PURPLE.getMetadata()), 'N', new ItemStack(Blocks.WOOL, 1, EnumDyeColor.BROWN.getMetadata()), 'W', new ItemStack(Blocks.WOOL, 1, EnumDyeColor.WHITE.getMetadata()), 'D', UCBlocks.darkBlock);
	GameRegistry.addRecipe(new ItemStack(emblemFood), "PPP", "PDP", "PPP", 'P', Items.POTATO, 'D', UCBlocks.darkBlock);
	GameRegistry.addRecipe(new ItemStack(emblemIronstomach), "SgP", "iDe", "RdC", 'S', Items.COOKED_BEEF, 'g', Items.GOLD_INGOT, 'P', Items.COOKED_PORKCHOP, 'i', Items.IRON_INGOT, 'D', UCBlocks.darkBlock, 'e', Items.EMERALD, 'R', Items.COOKED_RABBIT, 'd', Items.DIAMOND, 'C', Items.COOKED_CHICKEN);
	GameRegistry.addRecipe(new ItemStack(emblemDefense), "ABA", "SDS", "ABA", 'A', Items.ARROW, 'B', Items.BOW, 'D', UCBlocks.darkBlock, 'S', Items.SHIELD);
	GameRegistry.addRecipe(new ItemStack(emblemLeaf), "lLl", "LDL", "lLl", 'l', Blocks.LEAVES, 'L', Blocks.LOG, 'D', UCBlocks.darkBlock);
	GameRegistry.addShapelessRecipe(new ItemStack(emblemPacifism), emblemMelee, emblemScarab, emblemTransformation, emblemPowerfist, emblemRainbow, emblemFood, emblemIronstomach, emblemDefense, emblemLeaf);
}
 
開發者ID:bafomdad,項目名稱:uniquecrops,代碼行數:16,代碼來源:UCBaubles.java

示例11: preInit

import net.minecraftforge.fml.common.registry.GameRegistry; //導入方法依賴的package包/類
@Mod.EventHandler
public void preInit(FMLPreInitializationEvent e) {
    registerBlock(MELTERY);
    GameRegistry.registerTileEntity(TileMeltery.class, "tile.meltery");
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(MELTERY), "I I", "I I", "BBB", 'I', "ingotIron", 'B', Blocks.BRICK_BLOCK));
    proxy.preInit(e);
}
 
開發者ID:primetoxinz,項目名稱:Meltery,代碼行數:8,代碼來源:Meltery.java

示例12: registerRecipe

import net.minecraftforge.fml.common.registry.GameRegistry; //導入方法依賴的package包/類
public void registerRecipe() {
    GameRegistry.addRecipe(new ItemStack(this), " I ", "III", " I ", 'I', Blocks.IRON_BLOCK);
}
 
開發者ID:CJ-MC-Mods,項目名稱:SimpleTractor,代碼行數:4,代碼來源:ItemTractor.java

示例13: addRecipes

import net.minecraftforge.fml.common.registry.GameRegistry; //導入方法依賴的package包/類
private void addRecipes() {

		ItemStack coalBlock = new ItemStack(Blocks.COAL_BLOCK);

		ItemStack redPane = new ItemStack(Blocks.STAINED_GLASS_PANE, 1, 14);
		ItemStack bluePane = new ItemStack(Blocks.STAINED_GLASS_PANE, 1, 3);
		ItemStack whitePane = new ItemStack(Blocks.STAINED_GLASS_PANE, 1, 0);
		ItemStack yellowPane = new ItemStack(Blocks.STAINED_GLASS_PANE, 1, 4);
		ItemStack cyanPane = new ItemStack(Blocks.STAINED_GLASS_PANE, 1, 9);
		ItemStack limePane = new ItemStack(Blocks.STAINED_GLASS_PANE, 1, 5);

		ItemStack panel0 = new ItemStack(ModItems.DANK_NULL_PANEL);
		ItemStack panel1 = new ItemStack(ModItems.DANK_NULL_PANEL, 1, 1);
		ItemStack panel2 = new ItemStack(ModItems.DANK_NULL_PANEL, 1, 2);
		ItemStack panel3 = new ItemStack(ModItems.DANK_NULL_PANEL, 1, 3);
		ItemStack panel4 = new ItemStack(ModItems.DANK_NULL_PANEL, 1, 4);
		ItemStack panel5 = new ItemStack(ModItems.DANK_NULL_PANEL, 1, 5);

		ItemStack dankNull0 = new ItemStack(ModItems.DANK_NULL, 1, 0);
		ItemStack dankNull1 = new ItemStack(ModItems.DANK_NULL, 1, 1);
		ItemStack dankNull2 = new ItemStack(ModItems.DANK_NULL, 1, 2);
		ItemStack dankNull3 = new ItemStack(ModItems.DANK_NULL, 1, 3);
		ItemStack dankNull4 = new ItemStack(ModItems.DANK_NULL, 1, 4);
		ItemStack dankNull5 = new ItemStack(ModItems.DANK_NULL, 1, 5);

		CRAFTING_RECIPES.add(panelRedstone = new ShapedOreRecipe(panel0, "aca", "cbc", "aca", 'a', new ItemStack(Blocks.REDSTONE_BLOCK), 'b', redPane, 'c', coalBlock));
		CRAFTING_RECIPES.add(panelLapis = new ShapedOreRecipe(panel1, "aca", "cbc", "aca", 'a', new ItemStack(Blocks.LAPIS_BLOCK), 'b', bluePane, 'c', coalBlock));
		CRAFTING_RECIPES.add(panelIron = new ShapedOreRecipe(panel2, "aca", "cbc", "aca", 'a', new ItemStack(Blocks.IRON_BLOCK), 'b', whitePane, 'c', coalBlock));
		CRAFTING_RECIPES.add(panelGold = new ShapedOreRecipe(panel3, "aca", "cbc", "aca", 'a', new ItemStack(Blocks.GOLD_BLOCK), 'b', yellowPane, 'c', coalBlock));
		CRAFTING_RECIPES.add(panelDiamond = new ShapedOreRecipe(panel4, "aca", "cbc", "aca", 'a', new ItemStack(Blocks.DIAMOND_BLOCK), 'b', cyanPane, 'c', coalBlock));
		CRAFTING_RECIPES.add(panelEmerald = new ShapedOreRecipe(panel5, "aca", "cbc", "aca", 'a', new ItemStack(Blocks.EMERALD_BLOCK), 'b', limePane, 'c', coalBlock));

		CRAFTING_RECIPES.add(dankNullRedstone = new ShapedOreRecipe(dankNull0, " a ", "aaa", " a ", 'a', panel0));
		CRAFTING_RECIPES.add(dankNullLapis = new ShapedOreRecipe(dankNull1, " a ", "aaa", " a ", 'a', panel1));
		CRAFTING_RECIPES.add(dankNullIron = new ShapedOreRecipe(dankNull2, " a ", "aaa", " a ", 'a', panel2));
		CRAFTING_RECIPES.add(dankNullGold = new ShapedOreRecipe(dankNull3, " a ", "aaa", " a ", 'a', panel3));
		CRAFTING_RECIPES.add(dankNullDiamond = new ShapedOreRecipe(dankNull4, " a ", "aaa", " a ", 'a', panel4));
		CRAFTING_RECIPES.add(dankNullEmerald = new ShapedOreRecipe(dankNull5, " a ", "aaa", " a ", 'a', panel5));

		CRAFTING_RECIPES.add(upgradeDankNullToLapis = new ShapedOreRecipe(dankNull1, " a ", "aba", " a ", 'a', panel1, 'b', dankNull0));
		CRAFTING_RECIPES.add(upgradeDankNullToIron = new ShapedOreRecipe(dankNull2, " a ", "aba", " a ", 'a', panel2, 'b', dankNull1));
		CRAFTING_RECIPES.add(upgradeDankNullToGold = new ShapedOreRecipe(dankNull3, " a ", "aba", " a ", 'a', panel3, 'b', dankNull2));
		CRAFTING_RECIPES.add(upgradeDankNullToDiamond = new ShapedOreRecipe(dankNull4, " a ", "aba", " a ", 'a', panel4, 'b', dankNull3));
		CRAFTING_RECIPES.add(upgradeDankNullToEmerald = new ShapedOreRecipe(dankNull5, " a ", "aba", " a ", 'a', panel5, 'b', dankNull4));

		CRAFTING_RECIPES.add(dankNullDock = new ShapedOreRecipe(new ItemStack(ModBlocks.DANKNULL_DOCK), "aba", "bcb", "aba", 'a', new ItemStack(Items.EMERALD), 'b', new ItemStack(Items.REDSTONE), 'c', new ItemStack(Blocks.OBSIDIAN)));

		for (IRecipe recipe : CRAFTING_RECIPES) {
			GameRegistry.addRecipe(recipe);
		}
	}
 
開發者ID:p455w0rd,項目名稱:DankNull,代碼行數:52,代碼來源:ModRecipes.java

示例14: init

import net.minecraftforge.fml.common.registry.GameRegistry; //導入方法依賴的package包/類
public static void init() {
	/*
	GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.HEATER), new Object[] {
			"aba", "bcb", "aba", Character.valueOf('b'), new ItemStack(Items.REDSTONE), Character.valueOf('c'), new ItemStack(Items.BLAZE_ROD), Character.valueOf('a'), new ItemStack(Blocks.IRON_BLOCK)
	}));
	
	GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.AC), new Object[] {
			"aba", "bcb", "aba", Character.valueOf('b'), new ItemStack(Items.REDSTONE), Character.valueOf('c'), new ItemStack(TANItems.freeze_rod), Character.valueOf('a'), new ItemStack(Blocks.IRON_BLOCK)
	}));
	*/
	GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.TEMP_REGULATOR), new Object[] {
			"aaa",
			"bcd",
			"eee",
			Character.valueOf('a'),
			new ItemStack(Items.BLAZE_ROD),
			Character.valueOf('b'),
			new ItemStack(TANBlocks.temperature_coil),
			Character.valueOf('c'),
			new ItemStack(Blocks.IRON_BLOCK),
			Character.valueOf('d'),
			new ItemStack(TANBlocks.temperature_coil, 1, 1),
			Character.valueOf('e'),
			new ItemStack(TANItems.freeze_rod)
	}));

	GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.TEMP_REGULATOR), new Object[] {
			"aba",
			"aca",
			"ada",
			Character.valueOf('a'),
			new ItemStack(Items.IRON_INGOT),
			Character.valueOf('b'),
			new ItemStack(TANBlocks.temperature_coil),
			Character.valueOf('c'),
			new ItemStack(ModBlocks.TEMP_REGULATOR),
			Character.valueOf('d'),
			new ItemStack(TANBlocks.temperature_coil, 1, 1)
	}));

	ItemStack waterBottle = PotionUtils.addPotionToItemStack(new ItemStack(Items.POTIONITEM), PotionTypes.WATER);
	GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.THIRST_QUENCHER), new Object[] {
			"aba",
			"aca",
			"ada",
			Character.valueOf('a'),
			new ItemStack(Items.IRON_INGOT),
			Character.valueOf('b'),
			new ItemStack(TANItems.charcoal_filter),
			Character.valueOf('c'),
			new ItemStack(TANItems.canteen),
			Character.valueOf('d'),
			waterBottle
	}));

}
 
開發者ID:p455w0rd,項目名稱:ToughExpansion,代碼行數:57,代碼來源:ModRecipes.java

示例15: init

import net.minecraftforge.fml.common.registry.GameRegistry; //導入方法依賴的package包/類
public static void init() {
  initHelmet();
  GameRegistry.addRecipe(new ItemStack(ItemRedstoneArmor.INSTANCE_HELMET), "ggg", "grg", "   ", 'g', Items.GOLD_INGOT, 'r', Blocks.REDSTONE_BLOCK);
  GameRegistry.addRecipe(new ItemStack(ItemRedstoneArmor.INSTANCE_HELMET), "   ", "ggg", "grg", 'g', Items.GOLD_INGOT, 'r', Blocks.REDSTONE_BLOCK);
}
 
開發者ID:ToroCraft,項目名稱:PowerProbe,代碼行數:6,代碼來源:ItemRedstoneArmor.java


注:本文中的net.minecraftforge.fml.common.registry.GameRegistry.addRecipe方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。