Package net.minecraft.network.encryption
Record Class CommandArgumentSigner.Signatures
java.lang.Object
java.lang.Record
net.minecraft.network.encryption.CommandArgumentSigner.Signatures
- Record Components:
sender-time-argumentSignatures-
- All Implemented Interfaces:
CommandArgumentSigner
- Enclosing interface:
CommandArgumentSigner
public static record CommandArgumentSigner.Signatures(UUID sender, Instant time, ArgumentSignatures argumentSignatures)
extends Record
implements CommandArgumentSigner
- Mappings:
Namespace Name official dp$aintermediary net/minecraft/class_7448$class_7449named net/minecraft/network/encryption/CommandArgumentSigner$Signaturesofficial bintermediary comp_775named senderofficial cintermediary comp_776named timeofficial dintermediary comp_777named argumentSignatures
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.network.encryption.CommandArgumentSigner
CommandArgumentSigner.Signatures -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ArgumentSignaturesThe field for theargumentSignaturesrecord component.private final UUIDThe field for thesenderrecord component.private final InstantThe field for thetimerecord component.Fields inherited from interface net.minecraft.network.encryption.CommandArgumentSigner
NONE -
Constructor Summary
ConstructorsConstructorDescriptionSignatures(UUID uUID, Instant instant, ArgumentSignatures argumentSignatures) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theargumentSignaturesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.sender()Returns the value of thesenderrecord component.signArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argumentName, Text value) time()Returns the value of thetimerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
sender
The field for thesenderrecord component. -
time
The field for thetimerecord component. -
argumentSignatures
The field for theargumentSignaturesrecord component.
-
-
Constructor Details
-
Signatures
-
-
Method Details
-
signArgument
public SignedChatMessage signArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argumentName, Text value) - Specified by:
signArgumentin interfaceCommandArgumentSigner- Mappings:
Namespace Name Mixin selector official signArgumentLdp;signArgument(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Lrl;)Lrt;intermediary signArgumentLnet/minecraft/class_7448;signArgument(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Lnet/minecraft/class_2561;)Lnet/minecraft/class_7471;named signArgumentLnet/minecraft/network/encryption/CommandArgumentSigner;signArgument(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;Lnet/minecraft/text/Text;)Lnet/minecraft/network/encryption/SignedChatMessage;
-
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). -
sender
Returns the value of thesenderrecord component.- Returns:
- the value of the
senderrecord component
-
time
Returns the value of thetimerecord component.- Returns:
- the value of the
timerecord component
-
argumentSignatures
Returns the value of theargumentSignaturesrecord component.- Returns:
- the value of the
argumentSignaturesrecord component
-