Interface SignedMessageResolver
A resolver for a
SignedMessage
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptioncontent()
Gets the string content of the messageresolveSignedMessage
(@NotNull String argumentName, @NotNull com.mojang.brigadier.context.CommandContext<CommandSourceStack> context) Resolves this signed message.
-
Method Details
-
content
Gets the string content of the message- Returns:
- string content
-
resolveSignedMessage
@NotNull @NotNull CompletableFuture<SignedMessage> resolveSignedMessage(@NotNull @NotNull String argumentName, @NotNull @NotNull 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
-