DPB2Class · Utilities and settings

EntityWrapper

Provides entity wrapper data and the operations listed below. Related types link to the values this API consumes or returns.

Namespace: DreamPoeBot.Loki.Models

public class EntityWrapper
Reference: DPB2 0.4.5.103Compare the DPB1 reference → Check signatures and usage notes separately; a matching type is not a compatibility guarantee.

Use this API

Useful members available through base types — open a member to read its exact contract:

Members and overloads

5 declared here

Search includes inherited members below. 16 matching inherited members →

EntityWrapper

MethodLink ↗
public EntityWrapper.EntityWrapper()

Creates a new EntityWrapper instance.

Equals

MethodLink ↗
public override bool EntityWrapper.Equals(object obj)

Checks whether this value equals the supplied value.

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

Parameters

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

Specifies obj.

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

GetHashCode

MethodLink ↗
public override int EntityWrapper.GetHashCode()

Returns a hash code for comparing or indexing this value.

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

Returns: The int result.

ToString

MethodLink ↗
public override string EntityWrapper.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.

IsAlive

PropertyLink ↗
public bool EntityWrapper.IsAlive { get; }

Whether this entity wrapper is alive.

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

Inherited members and contracts

16 public members from documented base types and interfaces. Links open the original declaration; overrides are shown only once. Search using the member field above.

public Dictionary<string, long> Entity.BuildComponentIndices { get; } Declared by Entity

Preserves the original public API. Unlike ComponentIndices, this property always builds a new snapshot.

public static void Entity.ClearSharedCaches() Declared by Entity

Clears layouts shared between entities. Call this whenever DreamPoeBot detaches from the game process or attaches to a new PathOfExile process.

public Dictionary<string, long> Entity.ComponentIndices { get; } Declared by Entity

Gets the component indices collection. Its element types are linked below.

public T Entity.GetComponent<T>() where T : Component, new() Declared by Entity

Returns component.

public long Entity.GetEffectManager(short id) Declared by Entity

Calls GetEffectManager on Entity with id and returns long. Open the return contract below before using the result.

public bool Entity.HasComponent<T>() where T : Component, new() Declared by Entity

Checks for component.

public int Entity.Id { get; } Declared by Entity

Reads id on Entity as int. The exact type and accessors are shown below.

public override bool Entity.IsValid { get; } Declared by Entity

Whether this entity is valid.

public string Entity.Metadata { get; } Declared by Entity

Reads metadata on Entity as string. The exact type and accessors are shown below.

public string Entity.Name { get; } Declared by Entity

Reads name on Entity as string. The exact type and accessors are shown below.

public Vector2i Entity.Position { get; } Declared by Entity

Reads position on Entity as Vector2i. Open the value type below for its members and accepted values.

public Positioned Entity.PositionedComp { get; } Declared by Entity

Reads positioned comp on Entity as Positioned. Open the value type below for its members and accepted values.

public byte Entity.Reaction { get; } Declared by Entity

Reads reaction on Entity as byte. The exact type and accessors are shown below.

public float Entity.Rotation { get; } Declared by Entity

Reads rotation on Entity as float. The exact type and accessors are shown below.

public bool Entity.TryGetComponent<T>(out T component) where T : Component, new() Declared by Entity

Calls TryGetComponent on Entity with component and returns bool. Open the return contract below before using the result.

public string Entity.Type { get; } Declared by Entity

Reads type on Entity as string. The exact type and accessors are shown below.

DPB2 0.4.5.103 · 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.