当前位置: 首页>>代码示例>>Java>>正文


Java GameRegistry.addShapelessRecipe方法代码示例

本文整理汇总了Java中cpw.mods.fml.common.registry.GameRegistry.addShapelessRecipe方法的典型用法代码示例。如果您正苦于以下问题:Java GameRegistry.addShapelessRecipe方法的具体用法?Java GameRegistry.addShapelessRecipe怎么用?Java GameRegistry.addShapelessRecipe使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在cpw.mods.fml.common.registry.GameRegistry的用法示例。


在下文中一共展示了GameRegistry.addShapelessRecipe方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: addRecipes

import cpw.mods.fml.common.registry.GameRegistry; //导入方法依赖的package包/类
@Override
public void addRecipes() 
{ 
	// A bundle of ice-laced iron ingots (4), merged with a slime ball
       GameRegistry.addShapelessRecipe(new ItemStack(this),
               Items.iron_ingot,
               Items.iron_ingot,
               Items.iron_ingot,
               Items.iron_ingot,
               Blocks.ice,
               Blocks.ice,
               Blocks.ice,
               Blocks.ice,
               Items.slime_ball
       );
}
 
开发者ID:Domochevsky,项目名称:minecraft-quiverbow,代码行数:17,代码来源:ColdIronClip.java

示例2: addRecipes

import cpw.mods.fml.common.registry.GameRegistry; //导入方法依赖的package包/类
@Override
public void addRecipes() 
{ 
	// A box of flint dust (4 dust per flint, meaning 32 per box), merged with wooden planks
       GameRegistry.addShapelessRecipe(new ItemStack(this),
               Items.flint,
               Items.flint,
               Items.flint,
               Items.flint,
               Items.flint,
               Items.flint,
               Items.flint,
               Items.flint,
               Blocks.planks
       ); 
}
 
开发者ID:Domochevsky,项目名称:minecraft-quiverbow,代码行数:17,代码来源:BoxOfFlintDust.java

示例3: addRecipes

import cpw.mods.fml.common.registry.GameRegistry; //导入方法依赖的package包/类
@Override
public void addRecipes()
{
	if (this.Enabled)
	{
		// One blaze crossbow (empty)
		GameRegistry.addRecipe(new ItemStack(this, 1 , this.getMaxDamage()), "bib", "ici", "bib",
				'b', Items.blaze_powder,
				'i', Items.iron_ingot,
				'c', Helper.getWeaponStackByClass(Crossbow_Compact.class, true)
				);
	}
	else if (Main.noCreative) { this.setCreativeTab(null); }	// Not enabled and not allowed to be in the creative menu

	GameRegistry.addShapelessRecipe(new ItemStack(this),	// Fill the empty blaze crossbow with one rod
			Items.blaze_rod,
			new ItemStack(this, 1 , this.getMaxDamage())
			);
}
 
开发者ID:Domochevsky,项目名称:minecraft-quiverbow,代码行数:20,代码来源:Crossbow_Blaze.java

示例4: addRecipes

import cpw.mods.fml.common.registry.GameRegistry; //导入方法依赖的package包/类
@Override
   public void addRecipes()
{ 
	if (Enabled)
       {
		// One Aqua Accelerator (empty)
           GameRegistry.addRecipe(new ItemStack(this, 1 , this.getMaxDamage()), "ihi", "gpg", "iti",		
                  'p', Blocks.piston,
                  't', Blocks.tripwire_hook,
                  'i', Items.iron_ingot,
                  'h', Blocks.hopper,
                  'g', Blocks.glass_pane
           );
       }
	else if (Main.noCreative) { this.setCreativeTab(null); }	// Not enabled and not allowed to be in the creative menu
	
	// Fill the AA with one water bucket
       GameRegistry.addShapelessRecipe(new ItemStack(this),						
       		Items.water_bucket, 
       		new ItemStack(this, 1 , this.getMaxDamage())	// Empty
       );
}
 
开发者ID:Domochevsky,项目名称:minecraft-quiverbow,代码行数:23,代码来源:AquaAccelerator.java

示例5: addRecipes

import cpw.mods.fml.common.registry.GameRegistry; //导入方法依赖的package包/类
@Override
public void addRecipes()
{
	if (this.Enabled)
	{
		// One Soul Cairn (empty)
		GameRegistry.addRecipe(new ItemStack(this, 1 , this.getMaxDamage()), "e e", "epe", "oto",
				'o', Blocks.obsidian,
				'e', Blocks.end_stone,
				't', Blocks.tripwire_hook,
				'p', Blocks.piston
				);
	}
	else if (Main.noCreative) { this.setCreativeTab(null); }	// Not enabled and not allowed to be in the creative menu

	// Reload with 1 diamond
	GameRegistry.addShapelessRecipe(new ItemStack(this),
			Items.diamond,
			new ItemStack(this, 1 , this.getMaxDamage())
			);
}
 
