Skip to content

Class BoolArgumentType

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

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

Inheritance

objectBoolArgumentType

Implements

IArgumentType, IAnyArgumentType, IEquatable<BoolArgumentType>

Inherited Members

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

Properties

Examples

public IEnumerable<string> Examples { get; }

Property Value

IEnumerable<string>

Methods

Bool()

public static BoolArgumentType Bool()

Returns

BoolArgumentType

GetBool(CommandContext, string)

public static bool GetBool(CommandContext context, string name)

Parameters

context CommandContext

name string

Returns

bool

ListSuggestionsAsync(CommandContext, SuggestionsBuilder, CancellationToken)

public virtual ValueTask<Suggestions> ListSuggestionsAsync(CommandContext context, SuggestionsBuilder builder, CancellationToken cancellationToken)

Parameters

context CommandContext

builder SuggestionsBuilder

cancellationToken CancellationToken

Returns

ValueTask<Suggestions>

Parse(StringReader)

public IArgumentValue Parse(StringReader reader)

Parameters

reader StringReader

Returns

IArgumentValue