Uses of Record Class
net.minecraft.network.message.MessageType.Parameters
Package
Description
-
Uses of MessageType.Parameters in net.minecraft.client.network.message
Modifier and TypeMethodDescriptionprivate void
MessageHandler.addToChatLog
(SignedMessage message, MessageType.Parameters params, com.mojang.authlib.GameProfile sender, MessageTrustStatus trustStatus) private void
MessageHandler.narrate
(MessageType.Parameters params, Text message) Narratesmessage
.void
MessageHandler.onChatMessage
(SignedMessage message, com.mojang.authlib.GameProfile sender, MessageType.Parameters params) void
MessageHandler.onProfilelessMessage
(Text content, MessageType.Parameters params) private boolean
MessageHandler.processChatMessageInternal
(MessageType.Parameters params, SignedMessage message, Text decorated, com.mojang.authlib.GameProfile sender, boolean onlyShowSecureChat, Instant receptionTimestamp) Processes a chat message. -
Uses of MessageType.Parameters in net.minecraft.network.message
Modifier and TypeMethodDescriptionstatic MessageType.Parameters
MessageType.params
(RegistryKey<MessageType> typeKey, Entity entity) static MessageType.Parameters
MessageType.params
(RegistryKey<MessageType> typeKey, DynamicRegistryManager registryManager, Text name) static MessageType.Parameters
MessageType.params
(RegistryKey<MessageType> typeKey, ServerCommandSource source) MessageType.Parameters.withTargetName
(Text targetName) Returns a new instance with the given target name.Modifier and TypeMethodDescriptionMessageType.Serialized.toParameters
(DynamicRegistryManager registryManager) Returns a deserialized version of this instance, orOptional.empty()
ifMessageType.Serialized.typeId
is unknown to the client.Modifier and TypeMethodDescriptionvoid
SentMessage.Chat.send
(ServerPlayerEntity sender, boolean filterMaskEnabled, MessageType.Parameters params) void
SentMessage.Profileless.send
(ServerPlayerEntity sender, boolean filterMaskEnabled, MessageType.Parameters params) void
SentMessage.send
(ServerPlayerEntity sender, boolean filterMaskEnabled, MessageType.Parameters params) -
Uses of MessageType.Parameters in net.minecraft.server
Modifier and TypeMethodDescriptionprivate void
PlayerManager.broadcast
(SignedMessage message, Predicate<ServerPlayerEntity> shouldSendFiltered, @Nullable ServerPlayerEntity sender, MessageType.Parameters params) Broadcasts a chat message to all players and the server console.void
PlayerManager.broadcast
(SignedMessage message, ServerCommandSource source, MessageType.Parameters params) Broadcasts a chat message to all players and the server console.void
PlayerManager.broadcast
(SignedMessage message, ServerPlayerEntity sender, MessageType.Parameters params) Broadcasts a chat message to all players and the server console.void
MinecraftServer.logChatMessage
(Text message, MessageType.Parameters params, @Nullable String prefix) -
Uses of MessageType.Parameters in net.minecraft.server.command
Modifier and TypeMethodDescriptionvoid
ServerCommandSource.sendChatMessage
(SentMessage message, boolean filterMaskEnabled, MessageType.Parameters params) Sendsmessage
as a chat message to the command's executor, or to the server's log if the command is not executed by a player. -
Uses of MessageType.Parameters in net.minecraft.server.network
Modifier and TypeMethodDescriptionvoid
ServerPlayerEntity.sendChatMessage
(SentMessage message, boolean filterMaskEnabled, MessageType.Parameters params) Sends a chat message to the player.void
ServerPlayNetworkHandler.sendChatMessage
(SignedMessage message, MessageType.Parameters params) void
ServerPlayNetworkHandler.sendProfilelessChatMessage
(Text message, MessageType.Parameters params) -
Uses of MessageType.Parameters in net.minecraft.text
Modifier and TypeMethodDescriptionDecoration.apply
(Text content, MessageType.Parameters params) Returns the text obtained by applying the passed values to the decoration.Decoration.Parameter.apply
(Text content, MessageType.Parameters params) Returns the text obtained by applying the passed values to the parameter.private Text[]
Decoration.collectArguments
(Text content, MessageType.Parameters params) Returns the arguments passed toText.translatable(String, Object[])
.Decoration.Parameter.Selector.select
(Text content, MessageType.Parameters params)