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