Skip to content

Class RegistryKeyArgumentType

Namespace: Void.Minecraft.Commands.Brigadier.ArgumentTypes.RegistryKey
Assembly: Void.Minecraft.dll

Parses a registry key while retaining the registry identifier required by the protocol declaration.

public record RegistryKeyArgumentType : IArgumentType, IAnyArgumentType, IEquatable<RegistryKeyArgumentType>

Inheritance

objectRegistryKeyArgumentType

Derived

ResourceKeyArgumentType, ResourceOrTagArgumentType, ResourceOrTagKeyArgumentType, ResourceSelectorArgumentType

Implements

IArgumentType, IAnyArgumentType, IEquatable<RegistryKeyArgumentType>

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors

RegistryKeyArgumentType(string)

Parses a registry key while retaining the registry identifier required by the protocol declaration.

public RegistryKeyArgumentType(string Identifier)

Parameters

Identifier string

The registry identifier serialized with the command node.

Properties

Examples

Gets representative valid input strings.

public IEnumerable<string> Examples { get; }

Property Value

IEnumerable<string>

Identifier

The registry identifier serialized with the command node.

public string Identifier { get; init; }

Property Value

string

Methods

Parse(StringReader)

Parses a value from the reader’s current cursor.

public IArgumentValue Parse(StringReader reader)

Parameters

reader StringReader

The command reader to consume.

Returns

IArgumentValue

The parsed argument value.