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

The following are Jave code examples for showing how to use flower_pot() 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: DecompiledMinecraft   File: BlockFlowerPot.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.flower_pot;
}
 
Example 2
Project: DecompiledMinecraft   File: BlockFlowerPot.java   View Source Code Vote up 4 votes
public Item getItem(World worldIn, BlockPos pos)
{
    TileEntityFlowerPot tileentityflowerpot = this.getTileEntity(worldIn, pos);
    return tileentityflowerpot != null && tileentityflowerpot.getFlowerPotItem() != null ? tileentityflowerpot.getFlowerPotItem() : Items.flower_pot;
}
 
Example 3
Project: DecompiledMinecraft   File: BlockFlowerPot.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.flower_pot;
}
 
Example 4
Project: BaseClient   File: BlockFlowerPot.java   View Source Code Vote up 4 votes
public Item getItem(World worldIn, BlockPos pos)
{
    TileEntityFlowerPot tileentityflowerpot = this.getTileEntity(worldIn, pos);
    return tileentityflowerpot != null && tileentityflowerpot.getFlowerPotItem() != null ? tileentityflowerpot.getFlowerPotItem() : Items.flower_pot;
}
 
Example 5
Project: BaseClient   File: BlockFlowerPot.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.flower_pot;
}
 
Example 6
Project: BaseClient   File: BlockFlowerPot.java   View Source Code Vote up 4 votes
public Item getItem(World worldIn, BlockPos pos)
{
    TileEntityFlowerPot tileentityflowerpot = this.getTileEntity(worldIn, pos);
    return tileentityflowerpot != null && tileentityflowerpot.getFlowerPotItem() != null ? tileentityflowerpot.getFlowerPotItem() : Items.flower_pot;
}
 
Example 7
Project: BaseClient   File: BlockFlowerPot.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.flower_pot;
}