Interface CommandArgumentSigner

All Known Implementing Classes:
CommandArgumentSigner.Signatures

public interface CommandArgumentSigner
A signer for command arguments.
Mappings:
Namespace Name
official dp
intermediary net/minecraft/class_7448
named net/minecraft/network/encryption/CommandArgumentSigner
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final record 
    A signature for command arguments, consisting of the sender, the timestamp, and the signature datas for the arguments.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    signArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argumentName, Text value)
    Returns the signed argument's message from the argument name and value.
  • Field Details

    • NONE

      static final CommandArgumentSigner NONE
      Mappings:
      Namespace Name Mixin selector
      official a Ldp;a:Ldp;
      intermediary field_39182 Lnet/minecraft/class_7448;field_39182:Lnet/minecraft/class_7448;
      named NONE Lnet/minecraft/network/encryption/CommandArgumentSigner;NONE:Lnet/minecraft/network/encryption/CommandArgumentSigner;
  • Method Details

    • signArgument

      SignedChatMessage signArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argumentName, Text value) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Returns the signed argument's message from the argument name and value.
      Returns:
      the signed argument's message from the argument name and value
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official signArgument Ldp;signArgument(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Lrl;)Lrt;
      intermediary signArgument Lnet/minecraft/class_7448;signArgument(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Lnet/minecraft/class_2561;)Lnet/minecraft/class_7471;
      named signArgument Lnet/minecraft/network/encryption/CommandArgumentSigner;signArgument(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Lnet/minecraft/text/Text;)Lnet/minecraft/network/encryption/SignedChatMessage;