package net.minecraft.block;
import net.minecraft.item.Item;
public class BlockCarrot extends BlockCrops
{
public BlockCarrot(int par1)
{
super(par1, 200);
}
/**
* From the specified side and block metadata retrieves the blocks texture. Args: side, metadata
*/
public int getBlockTextureFromSideAndMetadata(int par1, int par2)
{
if (par2 < 7)
{
if (par2 == 6)
{
par2 = 5;
}
return this.blockIndexInTexture + (par2 >> 1);
}
else
{
return this.blockIndexInTexture + 3;
}
}
/**
* Generate a seed ItemStack for this crop.
*/
protected int getSeedItem()
{
return Item.carrot.itemID;
}
/**
* Generate a crop produce ItemStack for this crop.
*/
protected int getCropItem()
{
return Item.carrot.itemID;
}
}