Aura.Channel.World.Inventory.CreatureInventory.GetItem C# (CSharp) Метод

GetItem() публичный Метод

Returns first item to match predicate, or null.
public GetItem ( bool>.Func predicate, StartAt startAt = StartAt.Random ) : Item
predicate bool>.Func
startAt StartAt /// Affects the order of the returned items, based on their position in /// the inventory. ///
Результат Item
		public Item GetItem(Func<Item, bool> predicate, StartAt startAt = StartAt.Random)
		{
			lock (_pockets)
			{
				foreach (var pocket in _pockets.Values)
				{
					var item = pocket.GetItem(predicate, startAt);
					if (item != null)
						return item;
				}

				return null;
			}
		}

Same methods

CreatureInventory::GetItem ( long entityId ) : Item