Package net.minecraft.network.message
Interface SentMessage
- All Known Implementing Classes:
SentMessage.Chat
,SentMessage.Profileless
public interface SentMessage
A class wrapping
SignedMessage
on the server to allow custom behavior for
sending messages.- Mappings:
Namespace Name named net/minecraft/network/message/SentMessage
intermediary net/minecraft/class_7604
official ye
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final record
The wrapper used for normal chat messages.static final record
The wrapper used for messages without associated source profile. -
Method Summary
Modifier and TypeMethodDescriptioncontent()
static SentMessage
of
(SignedMessage message) Returns the wrappedmessage
.void
send
(ServerPlayerEntity sender, boolean filterMaskEnabled, MessageType.Parameters params)
-
Method Details
-
content
Text content()- Mappings:
Namespace Name Mixin selector named content
Lnet/minecraft/network/message/SentMessage;content()Lnet/minecraft/text/Text;
intermediary comp_1081
Lnet/minecraft/class_7604;comp_1081()Lnet/minecraft/class_2561;
official a
Lye;a()Lxp;
-
send
- Mappings:
Namespace Name Mixin selector named send
Lnet/minecraft/network/message/SentMessage;send(Lnet/minecraft/server/network/ServerPlayerEntity;ZLnet/minecraft/network/message/MessageType$Parameters;)V
intermediary method_45095
Lnet/minecraft/class_7604;method_45095(Lnet/minecraft/class_3222;ZLnet/minecraft/class_2556$class_7602;)V
official a
Lye;a(Larg;ZLxl$a;)V
-
of
Returns the wrappedmessage
.- Returns:
- the wrapped
message
- Mappings:
Namespace Name Mixin selector named of
Lnet/minecraft/network/message/SentMessage;of(Lnet/minecraft/network/message/SignedMessage;)Lnet/minecraft/network/message/SentMessage;
intermediary method_44857
Lnet/minecraft/class_7604;method_44857(Lnet/minecraft/class_7471;)Lnet/minecraft/class_7604;
official a
Lye;a(Lyf;)Lye;
-