001    package net.minecraft.block;
002    
003    import cpw.mods.fml.relauncher.Side;
004    import cpw.mods.fml.relauncher.SideOnly;
005    import java.util.List;
006    import net.minecraft.block.material.Material;
007    import net.minecraft.creativetab.CreativeTabs;
008    import net.minecraft.item.ItemStack;
009    
010    public class BlockSandStone extends Block
011    {
012        public static final String[] SAND_STONE_TYPES = new String[] {"default", "chiseled", "smooth"};
013        public BlockSandStone(int par1)
014        {
015            super(par1, 192, Material.rock);
016            this.setCreativeTab(CreativeTabs.tabBlock);
017        }
018    
019        /**
020         * From the specified side and block metadata retrieves the blocks texture. Args: side, metadata
021         */
022        public int getBlockTextureFromSideAndMetadata(int par1, int par2)
023        {
024            return par1 != 1 && (par1 != 0 || par2 != 1 && par2 != 2) ? (par1 == 0 ? 208 : (par2 == 1 ? 229 : (par2 == 2 ? 230 : 192))) : 176;
025        }
026    
027        /**
028         * Returns the block texture based on the side being looked at.  Args: side
029         */
030        public int getBlockTextureFromSide(int par1)
031        {
032            return par1 == 1 ? this.blockIndexInTexture - 16 : (par1 == 0 ? this.blockIndexInTexture + 16 : this.blockIndexInTexture);
033        }
034    
035        /**
036         * Determines the damage on the item the block drops. Used in cloth and wood.
037         */
038        public int damageDropped(int par1)
039        {
040            return par1;
041        }
042    
043        @SideOnly(Side.CLIENT)
044    
045        /**
046         * returns a list of blocks with the same ID, but different meta (eg: wood returns 4 blocks)
047         */
048        public void getSubBlocks(int par1, CreativeTabs par2CreativeTabs, List par3List)
049        {
050            par3List.add(new ItemStack(par1, 1, 0));
051            par3List.add(new ItemStack(par1, 1, 1));
052            par3List.add(new ItemStack(par1, 1, 2));
053        }
054    }