Record Class ArgumentSignatures

java.lang.Object
java.lang.Record
net.minecraft.network.encryption.ArgumentSignatures
Record Components:
salt -
signatures -

public record ArgumentSignatures(long salt, Map<String,byte[]> signatures) extends Record
Mappings:
Namespace Name
official dv
intermediary net/minecraft/class_7450
named net/minecraft/network/encryption/ArgumentSignatures
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_ARGUMENT_NAME_LENGTH

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

    • ArgumentSignatures

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

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

    • none

      public static ArgumentSignatures none()
      Mappings:
      Namespace Name Mixin selector
      official a Ldv;a()Ldv;
      intermediary method_43745 Lnet/minecraft/class_7450;method_43745()Lnet/minecraft/class_7450;
      named none Lnet/minecraft/network/encryption/ArgumentSignatures;none()Lnet/minecraft/network/encryption/ArgumentSignatures;
    • createSignatureData

      @Nullable public NetworkEncryptionUtils.SignatureData createSignatureData(String argumentName)
      Mappings:
      Namespace Name Mixin selector
      official a Ldv;a(Ljava/lang/String;)Lakm$b;
      intermediary method_43748 Lnet/minecraft/class_7450;method_43748(Ljava/lang/String;)Lnet/minecraft/class_3515$class_7425;
      named createSignatureData Lnet/minecraft/network/encryption/ArgumentSignatures;createSignatureData(Ljava/lang/String;)Lnet/minecraft/network/encryption/NetworkEncryptionUtils$SignatureData;
    • write

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

      public static Map<String,Text> collectArguments(com.mojang.brigadier.context.CommandContextBuilder<?> 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/encryption/ArgumentSignatures;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(Let;Lcom/mojang/brigadier/context/ParsedArgument;)Lrl;
      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/encryption/ArgumentSignatures;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