Skip to content

API reference Obsidian.API.Inventory.DataComponents

BlockPredicate record struct

public readonly record struct BlockPredicate : IEquatable<BlockPredicate>

In Obsidian.API.

Constructors

public BlockPredicate();

Properties

public ImmutableArray<string> BlockIds { get; init; }public IdSet? Blocks { get; init; }public ImmutableArray<DataComponent> ExactComponents { get; init; }public bool HasBlocks { get; }public bool HasNbt { get; }public bool HasProperties { get; }public NbtCompound Nbt { get; init; }public ImmutableArray<ComponentPredicate> PartialComponents { get; init; }public ImmutableArray<BlockProperty>? Properties { get; init; }

Methods

public bool Equals(BlockPredicate other);public override int GetHashCode();

On this page