Class Dynamic4CommandExceptionType
Namespace: Void.Minecraft.Commands.Brigadier.Exceptions
Assembly: Void.Minecraft.dll
Creates command syntax exceptions whose messages depend on four runtime values.
public class Dynamic4CommandExceptionType : ICommandExceptionTypeInheritance
object ← Dynamic4CommandExceptionType
Implements
Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
Dynamic4CommandExceptionType(Func<object, object, object, object, IMessage>)
Creates command syntax exceptions whose messages depend on four runtime values.
public Dynamic4CommandExceptionType(Func<object, object, object, object, IMessage> function)Parameters
function Func<object, object, object, object, IMessage>
The message factory.
Methods
Create(object, object, object, object)
Creates an exception without input context.
public CommandSyntaxException Create(object a, object b, object c, object d)Parameters
a object
The first message value.
b object
The second message value.
c object
The third message value.
d object
The fourth message value.
Returns
The command syntax exception.
CreateWithContext(IImmutableStringReader, object, object, object, object)
Creates an exception at the reader’s current cursor.
public CommandSyntaxException CreateWithContext(IImmutableStringReader reader, object a, object b, object c, object d)Parameters
reader IImmutableStringReader
The source and cursor to capture.
a object
The first message value.
b object
The second message value.
c object
The third message value.
d object
The fourth message value.
Returns
The contextual exception.