private void consume(VillageResource resource, IVoxelHandle handle)
        {
            if (handle.Data.Inventory.GetAmountOfType(resource.ItemType) == 0)
            {
                return;
            }

            //var itemToConsume = handle.Data.Inventory.Items.ToArray()[rnd.Next(handle.Data.Inventory.ItemCount)];
            handle.Data.Inventory.DestroyItems(resource.ItemType, 1);
            checkResourceLevels(handle);
        }
 private bool hasEnough(VillageResource resource, IVoxelHandle handle)
 {
     return(handle.Data.Inventory.GetAmountOfType(resource.ItemType) >= resource.MinResourceLevel);
 }