Skip to content

Class CommandServiceExtensions

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

Provides Brigadier builder registration for the proxy command service.

public static class CommandServiceExtensions

Inheritance

objectCommandServiceExtensions

Inherited Members

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

Methods

Register(ICommandService, Func<IArgumentContext, LiteralArgumentBuilder>)

Builds a root literal command and adds it to the service dispatcher.

public static void Register(this ICommandService commands, Func<IArgumentContext, LiteralArgumentBuilder> configure)

Parameters

commands ICommandService

The command service.

configure Func<IArgumentContext, LiteralArgumentBuilder>

The builder factory, invoked with the default argument context.