    001    package net.minecraft.src;
    002
    003    import cpw.mods.fml.common.Side;
    004    import cpw.mods.fml.common.asm.SideOnly;
    005    import java.util.List;
    006
    007    public class BlockStoneBrick extends Block
    008    {
    009        public static final String[] STONE_BRICK_TYPES = new String[] {"default", "mossy", "cracked", "chiseled"};
    010        public BlockStoneBrick(int par1)
    011        {
    012            super(par1, 54, Material.rock);
    013            this.setCreativeTab(CreativeTabs.tabBlock);
    014        }
    015
    016        /**
    017         * From the specified side and block metadata retrieves the blocks texture. Args: side, metadata
    018         */
    019        public int getBlockTextureFromSideAndMetadata(int par1, int par2)
    020        {
    021            switch (par2)
    022            {
    023                case 1:
    024                    return 100;
    025                case 2:
    026                    return 101;
    027                case 3:
    028                    return 213;
    029                default:
    030                    return 54;
    031            }
    032        }
    033
    034        /**
    035         * Determines the damage on the item the block drops. Used in cloth and wood.
    036         */
    037        protected int damageDropped(int par1)
    038        {
    039            return par1;
    040        }
    041
    042        @SideOnly(Side.CLIENT)
    043
    044        /**
    045         * returns a list of blocks with the same ID, but different meta (eg: wood returns 4 blocks)
    046         */
    047        public void getSubBlocks(int par1, CreativeTabs par2CreativeTabs, List par3List)
    048        {
    049            for (int var4 = 0; var4 < 4; ++var4)
    050            {
    051                par3List.add(new ItemStack(par1, 1, var4));
    052            }
    053        }
    054    }