Package net.minecraft.command.argument
Record Class MessageArgumentType.SignedMessage
java.lang.Object
java.lang.Record
net.minecraft.command.argument.MessageArgumentType.SignedMessage
- Record Components:
signedArgument-
- Enclosing class:
MessageArgumentType
- Mappings:
Namespace Name official ef$aintermediary net/minecraft/class_2196$class_7515named net/minecraft/command/argument/MessageArgumentType$SignedMessageofficial aintermediary comp_954named signedArgument
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SignedMessageThe field for thesignedArgumentrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddecorate(ServerCommandSource source, Consumer<SignedMessage> callback) final booleanIndicates whether some other object is "equal to" this one.private CompletableFuture<FilteredMessage>filterText(ServerCommandSource source, String text) final inthashCode()Returns a hash code value for this object.voidsendHeader(ServerCommandSource source) Sends the message's header to all players.Returns the value of thesignedArgumentrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
signedArgument
The field for thesignedArgumentrecord component.
-
-
Constructor Details
-
SignedMessage
-
-
Method Details
-
decorate
- Mappings:
Namespace Name Mixin selector official aLef$a;a(Ldr;Ljava/util/function/Consumer;)Vintermediary method_44262Lnet/minecraft/class_2196$class_7515;method_44262(Lnet/minecraft/class_2168;Ljava/util/function/Consumer;)Vnamed decorateLnet/minecraft/command/argument/MessageArgumentType$SignedMessage;decorate(Lnet/minecraft/server/command/ServerCommandSource;Ljava/util/function/Consumer;)V
-
filterText
- Mappings:
Namespace Name Mixin selector official aLef$a;a(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 filterTextLnet/minecraft/command/argument/MessageArgumentType$SignedMessage;filterText(Lnet/minecraft/server/command/ServerCommandSource;Ljava/lang/String;)Ljava/util/concurrent/CompletableFuture;
-
sendHeader
Sends the message's header to all players.This should be called if the message could not be sent due to an exception. See
MessageCommandfor an example.- Mappings:
Namespace Name Mixin selector official aLef$a;a(Ldr;)Vintermediary method_44806Lnet/minecraft/class_2196$class_7515;method_44806(Lnet/minecraft/class_2168;)Vnamed sendHeaderLnet/minecraft/command/argument/MessageArgumentType$SignedMessage;sendHeader(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. All components in this record class are compared withObjects::equals(Object,Object). -
signedArgument
Returns the value of thesignedArgumentrecord component.- Returns:
- the value of the
signedArgumentrecord component
-