public void onBlockRemoval(World par1World, int par2, int par3, int par4)
    {
        TileEntity var5 = par1World.getBlockTileEntity(par2, par3, par4);

        if (var5 != null && var5 instanceof TileEntityBrewingStand)
        {
            TileEntityBrewingStand var6 = (TileEntityBrewingStand)var5;

            for (int var7 = 0; var7 < var6.getSizeInventory(); ++var7)
            {
                ItemStack var8 = var6.getStackInSlot(var7);

                if (var8 != null)
                {
                    float var9 = this.rand.nextFloat() * 0.8F + 0.1F;
                    float var10 = this.rand.nextFloat() * 0.8F + 0.1F;
                    float var11 = this.rand.nextFloat() * 0.8F + 0.1F;

                    while (var8.stackSize > 0)
                    {
                        int var12 = this.rand.nextInt(21) + 10;

                        if (var12 > var8.stackSize)
                        {
                            var12 = var8.stackSize;
                        }

                        var8.stackSize -= var12;
                        EntityItem var13 = new EntityItem(par1World, (double)((float)par2 + var9), (double)((float)par3 + var10), (double)((float)par4 + var11), new ItemStack(var8.itemID, var12, var8.getItemDamage()));
                        float var14 = 0.05F;
                        var13.motionX = (double)((float)this.rand.nextGaussian() * var14);
                        var13.motionY = (double)((float)this.rand.nextGaussian() * var14 + 0.2F);
                        var13.motionZ = (double)((float)this.rand.nextGaussian() * var14);
                        par1World.spawnEntityInWorld(var13);
                    }
                }
            }
        }

        super.onBlockRemoval(par1World, par2, par3, par4);
    }