    001package net.minecraft.block;
    002
    003import cpw.mods.fml.relauncher.Side;
    004import cpw.mods.fml.relauncher.SideOnly;
    005import java.util.List;
    006import net.minecraft.block.material.Material;
    007import net.minecraft.creativetab.CreativeTabs;
    008import net.minecraft.item.ItemStack;
    009
    010public class BlockStoneBrick extends Block
    011{
    012    public static final String[] STONE_BRICK_TYPES = new String[] {"default", "mossy", "cracked", "chiseled"};
    013    public BlockStoneBrick(int par1)
    014    {
    015        super(par1, 54, 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        switch (par2)
    025        {
    026            case 1:
    027                return 100;
    028            case 2:
    029                return 101;
    030            case 3:
    031                return 213;
    032            default:
    033                return 54;
    034        }
    035    }
    036
    037    /**
    038     * Determines the damage on the item the block drops. Used in cloth and wood.
    039     */
    040    public int damageDropped(int par1)
    041    {
    042        return par1;
    043    }
    044
    045    @SideOnly(Side.CLIENT)
    046
    047    /**
    048     * returns a list of blocks with the same ID, but different meta (eg: wood returns 4 blocks)
    049     */
    050    public void getSubBlocks(int par1, CreativeTabs par2CreativeTabs, List par3List)
    051    {
    052        for (int var4 = 0; var4 < 4; ++var4)
    053        {
    054            par3List.add(new ItemStack(par1, 1, var4));
    055        }
    056    }
    057}