本文整理汇总了Java中cpw.mods.fml.common.registry.GameRegistry.addShapedRecipe方法的典型用法代码示例。如果您正苦于以下问题:Java GameRegistry.addShapedRecipe方法的具体用法?Java GameRegistry.addShapedRecipe怎么用?Java GameRegistry.addShapedRecipe使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类cpw.mods.fml.common.registry.GameRegistry
的用法示例。
在下文中一共展示了GameRegistry.addShapedRecipe方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: registerRecipes
import cpw.mods.fml.common.registry.GameRegistry; //导入方法依赖的package包/类
private void registerRecipes() {
GameRegistry.addShapedRecipe(new ItemStack(imag_silicon_helmet), new Object[] { "ABA", "A A", 'A', ModuleCrafting.ingotImagSil, 'B', ModuleCrafting.resoCrystal });
GameRegistry.addShapedRecipe(new ItemStack(imag_silicon_chestplate), new Object[] { "A A", "ABA", "AAA", 'A', ModuleCrafting.ingotImagSil, 'B', ModuleCrafting.resoCrystal });
GameRegistry.addShapedRecipe(new ItemStack(imag_silicon_leggings), new Object[] { "ABA", "A A", "A A", 'A', ModuleCrafting.ingotImagSil, 'B', ModuleCrafting.resoCrystal });
GameRegistry.addShapedRecipe(new ItemStack(imag_silicon_boots), new Object[] { "A A", "ABA", 'A', ModuleCrafting.ingotImagSil, 'B', ModuleCrafting.resoCrystal });
GameRegistry.addShapedRecipe(new ItemStack(imag_energy_helmet), new Object[] { "ABA", "ACA", 'A', ModuleCrafting.constPlate, 'B', imag_silicon_helmet, 'C', ModuleCrafting.crystalNormal });
GameRegistry.addShapedRecipe(new ItemStack(imag_energy_chestplate), new Object[] { "A A", "ABA", "ACA", 'A', ModuleCrafting.constPlate, 'B', imag_silicon_chestplate, 'C', ModuleCrafting.crystalPure });
GameRegistry.addShapedRecipe(new ItemStack(imag_energy_leggings), new Object[] { "ABA", "ACA", "A A", 'A', ModuleCrafting.constPlate, 'B', imag_silicon_leggings, 'C', ModuleCrafting.crystalPure });
GameRegistry.addShapedRecipe(new ItemStack(imag_energy_boots), new Object[] { "ACA", "ABA", 'A', ModuleCrafting.constPlate, 'B', imag_silicon_boots, 'C', ModuleCrafting.crystalNormal });
}
示例2: CraftingLoader
import cpw.mods.fml.common.registry.GameRegistry; //导入方法依赖的package包/类
public CraftingLoader(){
GameRegistry.addShapedRecipe(new ItemStack(ItemLoader.ItemCursedLasso), new Object[]{"aba","bcb","aba",'a',Items.ghast_tear,'b',Items.string,'c',Items.ender_eye});
}