Package net.minecraft.network.message
Record Class CommandArgumentSigner.Signatures
java.lang.Object
java.lang.Record
net.minecraft.network.message.CommandArgumentSigner.Signatures
- Record Components:
sender
-timestamp
-argumentSignatures
-signedPreview
-
- All Implemented Interfaces:
CommandArgumentSigner
- Enclosing interface:
CommandArgumentSigner
public static record CommandArgumentSigner.Signatures(UUID sender, Instant timestamp, ArgumentSignatureDataMap argumentSignatures, boolean signedPreview)
extends Record
implements CommandArgumentSigner
A signature for command arguments, consisting of the sender, the timestamp,
and the signature datas for the arguments.
- Mappings:
Namespace Name official dp$a
intermediary net/minecraft/class_7448$class_7449
named net/minecraft/network/message/CommandArgumentSigner$Signatures
official b
intermediary comp_775
named sender
official c
intermediary comp_776
named timestamp
official d
intermediary comp_777
named argumentSignatures
official e
intermediary comp_854
named signedPreview
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.network.message.CommandArgumentSigner
CommandArgumentSigner.Signatures
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ArgumentSignatureDataMap
The field for theargumentSignatures
record component.private final UUID
The field for thesender
record component.private final boolean
The field for thesignedPreview
record component.private final Instant
The field for thetimestamp
record component.Fields inherited from interface net.minecraft.network.message.CommandArgumentSigner
NONE
-
Constructor Summary
ConstructorDescriptionSignatures
(UUID uUID, Instant instant, ArgumentSignatureDataMap argumentSignatureDataMap, boolean bool) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theargumentSignatures
record component.final boolean
Indicates whether some other object is "equal to" this one.getArgumentSignature
(String argumentName) final int
hashCode()
Returns a hash code value for this object.boolean
isPreviewSigned
(String argumentName) sender()
Returns the value of thesender
record component.boolean
Returns the value of thesignedPreview
record component.Returns the value of thetimestamp
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
sender
The field for thesender
record component. -
timestamp
The field for thetimestamp
record component. -
argumentSignatures
The field for theargumentSignatures
record component. -
signedPreview
private final boolean signedPreviewThe field for thesignedPreview
record component.
-
-
Constructor Details
-
Signatures
public Signatures(UUID uUID, Instant instant, ArgumentSignatureDataMap argumentSignatureDataMap, boolean bool)
-
-
Method Details
-
getArgumentSignature
- Specified by:
getArgumentSignature
in interfaceCommandArgumentSigner
- Mappings:
Namespace Name Mixin selector official getArgumentSignature
Ldp;getArgumentSignature(Ljava/lang/String;)Lrr;
intermediary getArgumentSignature
Lnet/minecraft/class_7448;getArgumentSignature(Ljava/lang/String;)Lnet/minecraft/class_7469;
named getArgumentSignature
Lnet/minecraft/network/message/CommandArgumentSigner;getArgumentSignature(Ljava/lang/String;)Lnet/minecraft/network/message/MessageSignature;
-
isPreviewSigned
- Specified by:
isPreviewSigned
in interfaceCommandArgumentSigner
- Mappings:
Namespace Name Mixin selector official a
Ldp;a(Ljava/lang/String;)Z
intermediary method_44250
Lnet/minecraft/class_7448;method_44250(Ljava/lang/String;)Z
named isPreviewSigned
Lnet/minecraft/network/message/CommandArgumentSigner;isPreviewSigned(Ljava/lang/String;)Z
-
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 '=='. -
sender
Returns the value of thesender
record component.- Returns:
- the value of the
sender
record component
-
timestamp
Returns the value of thetimestamp
record component.- Returns:
- the value of the
timestamp
record component
-
argumentSignatures
Returns the value of theargumentSignatures
record component.- Returns:
- the value of the
argumentSignatures
record component
-
signedPreview
public boolean signedPreview()Returns the value of thesignedPreview
record component.- Returns:
- the value of the
signedPreview
record component
-