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 MessageSender sender) Called when a message is received.voidGameInfoChatListener.onChatMessage(MessageType type, Text message, @Nullable MessageSender 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 MessageSender sender) Called when a message is received.voidInGameHud.onChatMessage(MessageType type, Text message, MessageSender sender) Handles a chat message.voidInGameHud.onGameMessage(MessageType type, Text message) Handles a game message. -
Uses of MessageType in net.minecraft.client.network
Methods in net.minecraft.client.network with parameters of type MessageTypeModifier and TypeMethodDescriptionprivate voidClientPlayNetworkHandler.handleMessage(MessageType type, SignedChatMessage message, MessageSender sender) Handles an incoming chat 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 MessageSender 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.CHATThe registry key for the message type used bychat messages.static final com.mojang.serialization.Codec<MessageType>MessageType.CODECstatic final RegistryKey<MessageType>MessageType.EMOTE_COMMANDThe registry key for the emote command message type, used by /me.static final RegistryKey<MessageType>MessageType.GAME_INFOThe registry key for the game info message type.static final RegistryKey<MessageType>MessageType.MSG_COMMANDThe registry key for the message command message type, used by /msg.static final RegistryKey<MessageType>MessageType.SAY_COMMANDThe registry key for the say command message type, used by /say.static final RegistryKey<MessageType>MessageType.SYSTEMThe registry key for the system message message type.static final RegistryKey<MessageType>MessageType.TEAM_MSG_COMMANDThe registry key for the team message command message type, used by /teammsg.static final RegistryKey<MessageType>MessageType.TELLRAW_COMMANDThe registry key for the tellraw command message type, used by /tellraw.Methods in net.minecraft.network that return types with arguments of type MessageTypeModifier and TypeMethodDescriptionstatic RegistryEntry<MessageType>MessageType.initialize(Registry<MessageType> registry) private static RegistryKey<MessageType>Method parameters in net.minecraft.network with type arguments of type MessageTypeModifier and TypeMethodDescriptionstatic RegistryEntry<MessageType>MessageType.initialize(Registry<MessageType> registry) -
Uses of MessageType in net.minecraft.network.packet.s2c.play
Methods in net.minecraft.network.packet.s2c.play that return MessageTypeModifier and TypeMethodDescriptionChatMessageS2CPacket.getMessageType(Registry<MessageType> registry) Returns the message type of the chat message.GameMessageS2CPacket.getMessageType(Registry<MessageType> registry) Returns the message type of the chat message.Method parameters in net.minecraft.network.packet.s2c.play with type arguments of type MessageTypeModifier and TypeMethodDescriptionChatMessageS2CPacket.getMessageType(Registry<MessageType> registry) Returns the message type of the chat message.GameMessageS2CPacket.getMessageType(Registry<MessageType> registry) Returns the message type of the chat message. -
Uses of MessageType in net.minecraft.server
Method parameters in net.minecraft.server with type arguments of type MessageTypeModifier and TypeMethodDescriptionvoidPlayerManager.broadcast(SignedChatMessage message, Function<ServerPlayerEntity, SignedChatMessage> playerMessageFactory, MessageSender sender, RegistryKey<MessageType> typeKey) Broadcasts a chat message to all players and the server console.voidPlayerManager.broadcast(SignedChatMessage message, MessageSender sender, RegistryKey<MessageType> typeKey) Broadcasts a chat message to all players and the server console.voidPlayerManager.broadcast(Message<SignedChatMessage> message, ServerPlayerEntity serverPlayerEntity, RegistryKey<MessageType> registryKey) Broadcasts a chat message to all players and the server console.voidPlayerManager.broadcast(Text message, Function<ServerPlayerEntity, Text> playerMessageFactory, RegistryKey<MessageType> typeKey) Broadcasts a message to all players and the server console.voidPlayerManager.broadcast(Text message, RegistryKey<MessageType> typeKey) Broadcasts a message to all players and the server console.voidPlayerManager.method_44166(Message<SignedChatMessage> message, ServerCommandSource serverCommandSource, 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> typeKey) private intServerPlayerEntity.getMessageTypeId(RegistryKey<MessageType> typeKey) voidServerPlayerEntity.sendChatMessage(SignedChatMessage message, MessageSender sender, RegistryKey<MessageType> typeKey) Sends a chat message to the player.voidServerPlayerEntity.sendMessage(Text message, RegistryKey<MessageType> typeKey) Sends a message to the player.private voidServerPlayerEntity.sendMessageDeliverError(Text message, RegistryKey<MessageType> typeKey) -
Uses of MessageType in net.minecraft.util.registry
Fields in net.minecraft.util.registry with type parameters of type MessageTypeModifier and TypeFieldDescriptionstatic final Registry<MessageType>BuiltinRegistries.MESSAGE_TYPEstatic final RegistryKey<Registry<MessageType>>Registry.MESSAGE_TYPE_KEY