开发者ID:Domochevsky,项目名称:minecraft-quiverbow,代码行数:22,代码来源:SoulCairn.java

示例6: addRecipes

import cpw.mods.fml.common.registry.GameRegistry; //导入方法依赖的package包/类
@Override
public void addRecipes()
{
	if (this.Enabled)
	{
		// One compact crossbow (empty)
		GameRegistry.addRecipe(new ItemStack(this, 1 , this.getMaxDamage()), "zxy", "xzy", "zxy",
				'x', Items.stick,
				'y', Items.string,
				'z', Blocks.planks
				);
	}
	else if (Main.noCreative) { this.setCreativeTab(null); }	// Not enabled and not allowed to be in the creative menu

	GameRegistry.addShapelessRecipe(new ItemStack(this),	// Fill the empty crossbow with one arrow
			Items.arrow,
			new ItemStack(this, 1 , this.getMaxDamage())
			);
}
 
开发者ID:Domochevsky,项目名称:minecraft-quiverbow,代码行数:20,代码来源:Crossbow_Compact.java

示例7: addRecipes

import cpw.mods.fml.common.registry.GameRegistry; //导入方法依赖的package包/类
@Override
public void addRecipes()
{
	if (this.Enabled)
	{
		// Modifying the Coin Tosser with double piston tech
		GameRegistry.addShapelessRecipe(new ItemStack(this, 1 , this.getMaxDamage()),
				Helper.getWeaponStackByClass(CoinTosser.class, true),
				Blocks.sticky_piston,
				Blocks.tripwire_hook,
				Items.iron_ingot,
				Items.iron_ingot
				);
	}
	else if (Main.noCreative) { this.setCreativeTab(null); }	// Not enabled and not allowed to be in the creative menu

	// Ammo
	Helper.registerAmmoRecipe(GoldMagazine.class, this);
}
 
开发者ID:Domochevsky,项目名称:minecraft-quiverbow,代码行数:20,代码来源:CoinTosser_Mod.java

示例8: addRecipes

import cpw.mods.fml.common.registry.GameRegistry; //导入方法依赖的package包/类
@Override
public void addRecipes()
{
	if (this.Enabled)
	{
		// One auto-crossbow (empty)
		GameRegistry.addRecipe(new ItemStack(this, 1 , this.getMaxDamage()), "iii", "pcp", " t ",
				'i', Items.iron_ingot,
				'p', Blocks.piston,
				't', Blocks.tripwire_hook,
				'c', Helper.getWeaponStackByClass(Crossbow_Double.class, true)
				);
	}
	else if (Main.noCreative) { this.setCreativeTab(null); }	// Not enabled and not allowed to be in the creative menu


	GameRegistry.addShapelessRecipe(new ItemStack(this),	// Fill the empty auto-crossbow with one arrow bundle
			Helper.getAmmoStack(ArrowBundle.class, 0),
			new ItemStack(this, 1 , this.getMaxDamage())
			);
}
 
开发者ID:Domochevsky,项目名称:minecraft-quiverbow,代码行数:22,代码来源:Crossbow_Auto.java

示例9: addRecipes

import cpw.mods.fml.common.registry.GameRegistry; //导入方法依赖的package包/类
@Override
public void addRecipes()
{
	if (this.Enabled)
	{
		// Upgrade of the EnderRifle

		// One Frost Lancer (empty)
		GameRegistry.addRecipe(new ItemStack(this, 1 , this.getMaxDamage()), "qiq", "prs", " o ",
				'o', Blocks.obsidian,
				'q', Items.quartz,
				'i', Items.iron_ingot,
				'p', Blocks.piston,
				's', Blocks.sticky_piston,
				'r', Helper.getWeaponStackByClass(EnderRifle.class, true)	// One empty Ender Rifle
				);
	}
	else if (Main.noCreative) { this.setCreativeTab(null); }	// Not enabled and not allowed to be in the creative menu

	// Reloading with one Frost Clip
	GameRegistry.addShapelessRecipe(new ItemStack(this),
			new ItemStack(this, 1 , this.getMaxDamage()),
			Helper.getAmmoStack(ColdIronClip.class, 0)
			);
}
 
开发者ID:Domochevsky,项目名称:minecraft-quiverbow,代码行数:26,代码来源:FrostLancer.java

示例10: addRecipes

import cpw.mods.fml.common.registry.GameRegistry; //导入方法依赖的package包/类
@Override
public void addRecipes() 
{ 
       // A bundle of rockets (8)
       GameRegistry.addRecipe(new ItemStack(this), "xxx", "xyx", "xxx",						
               'x', Items.fireworks, 
               'y', Items.string
       );  
      
       // Bundle of rockets back to 8 rockets
       GameRegistry.addShapelessRecipe(new ItemStack(Items.fireworks, 8), new ItemStack(this));
}
 
