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 dw
intermediary net/minecraft/class_7450
named net/minecraft/network/message/ArgumentSignatureDataMap
official b
intermediary comp_912
named entries
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
A functional interface that signs an argument of a command.static final record
An entry of the signatures map, consisting of the argument's name and signature data. -
Field Summary
Modifier and TypeFieldDescriptionstatic final ArgumentSignatureDataMap
private final List<ArgumentSignatureDataMap.Entry>
The field for theentries
record component.private static final int
private static final int
-
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionentries()
Returns the value of theentries
record component.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.static ArgumentSignatureDataMap
sign
(SignedArgumentList<?> arguments, ArgumentSignatureDataMap.ArgumentSigner signer) Returns the signature map witharguments
signed withsigner
.final String
toString()
Returns a string representation of this record class.void
write
(PacketByteBuf buf)
-
Field Details
-
entries
The field for theentries
record component. -
EMPTY
- Mappings:
Namespace Name Mixin selector official a
Ldw;a:Ldw;
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
Ldw;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
Ldw;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
- Mappings:
Namespace Name Mixin selector official <init>
Ldw;<init>(Lsf;)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
-
-
Method Details
-
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
Ldw;a(Ljava/lang/String;)Lth;
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
- Mappings:
Namespace Name Mixin selector official a
Ldw;a(Lsf;)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
-
sign
public static ArgumentSignatureDataMap sign(SignedArgumentList<?> arguments, ArgumentSignatureDataMap.ArgumentSigner signer) Returns the signature map witharguments
signed withsigner
.- Returns:
- the signature map with
arguments
signed withsigner
- Mappings:
Namespace Name Mixin selector official a
Ldw;a(Ltn;Ldw$b;)Ldw;
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/SignedArgumentList;Lnet/minecraft/network/message/ArgumentSignatureDataMap$ArgumentSigner;)Lnet/minecraft/network/message/ArgumentSignatureDataMap;
-
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 theentries
record component.- Returns:
- the value of the
entries
record component
-