package net.minecraft.block;
import java.util.Random;
import net.minecraft.block.material.Material;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
public class BlockBookshelf extends Block
{
public BlockBookshelf(int par1, int par2)
{
super(par1, par2, Material.wood);
this.setCreativeTab(CreativeTabs.tabBlock);
}
/**
* Returns the block texture based on the side being looked at. Args: side
*/
public int getBlockTextureFromSide(int par1)
{
return par1 <= 1 ? 4 : this.blockIndexInTexture;
}
/**
* Returns the quantity of items to drop on block destruction.
*/
public int quantityDropped(Random par1Random)
{
return 3;
}
/**
* Returns the ID of the items to drop on destruction.
*/
public int idDropped(int par1, Random par2Random, int par3)
{
return Item.book.itemID;
}
}