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