public void onCollide(Entity e)
    {
        if(inv.getStackIn(0) == null || inv.getStackIn(0).item == null)
            die();
        if(e instanceof EntityPlayer)
        {
            if(!this.world.isRemote)
            {
                if(e.addToInventory(inv.getStackIn(0)) == null)
                {
                    needUpdate = true;
                    die();
                }
            }
        }
    }