Record Class ArgumentSignatureDataMap

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

public record ArgumentSignatureDataMap(List<ArgumentSignatureDataMap.Entry> entries) extends Record
A record holding the signatures for all signable arguments of an executed command.
See Also:
Mappings:
Namespace Name
official dv
intermediary net/minecraft/class_7450
named net/minecraft/network/message/ArgumentSignatureDataMap
official b
intermediary comp_912
named entries
  • Field Details

    • entries

      private final List<ArgumentSignatureDataMap.Entry> entries
      The field for the entries record component.
    • EMPTY

      public static final ArgumentSignatureDataMap EMPTY
      Mappings:
      Namespace Name Mixin selector
      official a Ldv;a:Ldv;
      intermediary field_39807 Lnet/minecraft/class_7450;field_39807:Lnet/minecraft/class_7450;
      named EMPTY Lnet/minecraft/network/message/ArgumentSignatureDataMap;EMPTY:Lnet/minecraft/network/message/ArgumentSignatureDataMap;
    • 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(List<ArgumentSignatureDataMap.Entry> list)
  • Method Details

    • get

      public MessageSignatureData get(String argumentName)
      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;)Lrz;
      intermediary method_43748 Lnet/minecraft/class_7450;method_43748(Ljava/lang/String;)Lnet/minecraft/class_7469;
      named get Lnet/minecraft/network/message/ArgumentSignatureDataMap;get(Ljava/lang/String;)Lnet/minecraft/network/message/MessageSignatureData;
    • 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
    • hasSignedArgument

      public static boolean hasSignedArgument(DecoratableArgumentList<?> arguments)
      Returns whether the parsed arguments include SignedArgumentType.
      Returns:
      whether the parsed arguments include SignedArgumentType
      Mappings:
      Namespace Name Mixin selector
      official a Ldv;a(Lse;)Z
      intermediary method_44910 Lnet/minecraft/class_7450;method_44910(Lnet/minecraft/class_7644;)Z
      named hasSignedArgument Lnet/minecraft/network/message/ArgumentSignatureDataMap;hasSignedArgument(Lnet/minecraft/command/argument/DecoratableArgumentList;)Z
    • sign

      Returns the signature map with arguments signed with signer.
      Returns:
      the signature map with arguments signed with signer
      Mappings:
      Namespace Name Mixin selector
      official a Ldv;a(Lse;Ldv$b;)Ldv;
      intermediary method_44797 Lnet/minecraft/class_7450;method_44797(Lnet/minecraft/class_7644;Lnet/minecraft/class_7450$class_7600;)Lnet/minecraft/class_7450;
      named sign Lnet/minecraft/network/message/ArgumentSignatureDataMap;sign(Lnet/minecraft/command/argument/DecoratableArgumentList;Lnet/minecraft/network/message/ArgumentSignatureDataMap$ArgumentSigner;)Lnet/minecraft/network/message/ArgumentSignatureDataMap;
    • toNameValuePairs

      public static List<com.mojang.datafixers.util.Pair<String,String>> toNameValuePairs(DecoratableArgumentList<?> arguments)
      Returns arguments converted to a list of signed name/value pairs.
      Returns:
      arguments converted to a list of signed name/value pairs
      Mappings:
      Namespace Name Mixin selector
      official b Ldv;b(Lse;)Ljava/util/List;
      intermediary method_45020 Lnet/minecraft/class_7450;method_45020(Lnet/minecraft/class_7644;)Ljava/util/List;
      named toNameValuePairs Lnet/minecraft/network/message/ArgumentSignatureDataMap;toNameValuePairs(Lnet/minecraft/command/argument/DecoratableArgumentList;)Ljava/util/List;
    • resultToString

      private static <T> String resultToString(SignedArgumentType<T> type, com.mojang.brigadier.context.ParsedArgument<?,?> argument)
      Mappings:
      Namespace Name Mixin selector
      official a Ldv;a(Leu;Lcom/mojang/brigadier/context/ParsedArgument;)Ljava/lang/String;
      intermediary method_43747 Lnet/minecraft/class_7450;method_43747(Lnet/minecraft/class_7451;Lcom/mojang/brigadier/context/ParsedArgument;)Ljava/lang/String;
      named resultToString Lnet/minecraft/network/message/ArgumentSignatureDataMap;resultToString(Lnet/minecraft/command/argument/SignedArgumentType;Lcom/mojang/brigadier/context/ParsedArgument;)Ljava/lang/String;
    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • entries

      Returns the value of the entries record component.
      Returns:
      the value of the entries record component