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 official sc
intermediary net/minecraft/class_7604
named net/minecraft/network/message/SentMessage
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
The wrapper used for normal chat messages.static class
The wrapper used for messages without associated source profile. -
Method Summary
Modifier and TypeMethodDescriptionvoid
afterPacketsSent
(PlayerManager playerManager) Called after sending the message to applicable clients.static SentMessage
of
(SignedMessage message) Returns the wrappedmessage
.void
send
(ServerPlayerEntity sender, boolean filterMaskEnabled, MessageType.Parameters params)
-
Method Details
-
getContent
Text getContent()- Mappings:
Namespace Name Mixin selector official a
Lsc;a()Lrq;
intermediary method_45039
Lnet/minecraft/class_7604;method_45039()Lnet/minecraft/class_2561;
named getContent
Lnet/minecraft/network/message/SentMessage;getContent()Lnet/minecraft/text/Text;
-
send
- Mappings:
Namespace Name Mixin selector official a
Lsc;a(Lagh;ZLrm$a;)V
intermediary method_45095
Lnet/minecraft/class_7604;method_45095(Lnet/minecraft/class_3222;ZLnet/minecraft/class_2556$class_7602;)V
named send
Lnet/minecraft/network/message/SentMessage;send(Lnet/minecraft/server/network/ServerPlayerEntity;ZLnet/minecraft/network/message/MessageType$Parameters;)V
-
afterPacketsSent
Called after sending the message to applicable clients.- See Also:
- API Note:
- This is used to send the message header to clients that didn't receive the message due to text filtering.
- Mappings:
Namespace Name Mixin selector official a
Lsc;a(Laiz;)V
intermediary method_44856
Lnet/minecraft/class_7604;method_44856(Lnet/minecraft/class_3324;)V
named afterPacketsSent
Lnet/minecraft/network/message/SentMessage;afterPacketsSent(Lnet/minecraft/server/PlayerManager;)V
-
of
Returns the wrappedmessage
.- Returns:
- the wrapped
message
- Mappings:
Namespace Name Mixin selector official a
Lsc;a(Lsd;)Lsc;
intermediary method_44857
Lnet/minecraft/class_7604;method_44857(Lnet/minecraft/class_7471;)Lnet/minecraft/class_7604;
named of
Lnet/minecraft/network/message/SentMessage;of(Lnet/minecraft/network/message/SignedMessage;)Lnet/minecraft/network/message/SentMessage;
-