开发者ID:Domochevsky,项目名称:minecraft-quiverbow,代码行数:13,代码来源:RocketBundle.java

示例11: addRecipes

import cpw.mods.fml.common.registry.GameRegistry; //导入方法依赖的package包/类
@Override
public void addRecipes() 
{ 
	// One arrow bundle, holding 8 arrows
	GameRegistry.addRecipe(new ItemStack(this), "xxx", "xyx", "xxx",
               'x', Items.arrow,
               'y', Items.string
       );
	
	// Bundle of arrows back to 8 arrows
       GameRegistry.addShapelessRecipe(new ItemStack(Items.arrow, 8), new ItemStack(this) );
}
 
开发者ID:Domochevsky,项目名称:minecraft-quiverbow,代码行数:13,代码来源:ArrowBundle.java

示例12: makeAmmoRecipe

import cpw.mods.fml.common.registry.GameRegistry; //导入方法依赖的package包/类
public static void makeAmmoRecipe(ItemStack ammo, int ammoUse, int shotIncrease, int capacity, Item weapon)
{
	// Step 1, readying the array
	Object[] params = new Object[ammoUse + 1];	// Ammo, plus the weapon
	
	// Step 2, Filling that with the ammo
	int tempCount = 0;
	
	while (tempCount < ammoUse)	// if ammoCount is 4 then we'll count from 0 to 3, getting 4 items on there and being at 4 for the final weapon item
	{
		params[tempCount] = ammo;
		tempCount += 1;
	}
	
	// Step 3, making the recipes, for all possible loading states of this weapon
	
	int currentPos = capacity;	// The current loading state of this weapon
	
	while (currentPos >= shotIncrease)	// doing this until we've reached our last possible loading state
	{
		params[tempCount] = new ItemStack(weapon, 1, currentPos);	// The current weapon item with metadata to be reloaded
		GameRegistry.addShapelessRecipe(new ItemStack(weapon, 1, (currentPos - shotIncrease) ), params);
		// if this is 8 dmg (= empty) then reloading with this will be 5, all the way down to 0
		
		currentPos -= 1;	// Counting down until we reach 0 (= full)
	}
}
 
开发者ID:Domochevsky,项目名称:minecraft-quiverbow,代码行数:28,代码来源:Helper.java

示例13: addRecipes

import cpw.mods.fml.common.registry.GameRegistry; //导入方法依赖的package包/类
@Override
public void addRecipes()
{
	if (this.Enabled)
	{
		// One empty double crossbow (upgraded from regular crossbow)
		GameRegistry.addShapelessRecipe(new ItemStack(this, 1 , this.getMaxDamage()),
				Blocks.sticky_piston,
				Items.repeater,
				Helper.getWeaponStackByClass(Crossbow_Compact.class, true)
				);
	}
	else if (Main.noCreative) { this.setCreativeTab(null); }	// Not enabled and not allowed to be in the creative menu

	GameRegistry.addShapelessRecipe(new ItemStack(this),	// Fill the empty crossbow with two arrows
			Items.arrow,
			Items.arrow,
			new ItemStack(this, 1 , this.getMaxDamage())
			);

	GameRegistry.addShapelessRecipe(new ItemStack(this, 1, 1),	// Fill the empty crossbow with one arrow
			Items.arrow,
			new ItemStack(this, 1 , this.getMaxDamage())
			);

	GameRegistry.addShapelessRecipe(new ItemStack(this),	// Fill the half empty crossbow with one arrow
			Items.arrow,
			new ItemStack(this, 1 , 1)
			);
}
 
开发者ID:Domochevsky,项目名称:minecraft-quiverbow,代码行数:31,代码来源:Crossbow_Double.java

示例14: initShapelessRecipies

import cpw.mods.fml.common.registry.GameRegistry; //导入方法依赖的package包/类
public static void initShapelessRecipies()
{
    GameRegistry.addShapelessRecipe(new ItemStack(ModItems.tutorialItem, 8),new ItemStack(Items.iron_ingot, 6));
}
 
开发者ID:koravel,项目名称:ElementalElaboration,代码行数:5,代码来源:Recipies.java

示例15: registerRecipes

