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.
+ Save this method
Example 1
Project: minecraft-quiverbow   File: ERA.java   View Source Code 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: DecompiledMinecraft   File: BlockRedstoneOre.java   View Source Code 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 3
Project: DecompiledMinecraft   File: BlockRedstoneWire.java   View Source Code 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 4
Project: DecompiledMinecraft   File: BlockRedstoneOre.java   View Source Code 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 5
Project: DecompiledMinecraft   File: BlockRedstoneWire.java   View Source Code 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 6
Project: DecompiledMinecraft   File: BlockRedstoneWire.java   View Source Code Vote up 4 votes
public Item getItem(World worldIn, BlockPos pos)
{
    return Items.redstone;
}
 
Example 7
Project: DecompiledMinecraft   File: CreativeTabs.java   View Source Code Vote up 4 votes
public Item getTabIconItem()
{
    return Items.redstone;
}
 
Example 8
Project: BaseClient   File: BlockRedstoneOre.java   View Source Code 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 9
Project: BaseClient   File: BlockRedstoneWire.java   View Source Code 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 10
Project: BaseClient   File: BlockRedstoneWire.java   View Source Code Vote up 4 votes
public Item getItem(World worldIn, BlockPos pos) {
	return Items.redstone;
}
 
Example 11
Project: BaseClient   File: CreativeTabs.java   View Source Code Vote up 4 votes
public Item getTabIconItem()
{
    return Items.redstone;
}
 
Example 12
Project: BaseClient   File: BlockRedstoneOre.java   View Source Code 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 13
Project: BaseClient   File: BlockRedstoneWire.java   View Source Code 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 14
Project: BaseClient   File: BlockRedstoneWire.java   View Source Code Vote up 4 votes
public Item getItem(World worldIn, BlockPos pos)
{
    return Items.redstone;
}
 
Example 15
Project: BaseClient   File: CreativeTabs.java   View Source Code Vote up 4 votes
public Item getTabIconItem()
{
    return Items.redstone;
}