API reference Obsidian.API.Commands.ArgumentParsers
BlockStateArgumentParser class
Reads a block state like vanilla's block_state arguments, minecraft:oak_stairs[facing=east], which the client completes from its block registry. Whether the block exists is checked where it's placed.
public sealed class BlockStateArgumentParser : BaseArgumentParser<BlockStateArgument>
In Obsidian.API.
Remarks
Block entity data after the properties, like {Items:[]}, is accepted but ignored.
Constructors
public BlockStateArgumentParser();Properties
public override int Id { get; }public override string Identifier { get; }Methods
public override bool TryParseArgument(string input, CommandContext ctx, out BlockStateArgument result);