import cpw.mods.fml.common.registry.GameRegistry; //导入方法依赖的package包/类
private static void registerRecipes()
{
	GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(ModItems.itemWoodenTwig, 3, 0), new Object[] { "logWood", "itemHammer" }));	
	GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(TFCItems.stick, 1, 0), new Object[] {
			new ItemStack(ModItems.itemWoodenTwig, 1, 0), "itemKnife" }));
       if (TFCPrimitiveTech.instance.isPaperEnabled)
       	GameRegistry.addShapelessRecipe(new ItemStack(ModBlocks.WoodenPressWet, 1, 0), new Object[] { new ItemStack(ModItems.itemWoodenPress, 1, 0), new ItemStack(ModItems.itemCelluloseFibers, 1, 0), new ItemStack(ModItems.itemCelluloseFibers, 1, 0), new ItemStack(ModItems.itemWoodenPress, 1, 0) });	
	GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(ModItems.itemWoodenPress, 1, 0), new Object[] { "logWood", "logWood", "logWood", "logWood"}));	
       if (TFCPrimitiveTech.instance.isSlingshotEnabled)
       	GameRegistry.addShapelessRecipe(new ItemStack(ModItems.itemSlingshot, 1, 0), new Object[] { new ItemStack(ModItems.itemWoodenTwig, 1, 0), new ItemStack(ModItems.itemLeatherBelt, 1, 0) });	

	CraftingManagerTFC.getInstance().addRecipe(new ItemStack(ModItems.itemLeatherBelt, 1), new Object[] { "#####", Character.valueOf('#'), TFCItems.flatLeather});		
	CraftingManagerTFC.getInstance().addRecipe(new ItemStack(ModItems.itemLeatherBelt, 3), new Object[] { "#####","     ","#####","     ","#####", Character.valueOf('#'), TFCItems.flatLeather});		

	for(int i = 0; i < Global.STONE_IGIN.length; i++)
	{		
	CraftingManagerTFC.getInstance().addRecipe(new ItemStack(ModItems.itemHardStone, 4), new Object[]
			{ "## ##", "## ##", "     ", "## ##", "## ##", Character.valueOf('#'), new ItemStack(TFCItems.flatRock, 1, i + Global.STONE_IGIN_START) });
	}
	for(int i = 0; i < Global.STONE_IGEX.length; i++)
	{		
	CraftingManagerTFC.getInstance().addRecipe(new ItemStack(ModItems.itemHardStone, 4), new Object[]
			{ "## ##", "## ##", "     ", "## ##", "## ##", Character.valueOf('#'), new ItemStack(TFCItems.flatRock, 1, i + Global.STONE_IGEX_START) });
	}
	for(int i = 0; i < Global.STONE_MM.length; i++)
	{		
	CraftingManagerTFC.getInstance().addRecipe(new ItemStack(ModItems.itemSharpStone, 4), new Object[]
			{ "## ##", "## ##", "     ", "## ##", "## ##", Character.valueOf('#'), new ItemStack(TFCItems.flatRock, 1, i + Global.STONE_MM_START) });
	}
	for(int i = 0; i < Global.STONE_SED.length; i++)
	{		
	CraftingManagerTFC.getInstance().addRecipe(new ItemStack(ModItems.itemSoftStone, 4), new Object[]
			{ "## ##", "## ##", "     ", "## ##", "## ##", Character.valueOf('#'), new ItemStack(TFCItems.flatRock, 1, i + Global.STONE_SED_START) });
	}
	
	CraftingManagerTFC.getInstance().addRecipe(new ItemStack(ModItems.itemClayBrick, 6), new Object[] { "  #  ","#####","  #  ","#####","  #  ", '#', new ItemStack(TFCItems.flatClay, 1, 1)});		
	RemoveRecipe(new ItemStack(Blocks.brick_block, 1));
	GameRegistry.addRecipe(new ItemStack(Blocks.brick_block, 4, 0), "PXP", "XPX", "PXP", 'P', new ItemStack(ModItems.itemClayBrick, 1, 1), 'X', new ItemStack(TFCItems.mortar, 1));
	
	GameRegistry.addShapelessRecipe(new ItemStack(ModItems.itemWoodenClub, 1, 0), new Object[] { new ItemStack(Items.flint, 1, 0), new ItemStack(Items.flint, 1, 0), new ItemStack(Items.flint, 1, 0), new ItemStack(TFCItems.logs, 1, -1) });	

       if (TFCPrimitiveTech.instance.isHardArrowRecipe)
       {
       	RemoveRecipe(new ItemStack(TFCItems.arrow, 8));
       	GameRegistry.addShapelessRecipe(new ItemStack(TFCItems.arrow, 1, 0), new Object[] { new ItemStack(TFCItems.stick, 1, 0), new ItemStack(Items.flint, 1, 0), new ItemStack(Items.feather, 1, 0) });
       }
       
       if (TFCPrimitiveTech.instance.isPaperEnabled)
       	RemoveRecipe(new ItemStack(Items.paper, 3));

}
 
开发者ID:Wahazar,项目名称:TFCPrimitiveTech,代码行数:52,代码来源:ModRecipes.java


注:本文中的cpw.mods.fml.common.registry.GameRegistry.addShapelessRecipe方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。