Record Class ArgumentSignatureDataMap

java.lang.Object
java.lang.Record
net.minecraft.network.message.ArgumentSignatureDataMap
Record Components:
salt -
signatures -

public record ArgumentSignatureDataMap(long salt, Map<String,byte[]> signatures) extends Record
A record holding the salt and signatures for all signable arguments of an executed command.
Mappings:
Namespace Name
official dv
intermediary net/minecraft/class_7450
named net/minecraft/network/message/ArgumentSignatureDataMap
official a
intermediary comp_778
named salt
official b
intermediary comp_779
named signatures
  • Field Details

    • salt

      private final long salt
      The field for the salt record component.
    • signatures

      private final Map<String,byte[]> signatures
      The field for the signatures record component.
    • MAX_ARGUMENTS

      private static final int MAX_ARGUMENTS
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Ldv;c:I
      intermediary field_39418 Lnet/minecraft/class_7450;field_39418:I
      named MAX_ARGUMENTS Lnet/minecraft/network/message/ArgumentSignatureDataMap;MAX_ARGUMENTS:I
    • MAX_ARGUMENT_NAME_LENGTH

      private static final int MAX_ARGUMENT_NAME_LENGTH
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official d Ldv;d:I
      intermediary field_39185 Lnet/minecraft/class_7450;field_39185:I
      named MAX_ARGUMENT_NAME_LENGTH Lnet/minecraft/network/message/ArgumentSignatureDataMap;MAX_ARGUMENT_NAME_LENGTH:I
  • Constructor Details

    • ArgumentSignatureDataMap

      public ArgumentSignatureDataMap(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldv;<init>(Lqx;)V
      intermediary <init> Lnet/minecraft/class_7450;<init>(Lnet/minecraft/class_2540;)V
      named <init> Lnet/minecraft/network/message/ArgumentSignatureDataMap;<init>(Lnet/minecraft/network/PacketByteBuf;)V
    • ArgumentSignatureDataMap

      public ArgumentSignatureDataMap(long long2, Map<String,byte[]> map)
  • Method Details

    • empty

      public static ArgumentSignatureDataMap empty()
      Returns an empty signature data map that has no signed arguments.
      Returns:
      an empty signature data map that has no signed arguments
      API Note:
      This is used when there is no argument to sign, or when the signing fails.
      Mappings:
      Namespace Name Mixin selector
      official a Ldv;a()Ldv;
      intermediary method_43745 Lnet/minecraft/class_7450;method_43745()Lnet/minecraft/class_7450;
      named empty Lnet/minecraft/network/message/ArgumentSignatureDataMap;empty()Lnet/minecraft/network/message/ArgumentSignatureDataMap;
    • get

      Returns the signature data for argumentName, or null if the argument name is not present in this signatures.
      Returns:
      the signature data for argumentName, or null if the argument name is not present in this signatures
      Mappings:
      Namespace Name Mixin selector
      official a Ldv;a(Ljava/lang/String;)Lakq$b;
      intermediary method_43748 Lnet/minecraft/class_7450;method_43748(Ljava/lang/String;)Lnet/minecraft/class_3515$class_7425;
      named get Lnet/minecraft/network/message/ArgumentSignatureDataMap;get(Ljava/lang/String;)Lnet/minecraft/network/encryption/NetworkEncryptionUtils$SignatureData;
    • write

      public void write(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official a Ldv;a(Lqx;)V
      intermediary method_43749 Lnet/minecraft/class_7450;method_43749(Lnet/minecraft/class_2540;)V
      named write Lnet/minecraft/network/message/ArgumentSignatureDataMap;write(Lnet/minecraft/network/PacketByteBuf;)V
    • collectArguments

      public static Map<String,Text> collectArguments(com.mojang.brigadier.context.CommandContextBuilder<?> builder)
      Returns the signable argument names and their values from builder.
      Returns:
      the signable argument names and their values from builder
      Mappings:
      Namespace Name Mixin selector
      official a Ldv;a(Lcom/mojang/brigadier/context/CommandContextBuilder;)Ljava/util/Map;
      intermediary method_43746 Lnet/minecraft/class_7450;method_43746(Lcom/mojang/brigadier/context/CommandContextBuilder;)Ljava/util/Map;
      named collectArguments Lnet/minecraft/network/message/ArgumentSignatureDataMap;collectArguments(Lcom/mojang/brigadier/context/CommandContextBuilder;)Ljava/util/Map;
    • resultToText

      private static <T> Text resultToText(TextConvertibleArgumentType<T> type, com.mojang.brigadier.context.ParsedArgument<?,?> argument)
      Mappings:
      Namespace Name Mixin selector
      official a Ldv;a(Leu;Lcom/mojang/brigadier/context/ParsedArgument;)Lrm;
      intermediary method_43747 Lnet/minecraft/class_7450;method_43747(Lnet/minecraft/class_7451;Lcom/mojang/brigadier/context/ParsedArgument;)Lnet/minecraft/class_2561;
      named resultToText Lnet/minecraft/network/message/ArgumentSignatureDataMap;resultToText(Lnet/minecraft/command/argument/TextConvertibleArgumentType;Lcom/mojang/brigadier/context/ParsedArgument;)Lnet/minecraft/text/Text;
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • salt

      public long salt()
      Returns the value of the salt record component.
      Returns:
      the value of the salt record component
    • signatures

      public Map<String,byte[]> signatures()
      Returns the value of the signatures record component.
      Returns:
      the value of the signatures record component