本文整理匯總了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});
}