Skip to content

API reference Obsidian.API

ScoreHolderArgument record

The score holders a command names: those a selector selects, every tracked holder for *, or one by name.

public sealed record ScoreHolderArgument : IEquatable<ScoreHolderArgument>

In Obsidian.API.

Constructors

ScoreHolderArgument(string, EntitySelector)

public ScoreHolderArgument(string Text, EntitySelector Selector);

The score holders a command names: those a selector selects, every tracked holder for *, or one by name.

Parameters

Text
What was typed.
Selector
The selector, when one was typed.

Properties

IsWildcard

public bool IsWildcard { get; }

Whether it names every holder the scoreboard tracks.

Selector

public EntitySelector Selector { get; init; }

The selector, when one was typed.

Text

public string Text { get; init; }

What was typed.

Methods

NameOf(IEntity)

public static string NameOf(IEntity entity);

The name an entity's scores are kept under.

Resolve(CommandContext, IEnumerable<string>)

public IReadOnlyList<string> Resolve(CommandContext context, IEnumerable<string> tracked);

The names of the holders it names: players by username, other entities by UUID, as vanilla's scoreboard names them.

Parameters

tracked
Every holder the scoreboard tracks, which * names.

On this page