Skip to content

API reference Obsidian.API.Client

IClientEntity interface

One detached entity snapshot. Its properties and metadata table are read-only. Metadata values keep the client's decoded CLR types; mutable values (arrays, NBT dictionaries/lists and item stacks) are deep copies owned by the caller. Retaining or changing them affects neither the client nor subsequent queries.

public interface IClientEntity

In Obsidian.API.Client.

Properties

int Id { get; }

Metadata

IReadOnlyDictionary<byte, object> Metadata { get; }

Synced metadata by protocol index. Missing entries have not been received; null is a valid value.

Position

VectorD Position { get; }

The current displayed position, after any interpolation applied so far.

Type

EntityType Type { get; }

The client's entity type id, including registered plugin types.

Guid Uuid { get; }

On this page