当前位置: 首页>>代码示例>>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;未经允许,请勿转载。