public Item.Item()
Creates a new Item instance.
Read an item's identity, rarity, stack and other properties. Use its owning inventory or interface API for item actions.
Namespace: DreamPoeBot.Loki.Game.Objects
public class ItemClass usage example: Read backpack item details →
public Item.Item()
Creates a new Item instance.
public Item.Item(Item item, bool hasInventoryLocation, Vector2i locationBottomRight, Vector2i locationTopLeft)
Creates a new Item instance using the supplied arguments.
itemItemSpecifies item.
hasInventoryLocationboolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.Specifies has inventory location.
locationBottomRightVector2iSpecifies location bottom right.
locationTopLeftVector2iSpecifies location top left.
public bool Item.AnyMetadataFlags(params MetadataFlags[] flags)
Calls AnyMetadataFlags on Item with flags and returns bool. Open the return contract below before using the result.
boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.flagsMetadataFlags[]Specifies flags.
Returns: A Boolean result. The member description explains the condition being checked.
public static int Item.CalcGemStatReq(string name, int level, int multi)
Calls CalcGemStatReq on Item with name, level, multi and returns int. Open the return contract below before using the result.
intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.namestringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.Specifies name.
levelintNo current DPB page is linked for this built-in, external, generic or compatibility-only type.Specifies level.
multiintNo current DPB page is linked for this built-in, external, generic or compatibility-only type.Specifies multi.
Returns: The int result.
public string Item.Dump()
Calls Dump on Item without arguments and returns string. Open the return contract below before using the result.
stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.Returns: The string result.
public Item Item.GetGemInSocket(int index)
Calls GetGemInSocket on Item with index and returns Item. Open the return contract below before using the result.
ItemRead an item's identity, rarity, stack and other properties. Use its owning inventory or interface API for item actions.
indexintNo current DPB page is linked for this built-in, external, generic or compatibility-only type.Specifies index.
Returns: The Item result.
public int Item.GetSocketIndexForSkilGem(Item sg)
Calls GetSocketIndexForSkilGem on Item with sg and returns int. Open the return contract below before using the result.
intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.sgItemSpecifies sg.
Returns: The int result.
public int Item.GetSocketIndexOfGem(Item gem)
Calls GetSocketIndexOfGem on Item with gem and returns int. Open the return contract below before using the result.
intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.gemItemSpecifies gem.
Returns: The int result.
public bool Item.HasMetadataFlags(params MetadataFlags[] flags)
Checks for metadata flags using the supplied arguments.
boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.flagsMetadataFlags[]Specifies flags.
Returns: A Boolean result. The member description explains the condition being checked.
public int Item.RequiredDexForLevel(int level)
Calls RequiredDexForLevel on Item with level and returns int. Open the return contract below before using the result.
intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.levelintNo current DPB page is linked for this built-in, external, generic or compatibility-only type.Specifies level.
Returns: The int result.
public int Item.RequiredIntForLevel(int level)
Calls RequiredIntForLevel on Item with level and returns int. Open the return contract below before using the result.
intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.levelintNo current DPB page is linked for this built-in, external, generic or compatibility-only type.Specifies level.
Returns: The int result.
public int Item.RequiredLevelForLevel(int level)
Calls RequiredLevelForLevel on Item with level and returns int. Open the return contract below before using the result.
intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.levelintNo current DPB page is linked for this built-in, external, generic or compatibility-only type.Specifies level.
Returns: The int result.
public int Item.RequiredStrForLevel(int level)
Calls RequiredStrForLevel on Item with level and returns int. Open the return contract below before using the result.
intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.levelintNo current DPB page is linked for this built-in, external, generic or compatibility-only type.Specifies level.
Returns: The int result.
public override string Item.ToString()
Returns a text representation of this value.
stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.Returns: The string result.
public int Item.AbsorbedCorruption { get; }
Reads absorbed corruption on Item as int. The exact type and accessors are shown below.
intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.public IEnumerable<ModAffix> Item.Affixes { get; }
Gets the affixes collection. Its element types are linked below.
IEnumerable<ModAffix>Represents mod affix in the current game state. Obtain the object from its owning API and refresh it after an area change.
public string Item.AlternateQualityType { get; }
Reads alternate quality type on Item as string. The exact type and accessors are shown below.
stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.public int Item.AlternateQualityTypeValue { get; }
Reads alternate quality type value on Item as int. The exact type and accessors are shown below.
intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.public bool Item.AppliesToCurrentAreaByLevel { get; }
Reads applies to current area by level on Item as bool. The exact type and accessors are shown below.
boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.public int Item.ArmorValue { get; }
Reads armor value on Item as int. The exact type and accessors are shown below.
intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.public double Item.AttacksPerSecond { get; }
Reads attacks per second on Item as double. The exact type and accessors are shown below.
doubleNo current DPB page is linked for this built-in, external, generic or compatibility-only type.public int Item.BaseArmor { get; }
Reads base armor on Item as int. The exact type and accessors are shown below.
intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.public double Item.BaseAttacksPerSecond { get; }
Reads base attacks per second on Item as double. The exact type and accessors are shown below.
doubleNo current DPB page is linked for this built-in, external, generic or compatibility-only type.public double Item.BaseCritialStrikeChance { get; }
Reads base critial strike chance on Item as double. The exact type and accessors are shown below.
doubleNo current DPB page is linked for this built-in, external, generic or compatibility-only type.public int Item.BaseEnergyShield { get; }
Reads base energy shield on Item as int. The exact type and accessors are shown below.
intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.public int Item.BaseEvasion { get; }
Reads base evasion on Item as int. The exact type and accessors are shown below.
intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.public DatBaseItemTypeWrapper Item.BaseItemType { get; }
Reads base item type on Item as DatBaseItemTypeWrapper. Open the value type below for its members and accepted values.
DatBaseItemTypeWrapperGame-data record for base item type. Use its identifiers and properties to look up game definitions.
public int Item.BaseMaxPhysicalDamage { get; }
Reads base max physical damage on Item as int. The exact type and accessors are shown below.
intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.public int Item.BaseMinPhysicalDamage { get; }
Reads base min physical damage on Item as int. The exact type and accessors are shown below.
intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.public int Item.BaseRequiredLevel { get; }
Reads base required level on Item as int. The exact type and accessors are shown below.
intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.These examples demonstrate the class, not every member listed above. Each example links the declarations it teaches.
using System;
using System.Linq;
using DreamPoeBot.Loki.Game;
using DreamPoeBot.Loki.Game.Objects;
using DreamPoeBot.Loki.Bot;
using DreamPoeBot.Loki.Bot.Pathfinding;
using DreamPoeBot.Loki.Common;if (!LokiPoe.IsInGame || !LokiPoe.InGameState.InventoryUi.IsOpened)
return;
var inventory = LokiPoe.InGameState.InventoryUi.InventoryControl_Main?.Inventory;
if (inventory == null)
return;
foreach (var item in inventory.Items)
{
var name = item.FullName;
var rarity = item.Rarity;
var count = item.StackCount;
}Read on the bot thread. This only reads item data; it does not pick up, move or consume items. A visible panel can still be loading its contents.
See how these APIs fit together. Labs include complete source; the FollowBot walkthrough teaches you to build your own bot from selected fragments and checkpoints.
DPB1 0.3.29.56 · Reference reviewed 2026-10-30. Descriptions use source summaries where available, otherwise concise signature-based descriptions. Examples illustrate usage; they are not a live-game test.