API reference Obsidian.API.Inventory.DataComponents
EntityDataComponent record
Entity or block-entity type registry ID followed by its custom NBT.
public sealed record EntityDataComponent : DataComponent, IEquatable<EntityDataComponent>
In Obsidian.API.
Constructors
EntityDataComponent(DataComponentType)
public EntityDataComponent(DataComponentType ComponentType);Entity or block-entity type registry ID followed by its custom NBT.
Properties
public DataComponentType ComponentType { get; init; }public NbtCompound Data { get; init; }public override string Identifier { get; }public int RegistryId { get; init; }public override DataComponentType Type { get; }Methods
public bool Equals(EntityDataComponent other);public override int GetHashCode();public override void Write(INetStreamWriter writer);