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


Java GameRegistry.addShapedRecipe方法代碼示例

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

}
 
開發者ID:Kanbe-Kotori,項目名稱:ExtraAcC,代碼行數:13,代碼來源:MyRegistry.java

示例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});
}
 
開發者ID:SihenZhang,項目名稱:CursedLasso,代碼行數:4,代碼來源:CraftingLoader.java


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