DPB1Class · World, character and items

Item

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 Item
Reference: DPB1 0.3.29.56Compare the DPB2 reference → Check signatures and usage notes separately; a matching type is not a compatibility guarantee.

Use this API

Class usage example: Read backpack item details →

Members and overloads

172 declared here

Item

MethodLink ↗
public Item.Item()

Creates a new Item instance.

Item

MethodLink ↗
public Item.Item(Item item, bool hasInventoryLocation, Vector2i locationBottomRight, Vector2i locationTopLeft)

Creates a new Item instance using the supplied arguments.

Parameters

item

Specifies item.

hasInventoryLocation
Parameter type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies has inventory location.

locationBottomRight

Specifies location bottom right.

locationTopLeft

Specifies location top left.

AnyMetadataFlags

MethodLink ↗
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.

Return type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

flags
Parameter type: MetadataFlags[]

Specifies flags.

Returns: A Boolean result. The member description explains the condition being checked.

CalcGemStatReq

MethodLink ↗
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.

Return type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

name
Parameter type: stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies name.

level
Parameter type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies level.

multi
Parameter type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies multi.

Returns: The int result.

Dump

MethodLink ↗
public string Item.Dump()

Calls Dump on Item without arguments and returns string. Open the return contract below before using the result.

Return type: stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Returns: The string result.

GetGemInSocket

MethodLink ↗
public Item Item.GetGemInSocket(int index)

Calls GetGemInSocket on Item with index and returns Item. Open the return contract below before using the result.

Return type: Item
Explore Item → members & methods

Read an item's identity, rarity, stack and other properties. Use its owning inventory or interface API for item actions.

Parameters

index
Parameter type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies index.

Returns: The Item result.

GetSocketIndexForSkilGem

MethodLink ↗
public int Item.GetSocketIndexForSkilGem(Item sg)

Calls GetSocketIndexForSkilGem on Item with sg and returns int. Open the return contract below before using the result.

Return type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

sg

Specifies sg.

Returns: The int result.

GetSocketIndexOfGem

MethodLink ↗
public int Item.GetSocketIndexOfGem(Item gem)

Calls GetSocketIndexOfGem on Item with gem and returns int. Open the return contract below before using the result.

Return type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

gem

Specifies gem.

Returns: The int result.

HasMetadataFlags

MethodLink ↗
public bool Item.HasMetadataFlags(params MetadataFlags[] flags)

Checks for metadata flags using the supplied arguments.

Return type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

flags
Parameter type: MetadataFlags[]

Specifies flags.

Returns: A Boolean result. The member description explains the condition being checked.

RequiredDexForLevel

MethodLink ↗
public int Item.RequiredDexForLevel(int level)

Calls RequiredDexForLevel on Item with level and returns int. Open the return contract below before using the result.

Return type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

level
Parameter type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies level.

Returns: The int result.

RequiredIntForLevel

MethodLink ↗
public int Item.RequiredIntForLevel(int level)

Calls RequiredIntForLevel on Item with level and returns int. Open the return contract below before using the result.

Return type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

level
Parameter type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies level.

Returns: The int result.

RequiredLevelForLevel

MethodLink ↗
public int Item.RequiredLevelForLevel(int level)

Calls RequiredLevelForLevel on Item with level and returns int. Open the return contract below before using the result.

Return type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

level
Parameter type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies level.

Returns: The int result.

RequiredStrForLevel

MethodLink ↗
public int Item.RequiredStrForLevel(int level)

Calls RequiredStrForLevel on Item with level and returns int. Open the return contract below before using the result.

Return type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

level
Parameter type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies level.

Returns: The int result.

ToString

MethodLink ↗
public override string Item.ToString()

Returns a text representation of this value.

Return type: stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Returns: The string result.

AbsorbedCorruption

PropertyLink ↗
public int Item.AbsorbedCorruption { get; }

Reads absorbed corruption on Item as int. The exact type and accessors are shown below.

Value type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

AlternateQualityType

PropertyLink ↗
public string Item.AlternateQualityType { get; }

Reads alternate quality type on Item as string. The exact type and accessors are shown below.

Value type: stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

AlternateQualityTypeValue

PropertyLink ↗
public int Item.AlternateQualityTypeValue { get; }

Reads alternate quality type value on Item as int. The exact type and accessors are shown below.

Value type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

AppliesToCurrentAreaByLevel

PropertyLink ↗
public bool Item.AppliesToCurrentAreaByLevel { get; }

Reads applies to current area by level on Item as bool. The exact type and accessors are shown below.

Value type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

ArmorValue

PropertyLink ↗
public int Item.ArmorValue { get; }

Reads armor value on Item as int. The exact type and accessors are shown below.

Value type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

AttacksPerSecond

PropertyLink ↗
public double Item.AttacksPerSecond { get; }

Reads attacks per second on Item as double. The exact type and accessors are shown below.

Value type: doubleNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

BaseArmor

PropertyLink ↗
public int Item.BaseArmor { get; }

Reads base armor on Item as int. The exact type and accessors are shown below.

Value type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

BaseAttacksPerSecond

PropertyLink ↗
public double Item.BaseAttacksPerSecond { get; }

Reads base attacks per second on Item as double. The exact type and accessors are shown below.

Value type: doubleNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

BaseCritialStrikeChance

PropertyLink ↗
public double Item.BaseCritialStrikeChance { get; }

Reads base critial strike chance on Item as double. The exact type and accessors are shown below.

Value type: doubleNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

BaseEnergyShield

PropertyLink ↗
public int Item.BaseEnergyShield { get; }

Reads base energy shield on Item as int. The exact type and accessors are shown below.

Value type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

BaseEvasion

PropertyLink ↗
public int Item.BaseEvasion { get; }

Reads base evasion on Item as int. The exact type and accessors are shown below.

Value type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

BaseMaxPhysicalDamage

PropertyLink ↗
public int Item.BaseMaxPhysicalDamage { get; }

Reads base max physical damage on Item as int. The exact type and accessors are shown below.

Value type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

BaseMinPhysicalDamage

PropertyLink ↗
public int Item.BaseMinPhysicalDamage { get; }

Reads base min physical damage on Item as int. The exact type and accessors are shown below.

Value type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

BaseRequiredLevel

PropertyLink ↗
public int Item.BaseRequiredLevel { get; }

Reads base required level on Item as int. The exact type and accessors are shown below.

Value type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Class usage examples

These examples demonstrate the class, not every member listed above. Each example links the declarations it teaches.

Imports used by these examples
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;

Read backpack item details

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.

Guides using this class

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.