Interface SignedMessageResolver


@Experimental @NullMarked @NonExtendable public interface SignedMessageResolver
A resolver for a SignedMessage
See Also:
  • 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 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