DPB2Class · 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 ItemView DPB1 version →

Examples

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;
foreach (var item in inventory.Items)
{
    var name = item.FullName;
    var rarity = item.Rarity;
    var count = item.StackCount;
}

This only reads item data; it does not pick up, move or consume items.

Members and overloads

168 results

Size

PropertyLink ↗
public Vector2i Item.Size { get; }

Gets size for Item.

Skill

PropertyLink ↗
public Skill Item.Skill { get; }

Gets skill for Item.

SkillGemLevel

PropertyLink ↗
public int Item.SkillGemLevel { get; }

Gets skill gem level for Item.

SkillGemQualityType

PropertyLink ↗
public GemQualityType Item.SkillGemQualityType { get; }

Gets skill gem quality type for Item.

SkillSocketIndex

PropertyLink ↗
public uint Item.SkillSocketIndex { get; }

Return the Socket Index where this skill gem is socketed in the Item sockets. PLS NOTE! This only work for Skill Gems, it do not work for Support gems. Go get the Index of a support gem, or in general to get a more satisfaing result, use public int GetSocketIndexOfGem(Item gem).

SocketColor

PropertyLink ↗
public SocketColor Item.SocketColor { get; }

Gets socket color for Item.

SocketColors

PropertyLink ↗
public SocketColor[] Item.SocketColors { get; }

Gets the socket colors collection. Its element types are linked below.

SocketCount

PropertyLink ↗
public int Item.SocketCount { get; }

Gets socket count for Item.

SocketLinks

PropertyLink ↗
public byte[] Item.SocketLinks { get; }

Gets the socket links collection. Its element types are linked below.

SocketedDisplayString

PropertyLink ↗
public string Item.SocketedDisplayString { get; }

Gets socketed display string for Item.

SocketedGems

PropertyLink ↗
public Item[] Item.SocketedGems { get; }

Gets the socketed gems collection. Its element types are linked below.

SocketedSkillGemsByLinks

PropertyLink ↗
public List<Item[]> Item.SocketedSkillGemsByLinks { get; }

Gets the socketed skill gems by links collection. Its element types are linked below.

StackCount

PropertyLink ↗
public int Item.StackCount { get; }

Gets stack count for Item.

Stats

PropertyLink ↗
public Dictionary<StatTypeGGG, int> Item.Stats { get; }

Gets the stats collection. Its element types are linked below.

Tags

PropertyLink ↗
public List<DatTagWrapper> Item.Tags { get; }

Gets the tags collection. Its element types are linked below.

UiElement

PropertyLink ↗
public Element Item.UiElement { get; }

Gets ui element for Item.

WorldItemId

PropertyLink ↗
public int Item.WorldItemId { get; }

Gets world item id for Item.

WorldItemPosition

PropertyLink ↗
public Vector2i Item.WorldItemPosition { get; }

Gets world item position for Item.

DPB2 0.4.5.88 · Reference reviewed 2026-10-02. Descriptions use source summaries where available, otherwise concise signature-based descriptions. Examples illustrate usage; they are not a live-game test.