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 protected int func_82532_h()
031 {
032 return Item.field_82797_bK.shiftedIndex;
033 }
034
035 protected int func_82533_j()
036 {
037 return Item.field_82797_bK.shiftedIndex;
038 }
039 }