API reference Obsidian.API.Inventory.DataComponents
ComponentPredicate record struct
A partial component predicate: a minecraft:data_component_predicate_type id if ComponentPredicate.IsPredicateType, otherwise the id of the data component type that must be present.
public readonly record struct ComponentPredicate : IEquatable<ComponentPredicate>
In Obsidian.API.
Properties
public required bool IsPredicateType { get; init; }public required int TypeId { get; init; }public required NbtCompound Value { get; init; }Methods
public bool Equals(ComponentPredicate other);public override int GetHashCode();