Skip to content

Class RequiredArgumentBuilderExtensions

Namespace: Void.Minecraft.Commands.Brigadier.Extensions
Assembly: Void.Minecraft.dll

public static class RequiredArgumentBuilderExtensions

Inheritance

objectRequiredArgumentBuilderExtensions

Inherited Members

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

Methods

Argument(IArgumentContext, string, IArgumentType)

Creates a for a named command argument.

public static RequiredArgumentBuilder Argument(this IArgumentContext _, string name, IArgumentType type)

Parameters

_ IArgumentContext

The command argument context used to scope the builder factory.

name string

The argument name that will be assigned to the resulting command node.

type IArgumentType

The parser and suggestion behavior for the argument value.

Returns

RequiredArgumentBuilder

A required argument builder configured with name and type.

Remarks

The _ receiver is not inspected; it only makes the factory available inside command registration delegates.

This method delegates to and does not perform additional runtime validation.