API reference Obsidian.API.Commands.ArgumentParsers
ItemArgumentParser class
Reads an item like vanilla's item_stack arguments, which the client completes from its item registry.
public sealed class ItemArgumentParser : BaseArgumentParser<Item>
In Obsidian.API.
Remarks
Components after the identifier, like [damage=5], are accepted but ignored.
Constructors
public ItemArgumentParser();Properties
public override int Id { get; }public override string Identifier { get; }Methods
public override bool TryParseArgument(string input, CommandContext ctx, out Item result);