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, MessageSignature signature, boolean signedPreview)
extends Record
- Mappings:
Namespace Name official ef$aintermediary net/minecraft/class_2196$class_7515named net/minecraft/command/argument/MessageArgumentType$SignedMessageofficial aintermediary comp_855named plainofficial bintermediary comp_861named formattedofficial cintermediary comp_856named signatureofficial dintermediary comp_857named signedPreview
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final TextThe field for theformattedrecord component.private final StringThe field for theplainrecord component.private final MessageSignatureThe field for thesignaturerecord component.private final booleanThe field for thesignedPreviewrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionSignedMessage(String string, Text text, MessageSignature messageSignature, boolean bool) -
Method Summary
Modifier and TypeMethodDescriptiondecorate(ServerCommandSource source) final booleanIndicates whether some other object is "equal to" this one.Returns the value of theformattedrecord component.final inthashCode()Returns a hash code value for this object.private FilteredMessage<Text>method_44802(ServerCommandSource serverCommandSource, FilteredMessage<String> filteredMessage) private CompletableFuture<FilteredMessage<SignedMessage>>method_44803(ServerCommandSource serverCommandSource, FilteredMessage<String> filteredMessage, FilteredMessage<Text> filteredMessage2) method_44804(ServerCommandSource serverCommandSource, String string) voidmethod_44806(ServerCommandSource serverCommandSource) private CompletableFuture<FilteredMessage<String>>method_44808(ServerCommandSource serverCommandSource, String string) plain()Returns the value of theplainrecord component.Returns the value of thesignaturerecord component.booleanReturns the value of thesignedPreviewrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
plain
The field for theplainrecord component. -
formatted
The field for theformattedrecord component. -
signature
The field for thesignaturerecord component. -
signedPreview
private final boolean signedPreviewThe field for thesignedPreviewrecord component.
-
-
Constructor Details
-
SignedMessage
-
-
Method Details
-
decorate
- Mappings:
Namespace Name Mixin selector official aLef$a;a(Ldr;)Ljava/util/concurrent/CompletableFuture;intermediary method_44262Lnet/minecraft/class_2196$class_7515;method_44262(Lnet/minecraft/class_2168;)Ljava/util/concurrent/CompletableFuture;named decorateLnet/minecraft/command/argument/MessageArgumentType$SignedMessage;decorate(Lnet/minecraft/server/command/ServerCommandSource;)Ljava/util/concurrent/CompletableFuture;
-
method_44802
private FilteredMessage<Text> method_44802(ServerCommandSource serverCommandSource, FilteredMessage<String> filteredMessage) - Mappings:
Namespace Name Mixin selector official aLef$a;a(Ldr;Lagl;)Lagl;intermediary method_44802Lnet/minecraft/class_2196$class_7515;method_44802(Lnet/minecraft/class_2168;Lnet/minecraft/class_5837;)Lnet/minecraft/class_5837;named method_44802Lnet/minecraft/command/argument/MessageArgumentType$SignedMessage;method_44802(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/server/filter/FilteredMessage;)Lnet/minecraft/server/filter/FilteredMessage;
-
method_44804
@Nullable private @Nullable Text method_44804(ServerCommandSource serverCommandSource, String string) - Mappings:
Namespace Name Mixin selector official aLef$a;a(Ldr;Ljava/lang/String;)Lrm;intermediary method_44804Lnet/minecraft/class_2196$class_7515;method_44804(Lnet/minecraft/class_2168;Ljava/lang/String;)Lnet/minecraft/class_2561;named method_44804Lnet/minecraft/command/argument/MessageArgumentType$SignedMessage;method_44804(Lnet/minecraft/server/command/ServerCommandSource;Ljava/lang/String;)Lnet/minecraft/text/Text;
-
method_44803
private CompletableFuture<FilteredMessage<SignedMessage>> method_44803(ServerCommandSource serverCommandSource, FilteredMessage<String> filteredMessage, FilteredMessage<Text> filteredMessage2) - Mappings:
Namespace Name Mixin selector official aLef$a;a(Ldr;Lagl;Lagl;)Ljava/util/concurrent/CompletableFuture;intermediary method_44803Lnet/minecraft/class_2196$class_7515;method_44803(Lnet/minecraft/class_2168;Lnet/minecraft/class_5837;Lnet/minecraft/class_5837;)Ljava/util/concurrent/CompletableFuture;named method_44803Lnet/minecraft/command/argument/MessageArgumentType$SignedMessage;method_44803(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/server/filter/FilteredMessage;Lnet/minecraft/server/filter/FilteredMessage;)Ljava/util/concurrent/CompletableFuture;
-
method_44808
private CompletableFuture<FilteredMessage<String>> method_44808(ServerCommandSource serverCommandSource, String string) - Mappings:
Namespace Name Mixin selector official bLef$a;b(Ldr;Ljava/lang/String;)Ljava/util/concurrent/CompletableFuture;intermediary method_44808Lnet/minecraft/class_2196$class_7515;method_44808(Lnet/minecraft/class_2168;Ljava/lang/String;)Ljava/util/concurrent/CompletableFuture;named method_44808Lnet/minecraft/command/argument/MessageArgumentType$SignedMessage;method_44808(Lnet/minecraft/server/command/ServerCommandSource;Ljava/lang/String;)Ljava/util/concurrent/CompletableFuture;
-
method_44806
- Mappings:
Namespace Name Mixin selector official bLef$a;b(Ldr;)Vintermediary method_44806Lnet/minecraft/class_2196$class_7515;method_44806(Lnet/minecraft/class_2168;)Vnamed method_44806Lnet/minecraft/command/argument/MessageArgumentType$SignedMessage;method_44806(Lnet/minecraft/server/command/ServerCommandSource;)V
-
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 theplainrecord component.- Returns:
- the value of the
plainrecord component
-
formatted
Returns the value of theformattedrecord component.- Returns:
- the value of the
formattedrecord component
-
signature
Returns the value of thesignaturerecord component.- Returns:
- the value of the
signaturerecord component
-
signedPreview
public boolean signedPreview()Returns the value of thesignedPreviewrecord component.- Returns:
- the value of the
signedPreviewrecord component
-