Interface SignedMessageResolver


@Experimental @NonExtendable public interface SignedMessageResolver
A resolver for a SignedMessage
See Also:
  • 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 the CommandContext 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 name
      context - the command context
      Returns:
      a completable future for the SignedMessage
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException - syntax exception