Class SimpleCommandExceptionType
Namespace: Void.Minecraft.Commands.Brigadier.Exceptions
Assembly: Void.Minecraft.dll
Creates command syntax exceptions with a fixed message.
public class SimpleCommandExceptionType : ICommandExceptionTypeInheritance
object ← SimpleCommandExceptionType
Implements
Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
SimpleCommandExceptionType(IMessage)
Creates command syntax exceptions with a fixed message.
public SimpleCommandExceptionType(IMessage message)Parameters
message IMessage
The message shared by created exceptions.
Methods
Create()
Creates an exception without input context.
public CommandSyntaxException Create()Returns
The command syntax exception.
CreateWithContext(IImmutableStringReader)
Creates an exception at the reader’s current cursor.
public CommandSyntaxException CreateWithContext(IImmutableStringReader reader)Parameters
reader IImmutableStringReader
The source and cursor to capture.
Returns
The contextual command syntax exception.
ToString()
Returns the fixed message text.
public override string ToString()Returns
The message value.