Java Code Examples for net.minecraft.init.Items.gunpowder()

The following are Jave code examples for showing how to use gunpowder() of the net.minecraft.init.Items class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: minecraft-quiverbow   File: PowderKnuckle_Mod.java   Source Code and License Vote up 6 votes
@Override
public void addRecipes()
{
	if (this.Enabled)
	{
		// Modifying the powder knuckle once
		GameRegistry.addRecipe(new ItemStack(this, 1 , this.getMaxDamage()), "ooo", "oco", "i i",
				'c', Helper.getWeaponStackByClass(PowderKnuckle.class, true),
				'o', Blocks.obsidian,
				'i', Items.iron_ingot
				);
	}
	else if (Main.noCreative) { this.setCreativeTab(null); }	// Not enabled and not allowed to be in the creative menu

	ItemStack stack = new ItemStack(Items.gunpowder);

	Helper.makeAmmoRecipe(stack, 1, 1, this.getMaxDamage(), this);
	Helper.makeAmmoRecipe(stack, 2, 2, this.getMaxDamage(), this);
	Helper.makeAmmoRecipe(stack, 3, 3, this.getMaxDamage(), this);
	Helper.makeAmmoRecipe(stack, 4, 4, this.getMaxDamage(), this);
	Helper.makeAmmoRecipe(stack, 5, 5, this.getMaxDamage(), this);
	Helper.makeAmmoRecipe(stack, 6, 6, this.getMaxDamage(), this);
	Helper.makeAmmoRecipe(stack, 7, 7, this.getMaxDamage(), this);
	Helper.makeAmmoRecipe(stack, 8, 8, this.getMaxDamage(), this);
}
 
Example 2
Project: minecraft-quiverbow   File: PowderKnuckle.java   Source Code and License Vote up 6 votes
@Override
public void addRecipes()
{
	if (this.Enabled)
	{
		// One Powder Knuckle with 8 damage value (empty)
		GameRegistry.addRecipe(new ItemStack(this, 1 , this.getMaxDamage()), "yyy", "xzx", "x x",
				'x', Items.leather,
				'y', Items.iron_ingot,
				'z', Items.stick
				);
	}
	else if (Main.noCreative) { this.setCreativeTab(null); }	// Not enabled and not allowed to be in the creative menu

	ItemStack stack = new ItemStack(Items.gunpowder);

	Helper.makeAmmoRecipe(stack, 1, 1, this.getMaxDamage(), this);
	Helper.makeAmmoRecipe(stack, 2, 2, this.getMaxDamage(), this);
	Helper.makeAmmoRecipe(stack, 3, 3, this.getMaxDamage(), this);
	Helper.makeAmmoRecipe(stack, 4, 4, this.getMaxDamage(), this);
	Helper.makeAmmoRecipe(stack, 5, 5, this.getMaxDamage(), this);
	Helper.makeAmmoRecipe(stack, 6, 6, this.getMaxDamage(), this);
	Helper.makeAmmoRecipe(stack, 7, 7, this.getMaxDamage(), this);
	Helper.makeAmmoRecipe(stack, 8, 8, this.getMaxDamage(), this);
}
 
Example 3
Project: BaseClient   File: EntityGhast.java   Source Code and License Vote up 4 votes
protected Item getDropItem()
{
    return Items.gunpowder;
}
 
Example 4
Project: BaseClient   File: EntityCreeper.java   Source Code and License Vote up 4 votes
protected Item getDropItem()
{
    return Items.gunpowder;
}
 
Example 5
Project: BaseClient   File: EntityGhast.java   Source Code and License Vote up 4 votes
protected Item getDropItem()
{
    return Items.gunpowder;
}
 
Example 6
Project: BaseClient   File: EntityCreeper.java   Source Code and License Vote up 4 votes
protected Item getDropItem()
{
    return Items.gunpowder;
}