Uses of Record Class
net.minecraft.network.MessageType
Packages that use MessageType
Package
Description
-
Uses of MessageType in net.minecraft.client.gui
Methods in net.minecraft.client.gui with parameters of type MessageTypeModifier and TypeMethodDescriptionvoidClientChatListener.onChatMessage(MessageType type, Text message, @Nullable ChatMessageSender sender) Called when a message is received.voidGameInfoChatListener.onChatMessage(MessageType type, Text message, @Nullable ChatMessageSender sender) Called when a message is received. -
Uses of MessageType in net.minecraft.client.gui.hud
Methods in net.minecraft.client.gui.hud with parameters of type MessageTypeModifier and TypeMethodDescriptionvoidChatHudListener.onChatMessage(MessageType type, Text message, @Nullable ChatMessageSender sender) Called when a message is received.voidInGameHud.onChatMessage(MessageType type, Text message, ChatMessageSender sender) Handles a chat message.voidInGameHud.onGameMessage(MessageType type, Text message) Handles a game message. -
Uses of MessageType in net.minecraft.client.util
Methods in net.minecraft.client.util with parameters of type MessageTypeModifier and TypeMethodDescriptionvoidNarratorManager.onChatMessage(MessageType type, Text message, @Nullable ChatMessageSender sender) Called when a message is received. -
Uses of MessageType in net.minecraft.network
Fields in net.minecraft.network with type parameters of type MessageTypeModifier and TypeFieldDescriptionstatic final RegistryKey<MessageType>MessageType.CHATstatic final com.mojang.serialization.Codec<MessageType>MessageType.CODECThe codec for the message type.static final RegistryKey<MessageType>MessageType.EMOTE_COMMANDstatic final RegistryKey<MessageType>MessageType.GAME_INFOstatic final RegistryKey<MessageType>MessageType.MSG_COMMANDstatic final RegistryKey<MessageType>MessageType.SAY_COMMANDstatic final RegistryKey<MessageType>MessageType.SYSTEMstatic final RegistryKey<MessageType>MessageType.TEAM_MSG_COMMANDstatic final RegistryKey<MessageType>MessageType.TELLRAW_COMMANDMethods in net.minecraft.network that return MessageTypeModifier and TypeMethodDescriptionstatic MessageTypeMessageType.registerAndGetDefault(Registry<MessageType> registry) Registers the built-in message types and returns the default "chat" type.Methods in net.minecraft.network that return types with arguments of type MessageTypeMethod parameters in net.minecraft.network with type arguments of type MessageTypeModifier and TypeMethodDescriptionstatic MessageTypeMessageType.registerAndGetDefault(Registry<MessageType> registry) Registers the built-in message types and returns the default "chat" type. -
Uses of MessageType in net.minecraft.network.packet.s2c.play
Methods in net.minecraft.network.packet.s2c.play that return MessageTypeModifier and TypeMethodDescriptionChatMessageS2CPacket.method_43884(Registry<MessageType> registry) GameMessageS2CPacket.method_43890(Registry<MessageType> registry) Method parameters in net.minecraft.network.packet.s2c.play with type arguments of type MessageTypeModifier and TypeMethodDescriptionChatMessageS2CPacket.method_43884(Registry<MessageType> registry) GameMessageS2CPacket.method_43890(Registry<MessageType> registry) -
Uses of MessageType in net.minecraft.server
Method parameters in net.minecraft.server with type arguments of type MessageTypeModifier and TypeMethodDescriptionvoidPlayerManager.broadcast(class_7471 class_7471, Function<ServerPlayerEntity, class_7471> playerMessageFactory, ChatMessageSender chatMessageSender, RegistryKey<MessageType> registryKey) Broadcasts a chat message to all players and the server console.voidPlayerManager.broadcast(Text message, Function<ServerPlayerEntity, Text> playerMessageFactory, RegistryKey<MessageType> registryKey) Broadcasts a message to all players and the server console.voidPlayerManager.broadcast(Text message, RegistryKey<MessageType> registryKey) Broadcasts a message to all players and the server console.voidPlayerManager.method_43673(class_7471 class_7471, TextStream.Message message, ServerPlayerEntity serverPlayerEntity, RegistryKey<MessageType> registryKey) voidPlayerManager.method_43674(class_7471 class_7471, ChatMessageSender chatMessageSender, RegistryKey<MessageType> registryKey) -
Uses of MessageType in net.minecraft.server.network
Method parameters in net.minecraft.server.network with type arguments of type MessageTypeModifier and TypeMethodDescriptionprivate booleanServerPlayerEntity.acceptsMessage(RegistryKey<MessageType> registryKey) private intServerPlayerEntity.method_43666(RegistryKey<MessageType> registryKey) voidServerPlayerEntity.sendChatMessage(class_7471 class_7471, ChatMessageSender chatMessageSender, RegistryKey<MessageType> registryKey) Sends a chat message to the player.voidServerPlayerEntity.sendMessage(Text message, RegistryKey<MessageType> registryKey) Sends a message to the player.private voidServerPlayerEntity.sendMessageDeliverError(Text message, RegistryKey<MessageType> registryKey) -
Uses of MessageType in net.minecraft.util.registry
Fields in net.minecraft.util.registry with type parameters of type MessageTypeModifier and TypeFieldDescriptionstatic final RegistryKey<Registry<MessageType>>Registry.CHAT_TYPEstatic final Registry<MessageType>Registry.field_39206