Package net.minecraft.network.message
Interface SentMessage
- All Known Implementing Classes:
SentMessage.Chat
,SentMessage.Entity
,SentMessage.Profileless
public interface SentMessage
A class wrapping
SignedMessage
on the server to allow custom behavior for
sending messages.- Mappings:
Namespace Name official rz
intermediary net/minecraft/class_7604
named net/minecraft/network/message/SentMessage
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
The wrapper used for normal chat messages.static class
The wrapper used for messages sent from entities via/execute
command.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.Returns the wrapped message.static SentMessage
of
(SignedMessage message, MessageSourceProfile profile) Returns the wrappedmessage
.static FilteredMessage<SentMessage>
of
(FilteredMessage<SignedMessage> message, MessageSourceProfile profile) Returns the wrappedmessage
.toPacket
(ServerPlayerEntity player, MessageType.Parameters params) Returns the chat message packet to be sent.
-
Method Details
-
getWrappedMessage
SignedMessage getWrappedMessage()Returns the wrapped message.- Returns:
- the wrapped message
- Mappings:
Namespace Name Mixin selector official a
Lrz;a()Lsa;
intermediary method_44852
Lnet/minecraft/class_7604;method_44852()Lnet/minecraft/class_7471;
named getWrappedMessage
Lnet/minecraft/network/message/SentMessage;getWrappedMessage()Lnet/minecraft/network/message/SignedMessage;
-
toPacket
Returns the chat message packet to be sent.- Returns:
- the chat message packet to be sent
- Mappings:
Namespace Name Mixin selector official a
Lrz;a(Lagd;Lrk$a;)Lvb;
intermediary method_44853
Lnet/minecraft/class_7604;method_44853(Lnet/minecraft/class_3222;Lnet/minecraft/class_2556$class_7602;)Lnet/minecraft/class_7438;
named toPacket
Lnet/minecraft/network/message/SentMessage;toPacket(Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/network/message/MessageType$Parameters;)Lnet/minecraft/network/packet/s2c/play/ChatMessageS2CPacket;
-
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
Lrz;a(Laiv;)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
.- Parameters:
profile
- the original source of the message- Returns:
- the wrapped
message
- Mappings:
Namespace Name Mixin selector official a
Lrz;a(Lsa;Lrj;)Lrz;
intermediary method_44857
Lnet/minecraft/class_7604;method_44857(Lnet/minecraft/class_7471;Lnet/minecraft/class_7436;)Lnet/minecraft/class_7604;
named of
Lnet/minecraft/network/message/SentMessage;of(Lnet/minecraft/network/message/SignedMessage;Lnet/minecraft/network/message/MessageSourceProfile;)Lnet/minecraft/network/message/SentMessage;
-
of
static FilteredMessage<SentMessage> of(FilteredMessage<SignedMessage> message, MessageSourceProfile profile) Returns the wrappedmessage
.- Returns:
- the wrapped
message
- Mappings:
Namespace Name Mixin selector official a
Lrz;a(Lagr;Lrj;)Lagr;
intermediary method_44854
Lnet/minecraft/class_7604;method_44854(Lnet/minecraft/class_5837;Lnet/minecraft/class_7436;)Lnet/minecraft/class_5837;
named of
Lnet/minecraft/network/message/SentMessage;of(Lnet/minecraft/server/filter/FilteredMessage;Lnet/minecraft/network/message/MessageSourceProfile;)Lnet/minecraft/server/filter/FilteredMessage;
-