001package net.minecraft.block;
002
003import net.minecraft.item.Item;
004
005public class BlockCarrot extends BlockCrops
006{
007    public BlockCarrot(int par1)
008    {
009        super(par1, 200);
010    }
011
012    /**
013     * From the specified side and block metadata retrieves the blocks texture. Args: side, metadata
014     */
015    public int getBlockTextureFromSideAndMetadata(int par1, int par2)
016    {
017        if (par2 < 7)
018        {
019            if (par2 == 6)
020            {
021                par2 = 5;
022            }
023
024            return this.blockIndexInTexture + (par2 >> 1);
025        }
026        else
027        {
028            return this.blockIndexInTexture + 3;
029        }
030    }
031
032    /**
033     * Generate a seed ItemStack for this crop.
034     */
035    protected int getSeedItem()
036    {
037        return Item.carrot.itemID;
038    }
039
040    /**
041     * Generate a crop produce ItemStack for this crop.
042     */
043    protected int getCropItem()
044    {
045        return Item.carrot.itemID;
046    }
047}