Interface SignedMessageResolver
A resolver for a
SignedMessage
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptioncontent()
Gets the string content of the messageresolveSignedMessage
(String argumentName, com.mojang.brigadier.context.CommandContext<CommandSourceStack> context) Resolves this signed message.
-
Method Details
-
content
String content()Gets the string content of the message- Returns:
- string content
-
resolveSignedMessage
CompletableFuture<SignedMessage> resolveSignedMessage(String argumentName, com.mojang.brigadier.context.CommandContext<CommandSourceStack> context) throws com.mojang.brigadier.exceptions.CommandSyntaxException Resolves this signed message. This will theCommandContext
and signed arguments sent by the client.In the case that signed message information isn't provided, a "system" signed message will be returned instead.
- Parameters:
argumentName
- argument namecontext
- the command context- Returns:
- a completable future for the
SignedMessage
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- syntax exception
-