Uses of Record Class
net.minecraft.network.MessageSender
Package
Description
-
Uses of MessageSender in net.minecraft.client.gui
Modifier and TypeMethodDescriptionvoid
ClientChatListener.onChatMessage
(MessageType type, Text message, @Nullable MessageSender sender) Called when a message is received.void
GameInfoChatListener.onChatMessage
(MessageType type, Text message, @Nullable MessageSender sender) Called when a message is received. -
Uses of MessageSender in net.minecraft.client.gui.hud
Modifier and TypeMethodDescriptionvoid
ChatHudListener.onChatMessage
(MessageType type, Text message, @Nullable MessageSender sender) Called when a message is received.void
InGameHud.onChatMessage
(MessageType type, Text message, MessageSender sender) Handles a chat message. -
Uses of MessageSender in net.minecraft.client.network
Modifier and TypeMethodDescriptionprivate void
ClientPlayNetworkHandler.handleMessage
(MessageType type, SignedChatMessage signedChatMessage, MessageSender messageSender) Handles an incoming chat message. -
Uses of MessageSender in net.minecraft.client.util
Modifier and TypeMethodDescriptionvoid
NarratorManager.onChatMessage
(MessageType type, Text message, @Nullable MessageSender sender) Called when a message is received. -
Uses of MessageSender in net.minecraft.entity
-
Uses of MessageSender in net.minecraft.network
Modifier and TypeMethodDescriptionMessageType.DisplayRule.apply
(Text message, @Nullable MessageSender sender) Returns the message with the decoration applied, ormessage
if there is no decoration.MessageType.NarrationRule.apply
(Text message, @Nullable MessageSender sender) Returns the message with the decoration applied, ormessage
if there is no decoration. -
Uses of MessageSender in net.minecraft.network.packet.s2c.play
Modifier and TypeFieldDescriptionprivate final MessageSender
ChatMessageS2CPacket.sender
The field for thesender
record component.Modifier and TypeMethodDescriptionChatMessageS2CPacket.sender()
Returns the value of thesender
record component.ModifierConstructorDescriptionChatMessageS2CPacket
(Text text, Optional<Text> optional, int int2, MessageSender messageSender, Instant instant, NetworkEncryptionUtils.SignatureData signatureData) -
Uses of MessageSender in net.minecraft.server
Modifier and TypeMethodDescriptionvoid
PlayerManager.broadcast
(SignedChatMessage message, Function<ServerPlayerEntity, SignedChatMessage> playerMessageFactory, MessageSender sender, RegistryKey<MessageType> typeKey) Broadcasts a chat message to all players and the server console.void
PlayerManager.broadcast
(SignedChatMessage message, MessageSender sender, RegistryKey<MessageType> typeKey) Broadcasts a chat message to all players and the server console.void
MinecraftServer.logChatMessage
(MessageSender sender, Text message) -
Uses of MessageSender in net.minecraft.server.command
-
Uses of MessageSender in net.minecraft.server.network
Modifier and TypeMethodDescriptionvoid
ServerPlayerEntity.sendChatMessage
(SignedChatMessage message, MessageSender sender, RegistryKey<MessageType> typeKey) Sends a chat message to the player. -
Uses of MessageSender in net.minecraft.text
Modifier and TypeMethodDescriptionDecoration.apply
(Text content, @Nullable MessageSender sender) Returns the text obtained by applying the passed values to the decoration.Decoration.Parameter.apply
(Text content, @Nullable MessageSender sender) Returns the text obtained by applying the passed values to the parameter.private Text[]
Decoration.collectArguments
(Text content, @Nullable MessageSender sender) Returns the arguments passed toText.translatable(String, Object[])
.Decoration.Parameter.Selector.select
(Text content, @Nullable MessageSender sender)