001    package net.minecraft.block;
002    
003    import java.util.Random;
004    import net.minecraft.block.material.Material;
005    import net.minecraft.creativetab.CreativeTabs;
006    import net.minecraft.item.Item;
007    
008    public class BlockBookshelf extends Block
009    {
010        public BlockBookshelf(int par1, int par2)
011        {
012            super(par1, par2, Material.wood);
013            this.setCreativeTab(CreativeTabs.tabBlock);
014        }
015    
016        /**
017         * Returns the block texture based on the side being looked at.  Args: side
018         */
019        public int getBlockTextureFromSide(int par1)
020        {
021            return par1 <= 1 ? 4 : this.blockIndexInTexture;
022        }
023    
024        /**
025         * Returns the quantity of items to drop on block destruction.
026         */
027        public int quantityDropped(Random par1Random)
028        {
029            return 3;
030        }
031    
032        /**
033         * Returns the ID of the items to drop on destruction.
034         */
035        public int idDropped(int par1, Random par2Random, int par3)
036        {
037            return Item.book.itemID;
038        }
039    }