001    package net.minecraft.src;
002    
003    import java.util.Random;
004    
005    public class BlockGlowStone extends Block
006    {
007        public BlockGlowStone(int par1, int par2, Material par3Material)
008        {
009            super(par1, par2, par3Material);
010            this.setCreativeTab(CreativeTabs.tabBlock);
011        }
012    
013        /**
014         * Returns the usual quantity dropped by the block plus a bonus of 1 to 'i' (inclusive).
015         */
016        public int quantityDroppedWithBonus(int par1, Random par2Random)
017        {
018            return MathHelper.clamp_int(this.quantityDropped(par2Random) + par2Random.nextInt(par1 + 1), 1, 4);
019        }
020    
021        /**
022         * Returns the quantity of items to drop on block destruction.
023         */
024        public int quantityDropped(Random par1Random)
025        {
026            return 2 + par1Random.nextInt(3);
027        }
028    
029        /**
030         * Returns the ID of the items to drop on destruction.
031         */
032        public int idDropped(int par1, Random par2Random, int par3)
033        {
034            return Item.lightStoneDust.shiftedIndex;
035        }
036    }