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

The following are Jave code examples for showing how to use redstone() 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: ERA.java   Source Code and License Vote up 6 votes
private void registerRepair()
{
	ItemStack[] repair = new ItemStack[9];
	
	// Top row
	//repair[0] = new ItemStack(Item.getItemFromBlock(Blocks.obsidian));
	repair[1] = new ItemStack(Blocks.golden_rail);
	//repair[2] = new ItemStack(Item.getItemFromBlock(Blocks.obsidian));
	
	// Middle row
	repair[3] = new ItemStack(Blocks.golden_rail);
	repair[4] = new ItemStack(this, 1 , this.getMaxDamage());
	repair[5] = new ItemStack(Blocks.golden_rail);
	
	// Bottom row
	repair[6] = new ItemStack(Items.redstone);
	repair[7] = new ItemStack(Items.iron_ingot);
	repair[8] = new ItemStack(Items.redstone);
	        
       GameRegistry.addRecipe(new Recipe_ERA(repair, new ItemStack(this)));
}
 
Example 2
Project: BaseClient   File: BlockRedstoneOre.java   Source Code and License Vote up 5 votes
/**
 * Get the Item that this Block should drop when harvested.
 */
public Item getItemDropped(IBlockState state, Random rand, int fortune)
{
    return Items.redstone;
}
 
Example 3
Project: BaseClient   File: BlockRedstoneWire.java   Source Code and License Vote up 5 votes
/**
 * Get the Item that this Block should drop when harvested.
 */
public Item getItemDropped(IBlockState state, Random rand, int fortune) {
	return Items.redstone;
}
 
Example 4
Project: BaseClient   File: BlockRedstoneWire.java   Source Code and License Vote up 4 votes
public Item getItem(World worldIn, BlockPos pos) {
	return Items.redstone;
}
 
Example 5
Project: BaseClient   File: CreativeTabs.java   Source Code and License Vote up 4 votes
public Item getTabIconItem()
{
    return Items.redstone;
}
 
Example 6
Project: BaseClient   File: BlockRedstoneOre.java   Source Code and License Vote up 4 votes
/**
 * Get the Item that this Block should drop when harvested.
 */
public Item getItemDropped(IBlockState state, Random rand, int fortune)
{
    return Items.redstone;
}
 
Example 7
Project: BaseClient   File: BlockRedstoneWire.java   Source Code and License Vote up 4 votes
/**
 * Get the Item that this Block should drop when harvested.
 */
public Item getItemDropped(IBlockState state, Random rand, int fortune)
{
    return Items.redstone;
}
 
Example 8
Project: BaseClient   File: BlockRedstoneWire.java   Source Code and License Vote up 4 votes
public Item getItem(World worldIn, BlockPos pos)
{
    return Items.redstone;
}
 
Example 9
Project: BaseClient   File: CreativeTabs.java   Source Code and License Vote up 4 votes
public Item getTabIconItem()
{
    return Items.redstone;
}