public Entity.Entity()
Creates a new Entity instance.
Provides entity data and the operations listed below. Related types link to the values this API consumes or returns.
Namespace: DreamPoeBot.Loki
public class Entitypublic Entity.Entity()
Creates a new Entity instance.
public static void Entity.ClearSharedCaches()
Clears layouts shared between entities. Call this whenever DreamPoeBot detaches from the game process or attaches to a new PathOfExile process.
voidNo return value.public T Entity.GetComponent<T>() where T : Component, new()
Returns component.
TNo current DPB page is linked for this built-in, external, generic or compatibility-only type.Returns: The T result.
public long Entity.GetEffectManager(short id)
Calls GetEffectManager on Entity with id and returns long. Open the return contract below before using the result.
longNo current DPB page is linked for this built-in, external, generic or compatibility-only type.idshortNo current DPB page is linked for this built-in, external, generic or compatibility-only type.Specifies id.
Returns: The long result.
public bool Entity.HasComponent<T>() where T : Component, new()
Checks for component.
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.
public override string Entity.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 bool Entity.TryGetComponent<T>(out T component) where T : Component, new()
Calls TryGetComponent on Entity with component 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.componentTNo current DPB page is linked for this built-in, external, generic or compatibility-only type.Receives component.
Returns: True when the request succeeds; read any out parameters only after checking the result.
public Dictionary<string, long> Entity.BuildComponentIndices { get; }
Preserves the original public API. Unlike ComponentIndices, this property always builds a new snapshot.
Dictionary<string, long>No current DPB page is linked for this built-in, external, generic or compatibility-only type.public Dictionary<string, long> Entity.ComponentIndices { get; }
Gets the component indices collection. Its element types are linked below.
Dictionary<string, long>No current DPB page is linked for this built-in, external, generic or compatibility-only type.public int Entity.Id { get; }
Reads id on Entity 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 override bool Entity.IsValid { get; }
Whether this entity is valid.
boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.public string Entity.Metadata { get; }
Reads metadata on Entity 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 string Entity.Name { get; }
Reads name on Entity 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 Vector2i Entity.Position { get; }
Reads position on Entity as Vector2i. Open the value type below for its members and accepted values.
Vector2iA two-dimensional integer position. Used by grid-position and pathfinding APIs; screen-position APIs may expect a different coordinate type.
public Positioned Entity.PositionedComp { get; }
Reads positioned comp on Entity as Positioned. Open the value type below for its members and accepted values.
PositionedProvides positioned data and the operations listed below. Related types link to the values this API consumes or returns.
public byte Entity.Reaction { get; }
Reads reaction on Entity as byte. The exact type and accessors are shown below.
byteNo current DPB page is linked for this built-in, external, generic or compatibility-only type.public float Entity.Rotation { get; }
Reads rotation on Entity as float. The exact type and accessors are shown below.
floatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.public string Entity.Type { get; }
Reads type on Entity 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.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.