Package net.minecraft.network.encryption
Record Class ArgumentSignatureDataMap
java.lang.Object
java.lang.Record
net.minecraft.network.encryption.ArgumentSignatureDataMap
- Record Components:
salt
-signatures
-
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/encryption/ArgumentSignatureDataMap
official a
intermediary comp_778
named salt
official b
intermediary comp_779
named signatures
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
private static final int
private final long
The field for thesalt
record component.The field for thesignatures
record component. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncollectArguments
(com.mojang.brigadier.context.CommandContextBuilder<?> builder) Returns the signable argument names and their values frombuilder
.static ArgumentSignatureDataMap
empty()
Returns an empty signature data map that has no signed arguments.final boolean
Indicates whether some other object is "equal to" this one.Returns the signature data forargumentName
, ornull
if the argument name is not present in this signatures.final int
hashCode()
Returns a hash code value for this object.private static <T> Text
resultToText
(TextConvertibleArgumentType<T> type, com.mojang.brigadier.context.ParsedArgument<?, ?> argument) long
salt()
Returns the value of thesalt
record component.Returns the value of thesignatures
record component.final String
toString()
Returns a string representation of this record class.void
write
(PacketByteBuf buf)
-
Field Details
-
salt
private final long saltThe field for thesalt
record component. -
signatures
The field for thesignatures
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/encryption/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/encryption/ArgumentSignatureDataMap;MAX_ARGUMENT_NAME_LENGTH:I
-
-
Constructor Details
-
ArgumentSignatureDataMap
- 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/encryption/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 a
Ldv;a()Ldv;
intermediary method_43745
Lnet/minecraft/class_7450;method_43745()Lnet/minecraft/class_7450;
named empty
Lnet/minecraft/network/encryption/ArgumentSignatureDataMap;empty()Lnet/minecraft/network/encryption/ArgumentSignatureDataMap;
-
get
Returns the signature data forargumentName
, ornull
if the argument name is not present in this signatures.- Returns:
- the signature data for
argumentName
, ornull
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/encryption/ArgumentSignatureDataMap;get(Ljava/lang/String;)Lnet/minecraft/network/encryption/NetworkEncryptionUtils$SignatureData;
-
write
- 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/encryption/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 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/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/encryption/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 thesalt
record component.- Returns:
- the value of the
salt
record component
-
signatures
Returns the value of thesignatures
record component.- Returns:
- the value of the
signatures
record component
-