DPB1Class · Game state and actions

Entity

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

Namespace: DreamPoeBot.Loki

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

Members and overloads

15 declared here

Entity

MethodLink ↗
public Entity.Entity()

Creates a new Entity instance.

GetComponent

MethodLink ↗
public T Entity.GetComponent<T>() where T : Component, new()

Returns component.

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

Returns: The T result.

HasComponent

MethodLink ↗
public bool Entity.HasComponent<T>() where T : Component, new()

Checks for component.

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

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

OnPointerChanged

MethodLink ↗
protected override void Entity.OnPointerChanged()

Calls OnPointerChanged on Entity without arguments. This overload has no return value.

Return type: voidNo return value.

ToString

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

BuildComponentIndices

PropertyLink ↗
public Dictionary<string, long> Entity.BuildComponentIndices { get; }

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

Value type: Dictionary<string, long>No current DPB page is linked for this built-in, external, generic or compatibility-only type.

ComponentIndices

PropertyLink ↗
public Dictionary<string, long> Entity.ComponentIndices { get; }

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

Value type: Dictionary<string, long>No current DPB page is linked for this built-in, external, generic or compatibility-only type.

Id

PropertyLink ↗
public int Entity.Id { get; }

Reads id on Entity 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.

IsValid

PropertyLink ↗
public override bool Entity.IsValid { get; }

Whether this entity is valid.

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

Metadata

PropertyLink ↗
public string Entity.Metadata { get; }

Reads metadata on Entity 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.

Name

PropertyLink ↗
public string Entity.Name { get; }

Reads name on Entity 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.

Reaction

PropertyLink ↗
public byte Entity.Reaction { get; }

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

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

Type

PropertyLink ↗
public string Entity.Type { get; }

Reads type on Entity 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.

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.