Package net.minecraft.network.message
Record Class ArgumentSignatureDataMap
java.lang.Object
java.lang.Record
net.minecraft.network.message.ArgumentSignatureDataMap
- Record Components:
salt-signatures-
A record holding the salt and signatures for all signable arguments of an executed command.
- Mappings:
Namespace Name official dvintermediary net/minecraft/class_7450named net/minecraft/network/message/ArgumentSignatureDataMapofficial aintermediary comp_778named saltofficial bintermediary comp_779named signatures
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final intprivate final longThe field for thesaltrecord component.The field for thesignaturesrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncollectArguments(com.mojang.brigadier.context.CommandContextBuilder<?> builder) Returns the signable argument names and their values frombuilder.static ArgumentSignatureDataMapempty()Returns an empty signature data map that has no signed arguments.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.private static <T> TextresultToText(TextConvertibleArgumentType<T> type, com.mojang.brigadier.context.ParsedArgument<?, ?> argument) longsalt()Returns the value of thesaltrecord component.Returns the value of thesignaturesrecord component.final StringtoString()Returns a string representation of this record class.voidwrite(PacketByteBuf buf)
-
Field Details
-
salt
private final long saltThe field for thesaltrecord component. -
signatures
The field for thesignaturesrecord component. -
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
-
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 aLdv;a()Ldv;intermediary method_43745Lnet/minecraft/class_7450;method_43745()Lnet/minecraft/class_7450;named emptyLnet/minecraft/network/message/ArgumentSignatureDataMap;empty()Lnet/minecraft/network/message/ArgumentSignatureDataMap;
-
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;)Lakq$b;intermediary method_43748Lnet/minecraft/class_7450;method_43748(Ljava/lang/String;)Lnet/minecraft/class_3515$class_7425;named getLnet/minecraft/network/message/ArgumentSignatureDataMap;get(Ljava/lang/String;)Lnet/minecraft/network/encryption/NetworkEncryptionUtils$SignatureData;
-
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
-
collectArguments
public static Map<String,Text> collectArguments(com.mojang.brigadier.context.CommandContextBuilder<?> builder) Returns the signable argument names and their values frombuilder.- Returns:
- the signable argument names and their values from
builder - Mappings:
Namespace Name Mixin selector official aLdv;a(Lcom/mojang/brigadier/context/CommandContextBuilder;)Ljava/util/Map;intermediary method_43746Lnet/minecraft/class_7450;method_43746(Lcom/mojang/brigadier/context/CommandContextBuilder;)Ljava/util/Map;named collectArgumentsLnet/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 aLdv;a(Leu;Lcom/mojang/brigadier/context/ParsedArgument;)Lrm;intermediary method_43747Lnet/minecraft/class_7450;method_43747(Lnet/minecraft/class_7451;Lcom/mojang/brigadier/context/ParsedArgument;)Lnet/minecraft/class_2561;named resultToTextLnet/minecraft/network/message/ArgumentSignatureDataMap;resultToText(Lnet/minecraft/command/argument/TextConvertibleArgumentType;Lcom/mojang/brigadier/context/ParsedArgument;)Lnet/minecraft/text/Text;
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
salt
public long salt()Returns the value of thesaltrecord component.- Returns:
- the value of the
saltrecord component
-
signatures
Returns the value of thesignaturesrecord component.- Returns:
- the value of the
signaturesrecord component
-