Package net.minecraft.command.argument
Record Class MessageArgumentType.SignedMessage
java.lang.Object
java.lang.Record
net.minecraft.command.argument.MessageArgumentType.SignedMessage
- Record Components:
plain
-formatted
-signature
-signedPreview
-
- Enclosing class:
MessageArgumentType
public static record MessageArgumentType.SignedMessage(String plain, Text formatted, ChatMessageSignature signature, boolean signedPreview)
extends Record
- Mappings:
Namespace Name official ef$a
intermediary net/minecraft/class_2196$class_7515
named net/minecraft/command/argument/MessageArgumentType$SignedMessage
official a
intermediary comp_855
named plain
official b
intermediary comp_861
named formatted
official c
intermediary comp_856
named signature
official d
intermediary comp_857
named signedPreview
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Text
The field for theformatted
record component.private final String
The field for theplain
record component.private final ChatMessageSignature
The field for thesignature
record component.private final boolean
The field for thesignedPreview
record component. -
Constructor Summary
ConstructorDescriptionSignedMessage
(String string, Text text, ChatMessageSignature chatMessageSignature, boolean bool) -
Method Summary
Modifier and TypeMethodDescriptiondecorate
(ServerCommandSource source) final boolean
Indicates whether some other object is "equal to" this one.private CompletableFuture<FilteredMessage<Text>>
filter
(ServerCommandSource source, Text message) Returns the value of theformatted
record component.final int
hashCode()
Returns a hash code value for this object.private void
logInvalidSignatureWarning
(ServerCommandSource source, SignedChatMessage signedChatMessage) private @Nullable SignedChatMessage
method_44334
(FilteredMessage<SignedChatMessage> filteredMessage) plain()
Returns the value of theplain
record component.Returns the value of thesignature
record component.boolean
Returns the value of thesignedPreview
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
plain
The field for theplain
record component. -
formatted
The field for theformatted
record component. -
signature
The field for thesignature
record component. -
signedPreview
private final boolean signedPreviewThe field for thesignedPreview
record component.
-
-
Constructor Details
-
SignedMessage
public SignedMessage(String string, Text text, ChatMessageSignature chatMessageSignature, boolean bool)
-
-
Method Details
-
decorate
- Mappings:
Namespace Name Mixin selector official a
Lef$a;a(Ldr;)Ljava/util/concurrent/CompletableFuture;
intermediary method_44262
Lnet/minecraft/class_2196$class_7515;method_44262(Lnet/minecraft/class_2168;)Ljava/util/concurrent/CompletableFuture;
named decorate
Lnet/minecraft/command/argument/MessageArgumentType$SignedMessage;decorate(Lnet/minecraft/server/command/ServerCommandSource;)Ljava/util/concurrent/CompletableFuture;
-
method_44334
@Nullable private @Nullable SignedChatMessage method_44334(FilteredMessage<SignedChatMessage> filteredMessage) - Mappings:
Namespace Name Mixin selector official a
Lef$a;a(Lagd;)Lru;
intermediary method_44334
Lnet/minecraft/class_2196$class_7515;method_44334(Lnet/minecraft/class_5837;)Lnet/minecraft/class_7471;
named method_44334
Lnet/minecraft/command/argument/MessageArgumentType$SignedMessage;method_44334(Lnet/minecraft/server/filter/FilteredMessage;)Lnet/minecraft/network/encryption/SignedChatMessage;
-
logInvalidSignatureWarning
private void logInvalidSignatureWarning(ServerCommandSource source, SignedChatMessage signedChatMessage) - Mappings:
Namespace Name Mixin selector official a
Lef$a;a(Ldr;Lru;)V
intermediary method_44263
Lnet/minecraft/class_2196$class_7515;method_44263(Lnet/minecraft/class_2168;Lnet/minecraft/class_7471;)V
named logInvalidSignatureWarning
Lnet/minecraft/command/argument/MessageArgumentType$SignedMessage;logInvalidSignatureWarning(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/network/encryption/SignedChatMessage;)V
-
filter
- Mappings:
Namespace Name Mixin selector official a
Lef$a;a(Ldr;Lrm;)Ljava/util/concurrent/CompletableFuture;
intermediary method_44264
Lnet/minecraft/class_2196$class_7515;method_44264(Lnet/minecraft/class_2168;Lnet/minecraft/class_2561;)Ljava/util/concurrent/CompletableFuture;
named filter
Lnet/minecraft/command/argument/MessageArgumentType$SignedMessage;filter(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/text/Text;)Ljava/util/concurrent/CompletableFuture;
-
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 '=='. -
plain
Returns the value of theplain
record component.- Returns:
- the value of the
plain
record component
-
formatted
Returns the value of theformatted
record component.- Returns:
- the value of the
formatted
record component
-
signature
Returns the value of thesignature
record component.- Returns:
- the value of the
signature
record component
-
signedPreview
public boolean signedPreview()Returns the value of thesignedPreview
record component.- Returns:
- the value of the
signedPreview
record component
-