Skip to content

Class UnknownArgumentType

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

An argument of a type the proxy doesn’t know, such as one a mod registers. It reaches the player exactly as the server sent it, so a client with the same mods reads it as it would on a direct connection.

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

Inheritance

object ← UnknownArgumentType

Implements

IArgumentType, IAnyArgumentType, IEquatable<UnknownArgumentType>

Inherited Members

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

Constructors

UnknownArgumentType(ArgumentSerializerMapping, ReadOnlyMemory<byte>)

An argument of a type the proxy doesn’t know, such as one a mod registers. It reaches the player exactly as the server sent it, so a client with the same mods reads it as it would on a direct connection.

public UnknownArgumentType(ArgumentSerializerMapping Mapping, ReadOnlyMemory<byte> Properties)

Parameters

Mapping ArgumentSerializerMapping

The argument type as the server named it: its identifier before 1.19, or its numeric ID from 1.19.

Properties ReadOnlyMemory<byte>

The argument type’s properties as the server sent them.

Properties

Examples

Always throws because the proxy can’t parse input for an argument type it doesn’t know.

public IEnumerable<string> Examples { get; }

Property Value

IEnumerable<string>

Exceptions

NotSupportedException

Always thrown.

Mapping

The argument type as the server named it: its identifier before 1.19, or its numeric ID from 1.19.

public ArgumentSerializerMapping Mapping { get; init; }

Property Value

ArgumentSerializerMapping

Properties

The argument type’s properties as the server sent them.

public ReadOnlyMemory<byte> Properties { get; init; }

Property Value

ReadOnlyMemory<byte>

Methods

Parse(StringReader)

Always throws because the proxy can’t parse input for an argument type it doesn’t know.

public IArgumentValue Parse(StringReader reader)

Parameters

reader StringReader

The unused reader.

Returns

IArgumentValue

This method does not return.

Exceptions

NotSupportedException

Always thrown.