package net.minecraft.block;

import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import java.util.List;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.ItemStack;
import net.minecraft.util.Icon;

public class BlockSandStone extends Block {

   public static final String[] field_72189_a = new String[]{"default", "chiseled", "smooth"};
   private static final String[] field_94405_b = new String[]{"normal", "carved", "smooth"};
   @SideOnly(Side.CLIENT)
   private Icon[] field_94406_c;
   @SideOnly(Side.CLIENT)
   private Icon field_94403_cO;
   @SideOnly(Side.CLIENT)
   private Icon field_94404_cP;


   public BlockSandStone(int p_i2251_1_) {
      super(p_i2251_1_, Material.field_76246_e);
      this.func_71849_a(CreativeTabs.field_78030_b);
   }

   @SideOnly(Side.CLIENT)
   public Icon func_71858_a(int p_71858_1_, int p_71858_2_) {
      if(p_71858_1_ != 1 && (p_71858_1_ != 0 || p_71858_2_ != 1 && p_71858_2_ != 2)) {
         if(p_71858_1_ == 0) {
            return this.field_94404_cP;
         } else {
            if(p_71858_2_ < 0 || p_71858_2_ >= this.field_94406_c.length) {
               p_71858_2_ = 0;
            }

            return this.field_94406_c[p_71858_2_];
         }
      } else {
         return this.field_94403_cO;
      }
   }

   public int func_71899_b(int p_71899_1_) {
      return p_71899_1_;
   }

   @SideOnly(Side.CLIENT)
   public void func_71879_a(int p_71879_1_, CreativeTabs p_71879_2_, List p_71879_3_) {
      p_71879_3_.add(new ItemStack(p_71879_1_, 1, 0));
      p_71879_3_.add(new ItemStack(p_71879_1_, 1, 1));
      p_71879_3_.add(new ItemStack(p_71879_1_, 1, 2));
   }

   @SideOnly(Side.CLIENT)
   public void func_94332_a(IconRegister p_94332_1_) {
      this.field_94406_c = new Icon[field_94405_b.length];

      for(int var2 = 0; var2 < this.field_94406_c.length; ++var2) {
         this.field_94406_c[var2] = p_94332_1_.func_94245_a(this.func_111023_E() + "_" + field_94405_b[var2]);
      }

      this.field_94403_cO = p_94332_1_.func_94245_a(this.func_111023_E() + "_top");
      this.field_94404_cP = p_94332_1_.func_94245_a(this.func_111023_E() + "_bottom");
   }

}
