Package net.minecraft.network.message
Record Class ArgumentSignatureDataMap
java.lang.Object
java.lang.Record
net.minecraft.network.message.ArgumentSignatureDataMap
- Record Components:
entries-
A record holding the signatures for all signable arguments of an executed command.
- See Also:
- Mappings:
Namespace Name official dvintermediary net/minecraft/class_7450named net/minecraft/network/message/ArgumentSignatureDataMapofficial bintermediary comp_912named entries
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceA functional interface that signs an argument of a command.static final recordAn entry of the signatures map, consisting of the argument's name and signature data. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ArgumentSignatureDataMapprivate final List<ArgumentSignatureDataMap.Entry>The field for theentriesrecord component.private static final intprivate static final int -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionentries()Returns the value of theentriesrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the signature data forargumentName, ornullif the argument name is not present in this signatures.final inthashCode()Returns a hash code value for this object.static booleanhasSignedArgument(DecoratableArgumentList<?> arguments) Returns whether the parsed arguments includeSignedArgumentType.private static <T> StringresultToString(SignedArgumentType<T> type, com.mojang.brigadier.context.ParsedArgument<?, ?> argument) static ArgumentSignatureDataMapsign(DecoratableArgumentList<?> arguments, ArgumentSignatureDataMap.ArgumentSigner signer) Returns the signature map withargumentssigned withsigner.toNameValuePairs(DecoratableArgumentList<?> arguments) Returnsargumentsconverted to a list of signed name/value pairs.final StringtoString()Returns a string representation of this record class.voidwrite(PacketByteBuf buf)
-
Field Details
-
entries
The field for theentriesrecord component. -
EMPTY
- Mappings:
Namespace Name Mixin selector official aLdv;a:Ldv;intermediary field_39807Lnet/minecraft/class_7450;field_39807:Lnet/minecraft/class_7450;named EMPTYLnet/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 cLdv;c:Iintermediary field_39418Lnet/minecraft/class_7450;field_39418:Inamed MAX_ARGUMENTSLnet/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 dLdv;d:Iintermediary field_39185Lnet/minecraft/class_7450;field_39185:Inamed MAX_ARGUMENT_NAME_LENGTHLnet/minecraft/network/message/ArgumentSignatureDataMap;MAX_ARGUMENT_NAME_LENGTH:I
-
-
Constructor Details
-
ArgumentSignatureDataMap
- Mappings:
Namespace Name Mixin selector official <init>Ldv;<init>(Lqx;)Vintermediary <init>Lnet/minecraft/class_7450;<init>(Lnet/minecraft/class_2540;)Vnamed <init>Lnet/minecraft/network/message/ArgumentSignatureDataMap;<init>(Lnet/minecraft/network/PacketByteBuf;)V
-
ArgumentSignatureDataMap
-
-
Method Details
-
get
Returns the signature data forargumentName, ornullif the argument name is not present in this signatures.- Returns:
- the signature data for
argumentName, ornullif the argument name is not present in this signatures - Mappings:
Namespace Name Mixin selector official aLdv;a(Ljava/lang/String;)Lrz;intermediary method_43748Lnet/minecraft/class_7450;method_43748(Ljava/lang/String;)Lnet/minecraft/class_7469;named getLnet/minecraft/network/message/ArgumentSignatureDataMap;get(Ljava/lang/String;)Lnet/minecraft/network/message/MessageSignatureData;
-
write
- Mappings:
Namespace Name Mixin selector official aLdv;a(Lqx;)Vintermediary method_43749Lnet/minecraft/class_7450;method_43749(Lnet/minecraft/class_2540;)Vnamed writeLnet/minecraft/network/message/ArgumentSignatureDataMap;write(Lnet/minecraft/network/PacketByteBuf;)V
-
hasSignedArgument
Returns whether the parsed arguments includeSignedArgumentType.- Returns:
- whether the parsed arguments include
SignedArgumentType - Mappings:
Namespace Name Mixin selector official aLdv;a(Lse;)Zintermediary method_44910Lnet/minecraft/class_7450;method_44910(Lnet/minecraft/class_7644;)Znamed hasSignedArgumentLnet/minecraft/network/message/ArgumentSignatureDataMap;hasSignedArgument(Lnet/minecraft/command/argument/DecoratableArgumentList;)Z
-
sign
public static ArgumentSignatureDataMap sign(DecoratableArgumentList<?> arguments, ArgumentSignatureDataMap.ArgumentSigner signer) Returns the signature map withargumentssigned withsigner.- Returns:
- the signature map with
argumentssigned withsigner - Mappings:
Namespace Name Mixin selector official aLdv;a(Lse;Ldv$b;)Ldv;intermediary method_44797Lnet/minecraft/class_7450;method_44797(Lnet/minecraft/class_7644;Lnet/minecraft/class_7450$class_7600;)Lnet/minecraft/class_7450;named signLnet/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) Returnsargumentsconverted to a list of signed name/value pairs.- Returns:
argumentsconverted to a list of signed name/value pairs- Mappings:
Namespace Name Mixin selector official bLdv;b(Lse;)Ljava/util/List;intermediary method_45020Lnet/minecraft/class_7450;method_45020(Lnet/minecraft/class_7644;)Ljava/util/List;named toNameValuePairsLnet/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 aLdv;a(Leu;Lcom/mojang/brigadier/context/ParsedArgument;)Ljava/lang/String;intermediary method_43747Lnet/minecraft/class_7450;method_43747(Lnet/minecraft/class_7451;Lcom/mojang/brigadier/context/ParsedArgument;)Ljava/lang/String;named resultToStringLnet/minecraft/network/message/ArgumentSignatureDataMap;resultToString(Lnet/minecraft/command/argument/SignedArgumentType;Lcom/mojang/brigadier/context/ParsedArgument;)Ljava/lang/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. -
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. -
equals
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 withObjects::equals(Object,Object). -
entries
Returns the value of theentriesrecord component.- Returns:
- the value of the
entriesrecord component
-