Uses of Interface
net.minecraft.text.Text
Package
Description
The Named Binary Tag (NBT) data format.
Provides resources to Minecraft, including resource access, provision, and reloading.
-
Uses of Text in net.minecraft.advancement
Modifier and TypeFieldDescriptionprivate final Text
AdvancementDisplay.description
private final Text
Advancement.text
private final Text
AdvancementDisplay.title
private final Text
AdvancementFrame.toastText
Modifier and TypeMethodDescriptionAdvancementDisplay.getDescription()
AdvancementDisplay.getTitle()
AdvancementFrame.getToastText()
Advancement.toHoverableText()
Modifier and TypeMethodDescriptionAdvancement.Builder.display
(ItemConvertible icon, Text title, Text description, @Nullable Identifier background, AdvancementFrame frame, boolean showToast, boolean announceToChat, boolean hidden) Advancement.Builder.display
(ItemStack icon, Text title, Text description, @Nullable Identifier background, AdvancementFrame frame, boolean showToast, boolean announceToChat, boolean hidden) ModifierConstructorDescriptionAdvancementDisplay
(ItemStack icon, Text title, Text description, @Nullable Identifier background, AdvancementFrame frame, boolean showToast, boolean announceToChat, boolean hidden) -
Uses of Text in net.minecraft.block
Modifier and TypeFieldDescriptionprivate static final Text
EnderChestBlock.CONTAINER_NAME
private static final Text
SmithingTableBlock.SCREEN_TITLE
private static final Text
AnvilBlock.TITLE
private static final Text
CartographyTableBlock.TITLE
private static final Text
CraftingTableBlock.TITLE
private static final Text
GrindstoneBlock.TITLE
private static final Text
LoomBlock.TITLE
private static final Text
StonecutterBlock.TITLE
Modifier and TypeMethodDescriptionvoid
Block.appendTooltip
(ItemStack stack, @Nullable BlockView world, List<Text> tooltip, TooltipContext options) void
ShulkerBoxBlock.appendTooltip
(ItemStack stack, @Nullable BlockView world, List<Text> tooltip, TooltipContext options) -
Uses of Text in net.minecraft.block.entity
Modifier and TypeFieldDescriptionBannerBlockEntity.customName
BeaconBlockEntity.customName
private Text
EnchantingTableBlockEntity.customName
private Text
LockableContainerBlockEntity.customName
private final Text[]
SignBlockEntity.filteredTexts
private final Text[]
SignBlockEntity.texts
Modifier and TypeMethodDescriptionJigsawBlockEntity.Joint.asText()
protected Text
BarrelBlockEntity.getContainerName()
protected Text
BlastFurnaceBlockEntity.getContainerName()
protected Text
BrewingStandBlockEntity.getContainerName()
protected Text
ChestBlockEntity.getContainerName()
protected Text
DispenserBlockEntity.getContainerName()
protected Text
DropperBlockEntity.getContainerName()
protected Text
FurnaceBlockEntity.getContainerName()
protected Text
HopperBlockEntity.getContainerName()
protected abstract Text
LockableContainerBlockEntity.getContainerName()
protected Text
ShulkerBoxBlockEntity.getContainerName()
protected Text
SmokerBlockEntity.getContainerName()
BannerBlockEntity.getCustomName()
EnchantingTableBlockEntity.getCustomName()
LockableContainerBlockEntity.getCustomName()
BeaconBlockEntity.getDisplayName()
Returns the title of this screen handler; will be a part of the open screen packet sent to the client.LecternBlockEntity.getDisplayName()
Returns the title of this screen handler; will be a part of the open screen packet sent to the client.LockableContainerBlockEntity.getDisplayName()
Returns the title of this screen handler; will be a part of the open screen packet sent to the client.BannerBlockEntity.getName()
EnchantingTableBlockEntity.getName()
LockableContainerBlockEntity.getName()
SignBlockEntity.getTextOnRow
(int row, boolean filtered) private Text[]
SignBlockEntity.getTexts
(boolean filtered) private Text
SignBlockEntity.parseTextFromJson
(String json) private Text
SignBlockEntity.unparsedTextFromJson
(String json) Modifier and TypeMethodDescriptionstatic boolean
LockableContainerBlockEntity.checkUnlocked
(PlayerEntity player, ContainerLock lock, Text containerName) void
BannerBlockEntity.setCustomName
(Text customName) void
BeaconBlockEntity.setCustomName
(@Nullable Text customName) void
EnchantingTableBlockEntity.setCustomName
(@Nullable Text customName) void
LockableContainerBlockEntity.setCustomName
(Text customName) void
SignBlockEntity.setTextOnRow
(int row, Text text) void
SignBlockEntity.setTextOnRow
(int row, Text text, Text filteredText) Modifier and TypeMethodDescriptionSignBlockEntity.updateSign
(boolean filterText, Function<Text, OrderedText> textOrderingFunction) -
Uses of Text in net.minecraft.block.enums
-
Uses of Text in net.minecraft.client
Modifier and TypeFieldDescriptionprivate final Text
MinecraftClient.ChatRestriction.description
(package private) static final Text
MinecraftClient.ChatRestriction.field_39456
private static final Text
MinecraftClient.SOCIAL_INTERACTIONS_NOT_AVAILABLE
Modifier and TypeMethodDescriptionMinecraftClient.ChatRestriction.getDescription()
private Text
MinecraftClient.takeHugeScreenshot
(File gameDirectory, int unitWidth, int unitHeight, int width, int height) Takes a huge screenshot in the tga file format.MinecraftClient.takePanorama
(File directory, int width, int height) Takes a panorama.Modifier and TypeMethodDescriptionprivate void
Keyboard.addDebugMessage
(Formatting formatting, Text text) private static ResourcePackProfile
MinecraftClient.createResourcePackProfile
(String name, Text displayName, boolean alwaysEnabled, Supplier<ResourcePack> packFactory, PackResourceMetadata metadata, ResourcePackProfile.InsertionPosition insertionPosition, ResourcePackSource source) private void
void
MinecraftClient.onResourceReloadFailure
(Throwable exception, @Nullable Text resourceName) Modifier and TypeMethodDescriptionboolean
MinecraftClient.toggleDebugProfiler
(Consumer<Text> chatMessageSender) -
Uses of Text in net.minecraft.client.font
Modifier and TypeMethodDescriptionstatic MultilineText
MultilineText.create
(TextRenderer renderer, Text[] texts) int
TextRenderer.draw
(MatrixStack matrices, Text text, float x, float y, int color) int
TextRenderer.draw
(Text text, float x, float y, int color, boolean shadow, Matrix4f matrix, VertexConsumerProvider vertexConsumers, boolean seeThrough, int backgroundColor, int light) int
TextRenderer.drawWithShadow
(MatrixStack matrices, Text text, float x, float y, int color) Modifier and TypeMethodDescriptionstatic MultilineText
MultilineText.createFromTexts
(TextRenderer renderer, List<Text> texts) -
Uses of Text in net.minecraft.client.gui
Modifier and TypeMethodDescriptionstatic void
DrawableHelper.drawCenteredText
(MatrixStack matrices, TextRenderer textRenderer, Text text, int centerX, int y, int color) static void
DrawableHelper.drawTextWithShadow
(MatrixStack matrices, TextRenderer textRenderer, Text text, int x, int y, int color) void
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 Text in net.minecraft.client.gui.hud
Modifier and TypeFieldDescriptionprivate static final Text
InGameHud.DEMO_EXPIRED_MESSAGE
PlayerListHud.footer
PlayerListHud.header
InGameHud.overlayMessage
private static final Text
InGameHud.SAVING_LEVEL_TEXT
InGameHud.subtitle
private final Text
SubtitlesHud.SubtitleEntry.text
InGameHud.title
Modifier and TypeFieldDescriptionChatHud.messageQueue
private final List<ChatHudLine<Text>>
ChatHud.messages
Modifier and TypeMethodDescriptionprivate Text
PlayerListHud.applyGameModeFormatting
(PlayerListEntry entry, MutableText name) Italicizes the given text if the given player is in spectator mode.PlayerListHud.getPlayerName
(PlayerListEntry entry) Returns the player name rendered by this HUD.SubtitlesHud.SubtitleEntry.getText()
Modifier and TypeMethodDescriptionvoid
ChatHud.addMessage
(Text message) private void
ChatHud.addMessage
(Text message, int messageId) private void
ChatHud.addMessage
(Text message, int messageId, int timestamp, boolean refresh) InGameHud.extractSender
(Text message) void
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.void
InGameHud.onGameMessage
(MessageType type, Text message) Handles a game message.void
ChatHud.queueMessage
(Text message) void
void
void
InGameHud.setOverlayMessage
(Text message, boolean tinted) void
InGameHud.setRecordPlayingOverlay
(Text description) void
InGameHud.setSubtitle
(Text subtitle) void
ModifierConstructorDescriptionClientBossBar
(UUID uuid, Text name, float percent, BossBar.Color color, BossBar.Style style, boolean darkenSky, boolean dragonMusic, boolean thickenFog) SubtitleEntry
(Text text, Vec3d pos) -
Uses of Text in net.minecraft.client.gui.hud.spectator
Modifier and TypeFieldDescription(package private) static final Text
SpectatorMenu.CLOSE_TEXT
private final Text
TeleportToSpecificPlayerSpectatorCommand.name
(package private) static final Text
SpectatorMenu.NEXT_PAGE_TEXT
(package private) static final Text
SpectatorMenu.PREVIOUS_PAGE_TEXT
private static final Text
RootSpectatorCommandGroup.PROMPT_TEXT
private static final Text
TeamTeleportSpectatorMenu.PROMPT_TEXT
private static final Text
TeleportSpectatorMenu.PROMPT_TEXT
private static final Text
TeamTeleportSpectatorMenu.TEAM_TELEPORT_TEXT
private static final Text
TeleportSpectatorMenu.TELEPORT_TEXT
Modifier and TypeMethodDescriptionSpectatorMenu.ChangePageSpectatorMenuCommand.getName()
SpectatorMenu.CloseSpectatorMenuCommand.getName()
SpectatorMenuCommand.getName()
TeamTeleportSpectatorMenu.getName()
TeamTeleportSpectatorMenu.TeleportToSpecificTeamCommand.getName()
TeleportSpectatorMenu.getName()
TeleportToSpecificPlayerSpectatorCommand.getName()
RootSpectatorCommandGroup.getPrompt()
SpectatorMenuCommandGroup.getPrompt()
TeamTeleportSpectatorMenu.getPrompt()
TeleportSpectatorMenu.getPrompt()
-
Uses of Text in net.minecraft.client.gui.screen
Modifier and TypeFieldDescriptionprivate static final Text
OpenToLanScreen.ALLOW_COMMANDS_TEXT
static final Text
ConnectScreen.BLOCKED_HOST_TEXT
private static final Text
CustomizeBuffetLevelScreen.BUFFET_BIOME_TEXT
protected final Text
NoticeScreen.buttonText
private static final Text
ChatScreen.CHAT_PREVIEW_PLACEHOLDER_TEXT
private static final Text
ChatScreen.CHAT_PREVIEW_WARNING_TOAST_TEXT
private static final Text
ChatScreen.CHAT_PREVIEW_WARNING_TOAST_TITLE
private static final Text
Realms32BitWarningScreen.CHECK_MESSAGE
private final Text
WarningScreen.checkMessage
private static final Text
ConfirmChatLinkScreen.COPY
static final Text
TitleScreen.COPYRIGHT
private final Text
StatsScreen.GeneralStatsListWidget.Entry.displayName
private static final Text
StatsScreen.DOWNLOADING_STATS_TEXT
private static final Text
AddServerScreen.ENTER_IP_TEXT
private static final Text
DirectConnectScreen.ENTER_IP_TEXT
private static final Text
AddServerScreen.ENTER_NAME_TEXT
private final Text
StatsScreen.EntityStatsListWidget.Entry.entityTypeName
private static final Text
OpenToLanScreen.GAME_MODE_TEXT
private final Text
WarningScreen.header
private static final Text
Realms32BitWarningScreen.HEADER
private Text
CustomizeFlatLevelScreen.heightText
private final Text
StatsScreen.EntityStatsListWidget.Entry.killedByText
private final Text
StatsScreen.EntityStatsListWidget.Entry.killedText
private Text
PresetsScreen.listText
private final Text
ConfirmScreen.message
private final Text
DeathScreen.message
(package private) final Text
DialogScreen.ChoiceButton.message
private final Text
FatalErrorScreen.message
private final Text
WarningScreen.message
private static final Text
Realms32BitWarningScreen.MESSAGE
private static final Text
Realms32BitWarningScreen.NARRATED_TEXT
private final Text
WarningScreen.narratedText
private final Text
DialogScreen.narrationMessage
protected final Text
NoticeScreen.notice
protected Text
ConfirmScreen.noTranslated
private static final Text
OpenToLanScreen.OTHER_PLAYERS_TEXT
private final Text
DisconnectedScreen.reason
private Text
DeathScreen.scoreText
private static final Text
Screen.SCREEN_USAGE_TEXT
private static final Text
GameModeSelectionScreen.SELECT_NEXT_TEXT
private static final Text
CreditsScreen.SEPARATOR_LINE
private Text
PresetsScreen.shareText
private Text
ConnectScreen.status
private final Text
BackupPromptScreen.subtitle
ProgressScreen.task
(package private) final Text
CustomizeBuffetLevelScreen.BuffetBiomesListWidget.BuffetBiomeItem.text
(package private) final Text
GameModeSelectionScreen.GameModeSelection.text
private final Text
PresetsScreen.SuperflatPresetsListWidget.SuperflatPresetEntry.text
private static final Text
DownloadingTerrainScreen.TEXT
private Text
CustomizeFlatLevelScreen.tileText
ProgressScreen.title
protected final Text
Screen.title
static final Text
PresetsScreen.UNKNOWN_PRESET_TEXT
private static final Text
ChatScreen.USAGE_TEXT
private static final Text
ConfirmChatLinkScreen.WARNING
protected Text
ConfirmScreen.yesTranslated
Modifier and TypeMethodDescriptionConfirmScreen.getNarratedTitle()
DialogScreen.getNarratedTitle()
Screen.getNarratedTitle()
WarningScreen.getNarratedTitle()
(package private) Text
CommandSuggestor.SuggestionWindow.getNarration()
CustomizeBuffetLevelScreen.BuffetBiomesListWidget.BuffetBiomeItem.getNarration()
CustomizeFlatLevelScreen.SuperflatLayersListWidget.SuperflatLayerEntry.getNarration()
PresetsScreen.SuperflatPresetsListWidget.SuperflatPresetEntry.getNarration()
StatsScreen.EntityStatsListWidget.Entry.getNarration()
StatsScreen.GeneralStatsListWidget.Entry.getNarration()
StatsScreen.ItemStatsListWidget.Entry.getNarration()
(package private) Text
GameModeSelectionScreen.GameModeSelection.getText()
protected Text
Screen.getTitle()
Modifier and TypeMethodDescriptionprivate void
protected void
StatsScreen.ItemStatsListWidget.render
(MatrixStack matrices, @Nullable Text text, int mouseX, int mouseY) void
Screen.renderTooltip
(MatrixStack matrices, Text text, int x, int y) private void
void
void
void
ProgressScreen.setTitleAndTask
(Text title) Modifier and TypeMethodDescriptionvoid
Screen.renderTooltip
(MatrixStack matrices, List<Text> lines, int x, int y) void
Screen.renderTooltip
(MatrixStack matrices, List<Text> lines, Optional<TooltipData> data, int x, int y) ModifierConstructorDescriptionBackupPromptScreen
(Screen parent, BackupPromptScreen.Callback callback, Text title, Text subtitle, boolean showEraseCacheCheckBox) ChoiceButton
(Text message, ButtonWidget.PressAction pressAction) ConfirmChatLinkScreen
(BooleanConsumer booleanConsumer, Text text, String string, boolean bool) ConfirmScreen
(BooleanConsumer callback, Text title, Text message) ConfirmScreen
(BooleanConsumer callback, Text title, Text message, Text yesTranslated, Text noTranslated) DeathScreen
(@Nullable Text message, boolean isHardcore) protected
DialogScreen
(Text title, List<Text> messages, ImmutableList<DialogScreen.ChoiceButton> choiceButtons) DisconnectedScreen
(Screen parent, Text title, Text reason) FatalErrorScreen
(Text title, Text message) private
GameModeSelection
(Text text, String command, ItemStack icon) MessageScreen
(Text title) NoticeScreen
(Runnable actionHandler, Text title, Text notice) NoticeScreen
(Runnable actionHandler, Text title, Text notice, Text buttonText) protected
protected
WarningScreen
(Text header, Text message, Text checkMessage, Text narratedText) ModifierConstructorDescriptionprotected
DialogScreen
(Text title, List<Text> messages, ImmutableList<DialogScreen.ChoiceButton> choiceButtons) -
Uses of Text in net.minecraft.client.gui.screen.advancement
Modifier and TypeFieldDescriptionprivate static final Text
AdvancementsScreen.ADVANCEMENTS_TEXT
private static final Text
AdvancementsScreen.EMPTY_TEXT
private static final Text
AdvancementsScreen.SAD_LABEL_TEXT
private final Text
AdvancementTab.title
Modifier and TypeMethodDescriptionprivate List<StringVisitable>
AdvancementWidget.wrapDescription
(Text text, int width) -
Uses of Text in net.minecraft.client.gui.screen.ingame
Modifier and TypeFieldDescriptionprivate static final Text
AbstractCommandBlockScreen.COMMAND_TEXT
private static final Text
StructureBlockScreen.CUSTOM_DATA_TEXT
private static final Text
CreativeInventoryScreen.DELETE_ITEM_SLOT_TEXT
private static final Text
MerchantScreen.DEPRECATED_TEXT
private static final Text
StructureBlockScreen.DETECT_SIZE_TEXT
private static final Text
BookEditScreen.EDIT_TITLE_TEXT
private static final Text
JigsawBlockScreen.FINAL_STATE_TEXT
private static final Text
BookEditScreen.FINALIZE_WARNING_TEXT
private static final Text
StructureBlockScreen.INCLUDE_ENTITIES_TEXT
private static final Text
StructureBlockScreen.INTEGRITY_TEXT
private static final Text
JigsawBlockScreen.JOINT_LABEL_TEXT
private static final Text
JigsawBlockScreen.NAME_TEXT
private Text
BookScreen.pageIndexText
private Text
BookEditScreen.pageIndicatorText
protected final Text
HandledScreen.playerInventoryTitle
private static final Text
JigsawBlockScreen.POOL_TEXT
private static final Text
StructureBlockScreen.POSITION_TEXT
private static final Text
AbstractCommandBlockScreen.PREVIOUS_OUTPUT_TEXT
private static final Text
BeaconScreen.PRIMARY_POWER_TEXT
private static final Text
BeaconScreen.SECONDARY_POWER_TEXT
private static final Text
MerchantScreen.SEPARATOR_TEXT
private static final Text
AbstractCommandBlockScreen.SET_COMMAND_TEXT
private static final Text
StructureBlockScreen.SHOW_AIR_TEXT
private static final Text
StructureBlockScreen.SHOW_BOUNDING_BOX_TEXT
private final Text
BookEditScreen.signedByText
private static final Text
StructureBlockScreen.SIZE_TEXT
private static final Text
StructureBlockScreen.STRUCTURE_NAME_TEXT
private static final Text
JigsawBlockScreen.TARGET_TEXT
(package private) final Text
BookEditScreen.Line.text
private static final Text
AnvilScreen.TOO_EXPENSIVE_TEXT
private Text
BeaconScreen.EffectButtonWidget.tooltip
private static final Text
MerchantScreen.TRADES_TEXT
Modifier and TypeMethodDescriptionprivate Text
AbstractInventoryScreen.getStatusEffectDescription
(StatusEffectInstance statusEffect) Modifier and TypeMethodDescriptionHandledScreens.Provider.create
(T handler, PlayerInventory playerInventory, Text title) static <T extends ScreenHandler>
voidHandledScreens.open
(@Nullable ScreenHandlerType<T> type, MinecraftClient client, int id, Text title) default void
HandledScreens.Provider.open
(Text name, ScreenHandlerType<T> type, MinecraftClient client, int id) ModifierConstructorDescriptionAbstractFurnaceScreen
(T handler, AbstractFurnaceRecipeBookScreen recipeBook, PlayerInventory inventory, Text title, Identifier background) AbstractInventoryScreen
(T handler, PlayerInventory inventory, Text title) AnvilScreen
(AnvilScreenHandler handler, PlayerInventory inventory, Text title) protected
BaseButtonWidget
(int x, int y, Text message) BeaconScreen
(BeaconScreenHandler handler, PlayerInventory inventory, Text title) BlastFurnaceScreen
(BlastFurnaceScreenHandler container, PlayerInventory inventory, Text title) BrewingStandScreen
(BrewingStandScreenHandler handler, PlayerInventory inventory, Text title) CartographyTableScreen
(CartographyTableScreenHandler handler, PlayerInventory inventory, Text title) CraftingScreen
(CraftingScreenHandler handler, PlayerInventory inventory, Text title) EnchantmentScreen
(EnchantmentScreenHandler handler, PlayerInventory inventory, Text title) ForgingScreen
(T handler, PlayerInventory playerInventory, Text title, Identifier texture) FurnaceScreen
(FurnaceScreenHandler handler, PlayerInventory inventory, Text title) Generic3x3ContainerScreen
(Generic3x3ContainerScreenHandler handler, PlayerInventory inventory, Text title) GenericContainerScreen
(GenericContainerScreenHandler handler, PlayerInventory inventory, Text title) GrindstoneScreen
(GrindstoneScreenHandler handler, PlayerInventory inventory, Text title) HandledScreen
(T handler, PlayerInventory inventory, Text title) HopperScreen
(HopperScreenHandler handler, PlayerInventory inventory, Text title) protected
IconButtonWidget
(int x, int y, int u, int v, Text message) LecternScreen
(LecternScreenHandler handler, PlayerInventory inventory, Text title) LoomScreen
(LoomScreenHandler screenHandler, PlayerInventory inventory, Text title) MerchantScreen
(MerchantScreenHandler handler, PlayerInventory inventory, Text title) ShulkerBoxScreen
(ShulkerBoxScreenHandler handler, PlayerInventory inventory, Text title) SmithingScreen
(SmithingScreenHandler handler, PlayerInventory playerInventory, Text title) SmokerScreen
(SmokerScreenHandler handler, PlayerInventory inventory, Text title) StonecutterScreen
(StonecutterScreenHandler handler, PlayerInventory inventory, Text title) -
Uses of Text in net.minecraft.client.gui.screen.multiplayer
Modifier and TypeFieldDescriptionprivate static final Text
SocialInteractionsScreen.ALL_TAB_TITLE
private static final Text
SocialInteractionsPlayerListEntry.BLOCKED_OFFLINE_TEXT
private static final Text
SocialInteractionsScreen.BLOCKED_TAB_TITLE
private static final Text
SocialInteractionsPlayerListEntry.BLOCKED_TEXT
private static final Text
SocialInteractionsScreen.BLOCKING_TEXT
(package private) static final Text
MultiplayerServerListWidget.CANNOT_CONNECT_TEXT
(package private) static final Text
MultiplayerServerListWidget.CANNOT_RESOLVE_TEXT
private static final Text
ChatPreviewWarningScreen.CHECK_MESSAGE
private static final Text
MultiplayerWarningScreen.CHECK_MESSAGE
private static final Text
ChatPreviewWarningScreen.CONTENT
private static final Text
SocialInteractionsScreen.EMPTY_BLOCKED_TEXT
private static final Text
SocialInteractionsScreen.EMPTY_HIDDEN_TEXT
(package private) static final Text
SocialInteractionsScreen.EMPTY_SEARCH_TEXT
private static final Text
MultiplayerWarningScreen.HEADER
private static final Text
MultiplayerServerListWidget.LanServerEntry.HIDDEN_ADDRESS_TEXT
private static final Text
SocialInteractionsPlayerListEntry.HIDDEN_OFFLINE_TEXT
private static final Text
SocialInteractionsScreen.HIDDEN_TAB_TITLE
private static final Text
SocialInteractionsPlayerListEntry.HIDDEN_TEXT
(package private) final Text
SocialInteractionsPlayerListEntry.hideText
(package private) static final Text
MultiplayerServerListWidget.INCOMPATIBLE_TEXT
(package private) static final Text
MultiplayerServerListWidget.LAN_SCANNING_TEXT
private static final Text
MultiplayerWarningScreen.MESSAGE
private static final Text
ChatPreviewWarningScreen.NARRATED_TEXT
private static final Text
MultiplayerWarningScreen.NARRATED_TEXT
(package private) static final Text
MultiplayerServerListWidget.NO_CONNECTION_TEXT
private static final Text
SocialInteractionsPlayerListEntry.OFFLINE_TEXT
(package private) static final Text
MultiplayerServerListWidget.PINGING_TEXT
private static final Text
SocialInteractionsScreen.SEARCH_TEXT
private static final Text
SocialInteractionsScreen.SELECTED_ALL_TAB_TITLE
private static final Text
SocialInteractionsScreen.SELECTED_BLOCKED_TAB_TITLE
private static final Text
SocialInteractionsScreen.SELECTED_HIDDEN_TAB_TITLE
SocialInteractionsScreen.serverLabel
(package private) final Text
SocialInteractionsPlayerListEntry.showText
private static final Text
ChatPreviewWarningScreen.TITLE
private static final Text
MultiplayerServerListWidget.LanServerEntry.TITLE_TEXT
Modifier and TypeMethodDescriptionSocialInteractionsScreen.getNarratedTitle()
MultiplayerServerListWidget.LanServerEntry.getNarration()
MultiplayerServerListWidget.ScanningEntry.getNarration()
MultiplayerServerListWidget.ServerEntry.getNarration()
private Text
SocialInteractionsPlayerListEntry.getStatusText()
Modifier and TypeMethodDescriptionprivate void
SocialInteractionsPlayerListEntry.onButtonClick
(boolean showButtonVisible, Text chatMessage) -
Uses of Text in net.minecraft.client.gui.screen.narration
Modifier and TypeMethodDescriptiondefault void
NarrationMessageBuilder.put
(NarrationPart part, Text text) default void
NarrationMessageBuilder.put
(NarrationPart part, Text[] texts) static Narration<?>
-
Uses of Text in net.minecraft.client.gui.screen.option
Modifier and TypeFieldDescriptionprivate final Text
ControlsListWidget.KeyBindingEntry.bindingName
private static final Text
VideoOptionsScreen.GRAPHICS_FABULOUS_TEXT
private static final Text
VideoOptionsScreen.GRAPHICS_WARNING_ACCEPT_TEXT
private static final Text
VideoOptionsScreen.GRAPHICS_WARNING_CANCEL_TEXT
private static final Text
VideoOptionsScreen.GRAPHICS_WARNING_MESSAGE_TEXT
private static final Text
VideoOptionsScreen.GRAPHICS_WARNING_TITLE_TEXT
private static final Text
LanguageOptionsScreen.LANGUAGE_WARNING_TEXT
(package private) final Text
ControlsListWidget.CategoryEntry.text
Modifier and TypeMethodDescriptionLanguageOptionsScreen.LanguageSelectionListWidget.LanguageEntry.getNarration()
ModifierConstructorDescriptionCategoryEntry
(Text text) GameOptionsScreen
(Screen parent, GameOptions gameOptions, Text title) (package private)
KeyBindingEntry
(KeyBinding binding, Text bindingName) SimpleOptionsScreen
(Screen parent, GameOptions gameOptions, Text title, SimpleOption<?>[] options) -
Uses of Text in net.minecraft.client.gui.screen.pack
Modifier and TypeFieldDescriptionprivate static final Text
PackScreen.DROP_INFO
(package private) static final Text
PackScreen.FOLDER_INFO
(package private) static final Text
PackListWidget.INCOMPATIBLE
(package private) static final Text
PackListWidget.INCOMPATIBLE_CONFIRM
private final Text
PackListWidget.title
Modifier and TypeMethodDescriptiondefault Text
ResourcePackOrganizer.Pack.getDecoratedDescription()
ResourcePackOrganizer.AbstractPack.getDescription()
ResourcePackOrganizer.Pack.getDescription()
ResourcePackOrganizer.AbstractPack.getDisplayName()
ResourcePackOrganizer.Pack.getDisplayName()
PackListWidget.ResourcePackEntry.getNarration()
Modifier and TypeMethodDescriptionprivate static MultilineText
PackListWidget.ResourcePackEntry.createMultilineText
(MinecraftClient client, Text text) private static OrderedText
PackListWidget.ResourcePackEntry.trimTextToWidth
(MinecraftClient client, Text text) ModifierConstructorDescriptionPackListWidget
(MinecraftClient client, int width, int height, Text title) PackScreen
(Screen parent, ResourcePackManager packManager, Consumer<ResourcePackManager> applier, File file, Text title) -
Uses of Text in net.minecraft.client.gui.screen.recipebook
Modifier and TypeFieldDescriptionprivate static final Text
AnimatedResultButton.MORE_RECIPES_TEXT
private static final Text
RecipeBookWidget.SEARCH_HINT_TEXT
private static final Text
RecipeBookWidget.TOGGLE_ALL_RECIPES_TEXT
private static final Text
BlastFurnaceRecipeBookScreen.TOGGLE_BLASTABLE_RECIPES_TEXT
private static final Text
RecipeBookWidget.TOGGLE_CRAFTABLE_RECIPES_TEXT
private static final Text
FurnaceRecipeBookScreen.TOGGLE_SMELTABLE_RECIPES_TEXT
private static final Text
SmokerRecipeBookScreen.TOGGLE_SMOKABLE_RECIPES_TEXT
Modifier and TypeMethodDescriptionprivate Text
RecipeBookWidget.getCraftableButtonText()
protected Text
BlastFurnaceRecipeBookScreen.getToggleCraftableButtonText()
protected Text
FurnaceRecipeBookScreen.getToggleCraftableButtonText()
protected Text
RecipeBookWidget.getToggleCraftableButtonText()
protected Text
SmokerRecipeBookScreen.getToggleCraftableButtonText()
-
Uses of Text in net.minecraft.client.gui.screen.world
Modifier and TypeFieldDescriptionprivate static final Text
CreateWorldScreen.ALLOW_COMMANDS_INFO_TEXT
private static final Text
MoreOptionsDialog.AMPLIFIED_INFO_TEXT
(package private) static final Text
WorldListWidget.CONVERSION_TOOLTIP
private static final Text
MoreOptionsDialog.CUSTOM_TEXT
private static final Text
CreateWorldScreen.ENTER_NAME_TEXT
private static final Text
EditWorldScreen.ENTER_NAME_TEXT
private static final Text
CreateWorldScreen.ENTER_SEED_TEXT
private Text
CreateWorldScreen.firstGameModeDescriptionLine
(package private) static final Text
WorldListWidget.FROM_NEWER_VERSION_FIRST_LINE
(package private) static final Text
WorldListWidget.FROM_NEWER_VERSION_SECOND_LINE
private static final Text
CreateWorldScreen.GAME_MODE_TEXT
private static final Text
WorldListWidget.LoadingEntry.LOADING_LIST_TEXT
(package private) static final Text
WorldListWidget.LOCKED_TEXT
private static final Text
MoreOptionsDialog.MAP_FEATURES_INFO_TEXT
(package private) final Text
EditGameRulesScreen.RuleCategoryWidget.name
private static final Text
CreateWorldScreen.PREPARING_TEXT
private static final Text
CreateWorldScreen.RESULT_FOLDER_TEXT
private Text
CreateWorldScreen.secondGameModeDescriptionLine
private static final Text
CreateWorldScreen.SEED_INFO_TEXT
private static final Text
MoreOptionsDialog.SELECT_SETTINGS_FILE_TEXT
(package private) static final Text
WorldListWidget.SNAPSHOT_FIRST_LINE
(package private) static final Text
WorldListWidget.SNAPSHOT_SECOND_LINE
private final Text
CreateWorldScreen.Mode.text
Modifier and TypeMethodDescriptionCreateWorldScreen.Mode.asText()
WorldListWidget.LoadingEntry.getNarration()
WorldListWidget.WorldEntry.getNarration()
private static Text
MoreOptionsDialog.getText
(RegistryEntry<WorldPreset> presetEntry) Modifier and TypeMethodDescriptionEditGameRulesScreen.RuleWidgetFactory.create
(Text name, List<OrderedText> description, String ruleName, T rule) private static void
CreateWorldScreen.showMessage
(MinecraftClient client, Text text) private void
WorldListWidget.showUnableToLoadScreen
(Text message) ModifierConstructorDescriptionBooleanRuleWidget
(Text name, List<OrderedText> description, String ruleName, GameRules.BooleanRule rule) IntRuleWidget
(Text name, List<OrderedText> description, String ruleName, GameRules.IntRule rule) NamedRuleWidget
(@Nullable List<OrderedText> description, Text name) RuleCategoryWidget
(Text text) -
Uses of Text in net.minecraft.client.gui.widget
Modifier and TypeFieldDescriptionprivate final Text
PressableTextWidget.hoverText
private Text
ClickableWidget.message
private final Text
CyclingButtonWidget.optionText
private static final Text
AlwaysSelectedEntryListWidget.SELECTION_USAGE_TEXT
private final Text
PressableTextWidget.text
Modifier and TypeFieldDescriptionCyclingButtonWidget.Builder.valueToText
CyclingButtonWidget.valueToText
Modifier and TypeMethodDescriptionprivate Text
CyclingButtonWidget.composeText
(T value) ClickableWidget.getMessage()
abstract Text
AlwaysSelectedEntryListWidget.Entry.getNarration()
Modifier and TypeMethodDescriptionCyclingButtonWidget.Builder.build
(int x, int y, int width, int height, Text optionText, CyclingButtonWidget.UpdateCallback<T> callback) Builds a cycling button widget.static MutableText
ClickableWidget.getNarrationMessage
(Text message) static CyclingButtonWidget.Builder<Boolean>
CyclingButtonWidget.onOffBuilder
(Text on, Text off) Creates a builder for a cycling button widget that only has Boolean.TRUE and Boolean.FALSE values.void
ClickableWidget.setMessage
(Text message) Modifier and TypeMethodDescriptionstatic <T> CyclingButtonWidget.Builder<T>
Creates a new builder for a cycling button widget.default void
ModifierConstructorDescriptionButtonWidget
(int x, int y, int width, int height, Text message, ButtonWidget.PressAction onPress) ButtonWidget
(int x, int y, int width, int height, Text message, ButtonWidget.PressAction onPress, ButtonWidget.TooltipSupplier tooltipSupplier) CheckboxWidget
(int x, int y, int width, int height, Text message, boolean checked) CheckboxWidget
(int x, int y, int width, int height, Text message, boolean checked, boolean showMessage) ClickableWidget
(int x, int y, int width, int height, Text message) (package private)
CyclingButtonWidget
(int x, int y, int width, int height, Text message, Text optionText, int index, T value, CyclingButtonWidget.Values<T> values, Function<T, Text> valueToText, Function<CyclingButtonWidget<T>, MutableText> narrationMessageFactory, CyclingButtonWidget.UpdateCallback<T> callback, SimpleOption.TooltipFactory<T> tooltipFactory, boolean optionTextOmitted) PressableTextWidget
(int x, int y, int width, int height, Text text, ButtonWidget.PressAction onPress, TextRenderer textRenderer) PressableWidget
(int x, int y, int width, int height, Text message) SliderWidget
(int x, int y, int width, int height, Text text, double value) TextFieldWidget
(TextRenderer textRenderer, int x, int y, int width, int height, @Nullable TextFieldWidget copyFrom, Text text) TextFieldWidget
(TextRenderer textRenderer, int x, int y, int width, int height, Text text) TexturedButtonWidget
(int x, int y, int width, int height, int u, int v, int hoveredVOffset, Identifier texture, int textureWidth, int textureHeight, ButtonWidget.PressAction pressAction, ButtonWidget.TooltipSupplier tooltipSupplier, Text text) TexturedButtonWidget
(int x, int y, int width, int height, int u, int v, int hoveredVOffset, Identifier texture, int textureWidth, int textureHeight, ButtonWidget.PressAction pressAction, Text text) ModifierConstructorDescriptionCreates a builder.(package private)
CyclingButtonWidget
(int x, int y, int width, int height, Text message, Text optionText, int index, T value, CyclingButtonWidget.Values<T> values, Function<T, Text> valueToText, Function<CyclingButtonWidget<T>, MutableText> narrationMessageFactory, CyclingButtonWidget.UpdateCallback<T> callback, SimpleOption.TooltipFactory<T> tooltipFactory, boolean optionTextOmitted) -
Uses of Text in net.minecraft.client.network
Modifier and TypeFieldDescriptionprivate static final Text
MultiplayerServerListPinger.CANNOT_CONNECT_TEXT
private static final Text
ClientPlayNetworkHandler.DISCONNECT_LOST_TEXT
PlayerListEntry.displayName
ServerInfo.label
private final Text
ServerInfo.ResourcePackPolicy.name
ServerInfo.playerCountLabel
ChatPreviewer.Response.previewText
The field for thepreviewText
record component.ServerInfo.version
Modifier and TypeFieldDescriptionServerInfo.playerListSummary
ClientLoginNetworkHandler.statusConsumer
Modifier and TypeMethodDescription(package private) static Text
MultiplayerServerListPinger.createPlayerCountText
(int current, int max) PlayerListEntry.getDisplayName()
ServerInfo.ResourcePackPolicy.getName()
ChatPreviewer.getPreviewText()
Returns the preview text (also known as the last response text), ornull
if the server responded as such.private static Text
ClientPlayNetworkHandler.getServerResourcePackPrompt
(Text defaultPrompt, @Nullable Text customPrompt) ClientLoginNetworkHandler.joinServerSession
(String serverId) ChatPreviewer.Response.previewText()
Returns the value of thepreviewText
record component.ChatPreviewer.tryConsumeResponse
(String message) Returns the consumed response text, ornull
if the server responded as such, or if the response could not be consumed.Modifier and TypeMethodDescriptionprivate static Text
ClientPlayNetworkHandler.getServerResourcePackPrompt
(Text defaultPrompt, @Nullable Text customPrompt) void
ClientLoginNetworkHandler.onDisconnected
(Text reason) Called when the connection this listener listens to has disconnected.void
ClientPlayNetworkHandler.onDisconnected
(Text reason) Called when the connection this listener listens to has disconnected.void
ChatPreviewer.onResponse
(int id, @Nullable Text response) Called when the preview response was received.void
ClientPlayerEntity.sendChatMessage
(String message, @Nullable Text preview) Sends a chat message with the preview to the server.private void
ClientPlayerEntity.sendChatMessagePacket
(ChatMessageSigner signer, String message, @Nullable Text preview) void
ClientPlayerEntity.sendCommand
(String command, @Nullable Text preview) Sends a command to the server.private void
ClientPlayerEntity.sendCommand
(ChatMessageSigner signer, String command, @Nullable Text preview) Signs and sendscommand
to the server.void
ClientPlayerEntity.sendMessage
(Text message) Sends a system message.void
ClientPlayerEntity.sendMessage
(Text message, boolean actionBar) Adds a message to this player's HUD.void
OtherClientPlayerEntity.sendMessage
(Text message) Sends a system message.void
PlayerListEntry.setDisplayName
(@Nullable Text displayName) (package private) void
MultiplayerServerListPinger.showError
(Text error, ServerInfo info) private ArgumentSignatureDataMap
ClientPlayerEntity.signArguments
(ChatMessageSigner signer, com.mojang.brigadier.ParseResults<CommandSource> parseResults, @Nullable Text preview) Signs the command arguments.private MessageSignature
ClientPlayerEntity.signChatMessage
(ChatMessageSigner signer, Text message) Signs the chat message.ModifierConstructorDescriptionClientLoginNetworkHandler
(ClientConnection connection, MinecraftClient client, @Nullable Screen parentGui, Consumer<Text> statusConsumer) -
Uses of Text in net.minecraft.client.option
Modifier and TypeFieldDescriptionprivate static final Text
GameOptions.ALLOW_SERVER_LISTING_TOOLTIP
private static final Text
GameOptions.BY_PLAYER_CHUNK_BUILDER_MODE_TOOLTIP
private static final Text
GameOptions.CHAT_PREVIEW_TOOLTIP
private static final Text
GameOptions.DARK_MOJANG_STUDIOS_BACKGROUND_COLOR_TOOLTIP
private static final Text
GameOptions.DARKNESS_EFFECT_SCALE_TOOLTIP
private static final Text
GameOptions.DIRECTIONAL_AUDIO_OFF_TOOLTIP
private static final Text
GameOptions.DIRECTIONAL_AUDIO_ON_TOOLTIP
private static final Text
GameOptions.FABULOUS_GRAPHICS_TOOLTIP
private static final Text
GameOptions.FANCY_GRAPHICS_TOOLTIP
private static final Text
GameOptions.FAST_GRAPHICS_TOOLTIP
private static final Text
GameOptions.FOV_EFFECT_SCALE_TOOLTIP
private static final Text
GameOptions.HIDE_LIGHTNING_FLASHES_TOOLTIP
private static final Text
GameOptions.HIDE_MATCHED_NAMES_TOOLTIP
private static final Text
GameOptions.HOLD_KEY_TEXT
private final Text
NarratorMode.name
private static final Text
GameOptions.NEARBY_CHUNK_BUILDER_MODE_TOOLTIP
private static final Text
GameOptions.NONE_CHUNK_BUILDER_MODE_TOOLTIP
private static final Text
GameOptions.ONLY_SHOW_SECURE_CHAT_TOOLTIP
private static final Text
GameOptions.SCREEN_EFFECT_SCALE_TOOLTIP
(package private) final Text
SimpleOption.text
private static final Text
GameOptions.TOGGLE_KEY_TEXT
Modifier and TypeMethodDescriptionKeyBinding.getBoundKeyLocalizedText()
static Text
GameOptions.getGenericValueText
(Text prefix, int value) static Text
GameOptions.getGenericValueText
(Text prefix, Text value) NarratorMode.getName()
private static Text
GameOptions.getPercentValueText
(Text prefix, double value) private static Text
GameOptions.getPixelValueText
(Text prefix, int value) Modifier and TypeMethodDescriptionstatic <T> SimpleOption.TooltipFactoryGetter<T>
SimpleOption.constantTooltip
(Text text) Returns the getter for thetooltipFactoryGetter
parameter of the constructor to indicate constant tooltips.static Text
GameOptions.getGenericValueText
(Text prefix, int value) static Text
GameOptions.getGenericValueText
(Text prefix, Text value) private static Text
GameOptions.getPercentValueText
(Text prefix, double value) private static Text
GameOptions.getPixelValueText
(Text prefix, int value) protected static List<OrderedText>
SimpleOption.wrapLines
(MinecraftClient client, Text text) -
Uses of Text in net.minecraft.client.realms
Modifier and TypeFieldDescription(package private) final Text
RepeatedNarrator.Parameters.message
private final Text
RealmsLabel.text
ModifierConstructorDescription(package private)
Parameters
(Text text, RateLimiter rateLimiter) RealmsLabel
(Text text, int x, int y, int color) -
Uses of Text in net.minecraft.client.realms.gui
Modifier and TypeFieldDescriptionRealmsWorldSlotButton.State.actionPrompt
private static final Text
RealmsWorldSlotButton.ACTIVE_TOOLTIP
private static final Text
RealmsWorldSlotButton.MINIGAME_TOOLTIP
private static final Text
RealmsWorldSlotButton.TOOLTIP
Modifier and TypeMethodDescriptionRealmsWorldSlotButton.getActionPromptAndMessage
(RealmsServer server, String text, boolean empty, boolean minigame, RealmsWorldSlotButton.Action action) RealmsWorldSlotButton.getActionPromptAndMessage
(RealmsServer server, String text, boolean empty, boolean minigame, RealmsWorldSlotButton.Action action) Modifier and TypeMethodDescriptionprivate void
RealmsWorldSlotButton.drawSlotFrame
(MatrixStack matrices, int x, int y, int mouseX, int mouseY, boolean active, String slotName, int slotIndex, long imageId, @Nullable String image, boolean empty, boolean minigame, RealmsWorldSlotButton.Action action, @Nullable Text actionPrompt) ModifierConstructorDescription(package private)
State
(boolean isCurrentlyActiveSlot, String slotName, long imageId, @Nullable String image, boolean empty, boolean minigame, RealmsWorldSlotButton.Action action, @Nullable Text actionPrompt) ModifierConstructorDescriptionRealmsWorldSlotButton
(int x, int y, int width, int height, Supplier<RealmsServer> serverDataProvider, Consumer<Text> tooltipSetter, int id, ButtonWidget.PressAction action) -
Uses of Text in net.minecraft.client.realms.gui.screen
Modifier and TypeFieldDescription(package private) static final Text
RealmsPendingInvitesScreen.ACCEPT_TEXT
private static final Text
RealmsBackupScreen.BACKUPS_TEXT
private Text
RealmsResetWorldScreen.buttonTitle
(package private) static final Text
RealmsBackupScreen.CHANGES_TOOLTIP
(package private) static final Text
RealmsSelectFileToUploadScreen.CHEATS_TEXT
private static final Text
RealmsConfigureWorldScreen.CLOSED_TEXT
private static final Text
RealmsMainScreen.CLOSED_TEXT
private static final Text
RealmsConfigureWorldScreen.CONFIGURE_REALM_TITLE
private static final Text
RealmsMainScreen.CONFIGURE_TEXT
private static final Text
RealmsConfigureWorldScreen.CURRENT_MINIGAME_TEXT
private static final Text
RealmsSubscriptionInfoScreen.DAY_TEXT
private static final Text
RealmsSubscriptionInfoScreen.DAYS_LEFT_LABEL_TEXT
private static final Text
RealmsSubscriptionInfoScreen.DAYS_TEXT
private Text
RealmsSubscriptionInfoScreen.daysLeft
private final Text
RealmsSelectFileToUploadScreen.WorldListEntry.details
RealmsDownloadLatestWorldScreen.downloadError
private final Text
RealmsDownloadLatestWorldScreen.downloadTitle
private static final Text
RealmsSlotOptionsScreen.EDIT_SLOT_NAME
RealmsInviteScreen.errorMessage
RealmsLongRunningMcoTaskScreen.errorMessage
(package private) static final Text
RealmsMainScreen.EXPIRED_LIST_TEXT
(package private) static final Text
RealmsMainScreen.EXPIRED_RENEW_TEXT
(package private) static final Text
RealmsMainScreen.EXPIRED_SUBSCRIBE_TEXT
private static final Text
RealmsConfigureWorldScreen.EXPIRED_TEXT
private static final Text
RealmsMainScreen.EXPIRED_TEXT
private static final Text
RealmsSubscriptionInfoScreen.EXPIRED_TEXT
(package private) static final Text
RealmsMainScreen.EXPIRED_TRIAL_TEXT
private static final Text
RealmsConfigureWorldScreen.EXPIRES_IN_A_DAY_TEXT
private static final Text
RealmsMainScreen.EXPIRES_IN_A_DAY_TEXT
private static final Text
RealmsSubscriptionInfoScreen.EXPIRES_IN_LESS_THAN_A_DAY_TEXT
private static final Text
RealmsConfigureWorldScreen.EXPIRES_SOON_TEXT
private static final Text
RealmsMainScreen.EXPIRES_SOON_TEXT
(package private) static final Text
RealmsSelectFileToUploadScreen.HARDCORE_TEXT
private static final Text[]
RealmsClientOutdatedScreen.INCOMPATIBLE_LINES
private static final Text[]
RealmsClientOutdatedScreen.INCOMPATIBLE_LINES_UNSTABLE
private static final Text
RealmsClientOutdatedScreen.INCOMPATIBLE_TITLE
(package private) static final Text
RealmsSelectWorldTemplateScreen.INFO_TOOLTIP
private static final Text
RealmsInviteScreen.INVITE_PROFILE_NAME_TEXT
private static final Text
RealmsPlayerScreen.INVITED_TEXT
private static final Text
RealmsMainScreen.LEAVE_TEXT
private final Text
RealmsLongConfirmationScreen.line2
private final Text
RealmsLongConfirmationScreen.line3
private final Text[]
RealmsBrokenWorldScreen.message
(package private) static final Text
RealmsMainScreen.MINIGAME_TEXT
private static final Text
RealmsSubscriptionInfoScreen.MONTH_TEXT
private static final Text
RealmsSubscriptionInfoScreen.MONTHS_TEXT
private static final Text
RealmsMainScreen.NEWS_TEXT
private static final Text
RealmsBackupScreen.NO_BACKUPS_TEXT
(package private) static final Text
RealmsMainScreen.NO_PENDING_TEXT
private static final Text
RealmsPendingInvitesScreen.NO_PENDING_TEXT
private static final Text
RealmsPlayerScreen.NORMAL_TOOLTIP
private static final Text
RealmsConfigureWorldScreen.OPEN_TEXT
private static final Text
RealmsMainScreen.OPEN_TEXT
private static final Text
RealmsPlayerScreen.OPERATOR_TOOLTIP
private final Text
RealmsResetNormalWorldScreen.parentTitle
(package private) static final Text
RealmsMainScreen.PENDING_TEXT
private static final Text
RealmsInviteScreen.PLAYER_ERROR_TEXT
private static final Text
RealmsMainScreen.POPUP_TEXT
private static final Text
RealmsParentalConsentScreen.PRIVACY_INFO_TEXT
private final Text
DisconnectedRealmsScreen.reason
(package private) static final Text
RealmsPendingInvitesScreen.REJECT_TEXT
private static final Text
RealmsPlayerScreen.REMOVE_TOOLTIP
private static final Text
RealmsResetNormalWorldScreen.RESET_SEED_TEXT
private Text
RealmsResetWorldScreen.resetTitle
(package private) static final Text
RealmsBackupScreen.RESTORE_TEXT
private static final Text
RealmsTermsScreen.SENTENCE_ONE_TEXT
private static final Text
RealmsTermsScreen.SENTENCE_TWO_TEXT
(package private) static final Text
RealmsSlotOptionsScreen.SPAWN_PROTECTION
private static final Text
RealmsSlotOptionsScreen.SPAWN_TOGGLE_TITLE
private Text
RealmsSubscriptionInfoScreen.startDate
private Text
RealmsDownloadLatestWorldScreen.status
private Text
RealmsUploadScreen.status
RealmsUploadScreen.statusTexts
private static final Text
RealmsSubscriptionInfoScreen.SUBSCRIPTION_START_LABEL_TEXT
private static final Text
RealmsSubscriptionInfoScreen.SUBSCRIPTION_TITLE
private Text
RealmsResetWorldScreen.subtitle
final Text
RealmsLongConfirmationScreen.Type.text
private final Text
RealmsWorldGeneratorType.text
private static final Text
RealmsSubscriptionInfoScreen.TIME_LEFT_LABEL_TEXT
private Text
RealmsLongRunningMcoTaskScreen.title
private static final Text
RealmsTermsScreen.TITLE
private final Text
RealmsConfirmScreen.title1
private final Text
RealmsConfirmScreen.title2
RealmsBackupScreen.tooltip
RealmsConfigureWorldScreen.tooltip
RealmsPendingInvitesScreen.tooltip
RealmsPlayerScreen.tooltip
RealmsSelectWorldTemplateScreen.tooltip
(package private) static final Text
RealmsSelectWorldTemplateScreen.TRAILER_TOOLTIP
(package private) static final Text
RealmsMainScreen.TRIAL_NARRATION
(package private) static final Text
RealmsMainScreen.UNINITIALIZED_BUTTON_NARRATION
(package private) static final Text
RealmsMainScreen.UNINITIALIZED_TEXT
private static final Text
RealmsBackupInfoScreen.UNKNOWN
private static final Text
RealmsSubscriptionInfoScreen.UNKNOWN_TEXT
private static final Text
RealmsUploadScreen.VERIFYING_TEXT
RealmsSelectWorldTemplateScreen.warning
private static final Text
RealmsCreateRealmScreen.WORLD_DESCRIPTION_TEXT
private static final Text
RealmsSettingsScreen.WORLD_DESCRIPTION_TEXT
(package private) static final Text
RealmsSelectFileToUploadScreen.WORLD_LANG
private static final Text
RealmsCreateRealmScreen.WORLD_NAME_TEXT
private static final Text
RealmsSettingsScreen.WORLD_NAME_TEXT
private static final Text
RealmsConfigureWorldScreen.WORLDS_TITLE
Modifier and TypeFieldDescriptionRealmsGenericErrorScreen.errorMessages
RealmsGenericErrorScreen.errorMessages
RealmsMainScreen.tooltip
RealmsMainScreen.TRIAL_MESSAGE_LINES
Modifier and TypeMethodDescription(package private) Text
RealmsBackupInfoScreen.checkForSpecificMetadata
(String key, String value) private Text
RealmsSubscriptionInfoScreen.daysLeftPresentation
(int daysLeft) private Text
RealmsBackupInfoScreen.gameDifficultyMetadata
(String value) private Text
RealmsBackupInfoScreen.gameModeMetadata
(String value) (package private) static Text
RealmsSelectFileToUploadScreen.getGameModeName
(LevelSummary summary) private Text[]
RealmsClientOutdatedScreen.getLines()
DisconnectedRealmsScreen.getNarratedTitle()
RealmsBrokenWorldScreen.getNarratedTitle()
RealmsGenericErrorScreen.getNarratedTitle()
RealmsLongConfirmationScreen.getNarratedTitle()
RealmsParentalConsentScreen.getNarratedTitle()
RealmsResetWorldScreen.getNarratedTitle()
RealmsSelectFileToUploadScreen.getNarratedTitle()
RealmsSelectWorldTemplateScreen.getNarratedTitle()
RealmsSlotOptionsScreen.getNarratedTitle()
RealmsSubscriptionInfoScreen.getNarratedTitle()
RealmsTermsScreen.getNarratedTitle()
RealmsBackupInfoScreen.BackupInfoListEntry.getNarration()
RealmsBackupScreen.BackupObjectSelectionListEntry.getNarration()
private Text
RealmsDownloadLatestWorldScreen.getNarration()
RealmsMainScreen.RealmSelectionListEntry.getNarration()
RealmsMainScreen.RealmSelectionListTrialEntry.getNarration()
RealmsPendingInvitesScreen.PendingInvitationSelectionListEntry.getNarration()
RealmsPlayerScreen.InvitedObjectSelectionListEntry.getNarration()
RealmsSelectFileToUploadScreen.WorldListEntry.getNarration()
RealmsSelectWorldTemplateScreen.WorldTemplateObjectSelectionListEntry.getNarration()
private Text
RealmsUploadScreen.getNarration()
RealmsWorldGeneratorType.getText()
private static Text
RealmsSubscriptionInfoScreen.localPresentation
(long time) RealmsScreen.narrateLabels()
Modifier and TypeMethodDescriptionRealmsGenericErrorScreen.getErrorMessages
(RealmsServiceException exception) RealmsGenericErrorScreen.getErrorMessages
(RealmsServiceException exception) RealmsGenericErrorScreen.getErrorMessages
(Text description) RealmsGenericErrorScreen.getErrorMessages
(Text description) RealmsGenericErrorScreen.getErrorMessages
(Text title, Text description) RealmsGenericErrorScreen.getErrorMessages
(Text title, Text description) Modifier and TypeMethodDescription(package private) void
RealmsResetWorldScreen.drawFrame
(MatrixStack matrices, int x, int y, Text text, Identifier texture, boolean hovered, boolean mouseOver) void
RealmsGenericErrorScreen.getErrorMessages
(Text description) RealmsGenericErrorScreen.getErrorMessages
(Text title, Text description) RealmsSlotOptionsScreen.getSpawnToggleButtonCallback
(Text text, Consumer<Boolean> valueSetter) protected void
RealmsBackupScreen.renderMousehoverTooltip
(MatrixStack matrices, @Nullable Text text, int mouseX, int mouseY) protected void
RealmsConfigureWorldScreen.renderMousehoverTooltip
(MatrixStack matrices, @Nullable Text text, int mouseX, int mouseY) protected void
RealmsPendingInvitesScreen.renderMousehoverTooltip
(MatrixStack matrices, @Nullable Text tooltip, int mouseX, int mouseY) protected void
RealmsPlayerScreen.renderMousehoverTooltip
(MatrixStack matrices, @Nullable Text tooltip, int mouseX, int mouseY) protected void
RealmsSelectWorldTemplateScreen.renderMousehoverTooltip
(MatrixStack matrices, @Nullable Text tooltip, int mouseX, int mouseY) void
RealmsResetWorldScreen.setResetTitle
(Text resetTitle) private void
RealmsUploadScreen.setStatusTexts
(Text[] statusTexts) void
(package private) void
RealmsMainScreen.setTooltips
(Text[] tooltips) void
RealmsSelectWorldTemplateScreen.setWarning
(Text[] warning) private void
Modifier and TypeMethodDescriptionprotected void
RealmsMainScreen.renderMousehoverTooltip
(MatrixStack matrices, List<Text> tooltips, int x, int y) ModifierConstructorDescriptionDisconnectedRealmsScreen
(Screen parent, Text title, Text reason) FrameButton
(int x, int y, Text message, Identifier image, ButtonWidget.PressAction onPress) RealmsConfirmScreen
(BooleanConsumer callback, Text title1, Text title2) RealmsGenericErrorScreen
(Text description, Screen parent) RealmsGenericErrorScreen
(Text title, Text description, Screen parent) RealmsLongConfirmationScreen
(BooleanConsumer callback, RealmsLongConfirmationScreen.Type type, Text line2, Text line3, boolean yesNoQuestion) RealmsResetNormalWorldScreen
(Consumer<ResetWorldInfo> callback, Text parentTitle) RealmsResetWorldScreen
(Screen parent, RealmsServer server, Text title, Runnable resetCallback, Runnable selectFileUploadCallback) RealmsResetWorldScreen
(Screen parent, RealmsServer server, Text title, Text subtitle, int subtitleColor, Text buttonTitle, Runnable resetCallback, Runnable selectFileUploadCallback) RealmsScreen
(Text title) RealmsSelectWorldTemplateScreen
(Text title, Consumer<WorldTemplate> callback, RealmsServer.WorldType worldType) RealmsSelectWorldTemplateScreen
(Text title, Consumer<WorldTemplate> callback, RealmsServer.WorldType worldType, @Nullable WorldTemplatePaginatedList templateList) private
RealmsWorldGeneratorType
(int id, Text text) -
Uses of Text in net.minecraft.client.realms.task
Modifier and TypeMethodDescriptionvoid
void
ModifierConstructorDescriptionResettingNormalWorldTask
(ResetWorldInfo info, long serverId, Text title, Runnable callback) ResettingWorldTask
(long serverId, Text title, Runnable callback) ResettingWorldTemplateTask
(WorldTemplate template, long serverId, Text title, Runnable callback) -
Uses of Text in net.minecraft.client.realms.util
-
Uses of Text in net.minecraft.client.render.entity
Modifier and TypeMethodDescriptionprotected void
EntityRenderer.renderLabelIfPresent
(T entity, Text text, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light) protected void
ItemFrameEntityRenderer.renderLabelIfPresent
(T t, Text text, MatrixStack matrixStack, VertexConsumerProvider vertexConsumerProvider, int int2) protected void
PlayerEntityRenderer.renderLabelIfPresent
(AbstractClientPlayerEntity abstractClientPlayerEntity, Text text, MatrixStack matrixStack, VertexConsumerProvider vertexConsumerProvider, int int2) -
Uses of Text in net.minecraft.client.resource
Modifier and TypeFieldDescriptionprivate static final Text
ClientBuiltinResourcePackProvider.APPLYING_PACK_TEXT
-
Uses of Text in net.minecraft.client.sound
-
Uses of Text in net.minecraft.client.toast
Modifier and TypeFieldDescriptionTutorialToast.description
private static final Text
RecipeToast.DESCRIPTION
private Text
SystemToast.title
private final Text
TutorialToast.title
private static final Text
RecipeToast.TITLE
Modifier and TypeMethodDescriptionstatic void
SystemToast.add
(ToastManager manager, SystemToast.Type type, Text title, @Nullable Text description) static SystemToast
SystemToast.create
(MinecraftClient client, SystemToast.Type type, Text title, Text description) private static ImmutableList<OrderedText>
SystemToast.getTextAsList
(@Nullable Text text) void
SystemToast.setContent
(Text title, @Nullable Text description) static void
SystemToast.show
(ToastManager manager, SystemToast.Type type, Text title, @Nullable Text description) ModifierConstructorDescriptionSystemToast
(SystemToast.Type type, Text title, @Nullable Text description) private
SystemToast
(SystemToast.Type type, Text title, List<OrderedText> lines, int width) TutorialToast
(TutorialToast.Type type, Text title, @Nullable Text description, boolean hasProgressBar) -
Uses of Text in net.minecraft.client.tutorial
Modifier and TypeFieldDescriptionprivate static final Text
CraftPlanksTutorialStepHandler.DESCRIPTION
private static final Text
FindTreeTutorialStepHandler.DESCRIPTION
private static final Text
OpenInventoryTutorialStepHandler.DESCRIPTION
private static final Text
PunchTreeTutorialStepHandler.DESCRIPTION
private static final Text
MovementTutorialStepHandler.LOOK_DESCRIPTION
private static final Text
MovementTutorialStepHandler.LOOK_TITLE
private static final Text
MovementTutorialStepHandler.MOVE_DESCRIPTION
private static final Text
MovementTutorialStepHandler.MOVE_TITLE
private static final Text
CraftPlanksTutorialStepHandler.TITLE
private static final Text
FindTreeTutorialStepHandler.TITLE
private static final Text
OpenInventoryTutorialStepHandler.TITLE
private static final Text
PunchTreeTutorialStepHandler.TITLE
-
Uses of Text in net.minecraft.client.util
Modifier and TypeFieldDescriptionInputUtil.Key.localizedText
(package private) final BiFunction<Integer,
String, Text> InputUtil.Type.textTranslator
Modifier and TypeMethodDescriptionvoid
void
NarratorManager.onChatMessage
(MessageType type, Text message, @Nullable MessageSender sender) Called when a message is received.Modifier and TypeMethodDescriptionstatic void
ScreenshotRecorder.saveScreenshot
(File gameDirectory, @Nullable String fileName, Framebuffer framebuffer, Consumer<Text> messageReceiver) static void
ScreenshotRecorder.saveScreenshot
(File gameDirectory, Framebuffer framebuffer, Consumer<Text> messageReceiver) private static void
ScreenshotRecorder.saveScreenshotInner
(File gameDirectory, @Nullable String fileName, Framebuffer framebuffer, Consumer<Text> messageReceiver) -
Uses of Text in net.minecraft.command
Modifier and TypeFieldDescriptionfinal Text
EntitySelectorOptions.SelectorOption.description
private final Text
CommandException.message
Modifier and TypeMethodDescriptionBlockDataObject.feedbackGet
(NbtPathArgumentType.NbtPath path, double scale, int result) DataCommandObject.feedbackGet
(NbtPathArgumentType.NbtPath path, double scale, int result) EntityDataObject.feedbackGet
(NbtPathArgumentType.NbtPath path, double scale, int result) StorageDataObject.feedbackGet
(NbtPathArgumentType.NbtPath path, double scale, int result) BlockDataObject.feedbackModify()
DataCommandObject.feedbackModify()
EntityDataObject.feedbackModify()
StorageDataObject.feedbackModify()
BlockDataObject.feedbackQuery
(NbtElement element) DataCommandObject.feedbackQuery
(NbtElement element) EntityDataObject.feedbackQuery
(NbtElement element) StorageDataObject.feedbackQuery
(NbtElement element) static Text
CommandException.getTextMessage()
Modifier and TypeMethodDescriptionprivate static void
EntitySelectorOptions.putOption
(String id, EntitySelectorOptions.SelectorHandler handler, Predicate<EntitySelectorReader> condition, Text description) ModifierConstructorDescriptionCommandException
(Text message) (package private)
SelectorOption
(EntitySelectorOptions.SelectorHandler handler, Predicate<EntitySelectorReader> condition, Text description) -
Uses of Text in net.minecraft.command.argument
Modifier and TypeFieldDescriptionprivate final Text
MessageArgumentType.SignedMessage.formatted
The field for theformatted
record component.Modifier and TypeMethodDescription(package private) Text
MessageArgumentType.MessageFormat.format
(ServerCommandSource source) MessageArgumentType.MessageFormat.format
(ServerCommandSource source, boolean canUseSelectors) MessageArgumentType.MessageSelector.format
(ServerCommandSource source) MessageArgumentType.SignedMessage.formatted()
Returns the value of theformatted
record component.static Text
MessageArgumentType.getMessage
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) static Text
TextArgumentType.getTextArgument
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) TextArgumentType.parse
(com.mojang.brigadier.StringReader stringReader) MessageArgumentType.toText
(MessageArgumentType.MessageFormat messageFormat) Modifier and TypeMethodDescriptiondefault @Nullable CompletableFuture<Text>
DecoratableArgumentType.decorate
(com.mojang.brigadier.context.CommandContextBuilder<ServerCommandSource> builder, String argumentName) static @Nullable CompletableFuture<Text>
DecoratableArgumentType.decorate
(com.mojang.brigadier.tree.ArgumentCommandNode<?, ?> node, com.mojang.brigadier.context.CommandContextBuilder<ServerCommandSource> builder) DecoratableArgumentType.decorate
(ServerCommandSource source, T format) MessageArgumentType.decorate
(ServerCommandSource serverCommandSource, MessageArgumentType.MessageFormat messageFormat) (package private) CompletableFuture<Text>
MessageArgumentType.MessageFormat.decorate
(ServerCommandSource source) private CompletableFuture<FilteredMessage<Text>>
MessageArgumentType.SignedMessage.filter
(ServerCommandSource source, Text message) Modifier and TypeMethodDescriptionprivate CompletableFuture<FilteredMessage<Text>>
MessageArgumentType.SignedMessage.filter
(ServerCommandSource source, Text message) ModifierConstructorDescriptionSignedMessage
(String string, Text text, MessageSignature messageSignature, boolean bool) -
Uses of Text in net.minecraft.enchantment
-
Uses of Text in net.minecraft.entity
Modifier and TypeFieldDescriptionprivate static final TrackedData<Optional<Text>>
Entity.CUSTOM_NAME
Modifier and TypeMethodDescriptionEntity.getCustomName()
protected Text
Entity.getDefaultName()
Entity.getDisplayName()
Entity.getName()
EntityType.getName()
ItemEntity.getName()
private static Text
Entity.removeClickEvents
(Text textComponent) Modifier and TypeMethodDescriptionEntityType.create
(ServerWorld world, @Nullable NbtCompound itemNbt, @Nullable Text name, @Nullable PlayerEntity player, BlockPos pos, SpawnReason spawnReason, boolean alignPosition, boolean invertY) private static Text
Entity.removeClickEvents
(Text textComponent) void
Entity.sendMessage
(Text message) Sends a system message.void
Entity.setCustomName
(@Nullable Text name) EntityType.spawn
(ServerWorld world, @Nullable NbtCompound itemNbt, @Nullable Text name, @Nullable PlayerEntity player, BlockPos pos, SpawnReason spawnReason, boolean alignPosition, boolean invertY) -
Uses of Text in net.minecraft.entity.boss
Modifier and TypeMethodDescriptionBossBarManager.add
(Identifier id, Text displayName) void
WitherEntity.setCustomName
(@Nullable Text name) void
void
ModifierConstructorDescriptionBossBar
(UUID uuid, Text name, BossBar.Color color, BossBar.Style style) CommandBossBar
(Identifier id, Text displayName) ServerBossBar
(Text displayName, BossBar.Color color, BossBar.Style style) -
Uses of Text in net.minecraft.entity.damage
Modifier and TypeMethodDescriptionDamageRecord.getAttackerName()
BadRespawnPointDamageSource.getDeathMessage
(LivingEntity entity) DamageSource.getDeathMessage
(LivingEntity entity) DamageTracker.getDeathMessage()
EntityDamageSource.getDeathMessage
(LivingEntity entity) ProjectileDamageSource.getDeathMessage
(LivingEntity entity) -
Uses of Text in net.minecraft.entity.data
Modifier and TypeFieldDescriptionstatic final TrackedDataHandler<Optional<Text>>
TrackedDataHandlerRegistry.OPTIONAL_TEXT_COMPONENT
static final TrackedDataHandler<Text>
TrackedDataHandlerRegistry.TEXT_COMPONENT
-
Uses of Text in net.minecraft.entity.effect
-
Uses of Text in net.minecraft.entity.mob
-
Uses of Text in net.minecraft.entity.passive
-
Uses of Text in net.minecraft.entity.player
Modifier and TypeMethodDescriptionPlayerEntity.getDisplayName()
PlayerEntity.SleepFailureReason.getMessage()
Returns the action bar message that is sent to the player when sleeping fails with this reason.PlayerEntity.getName()
PlayerInventory.getName()
Modifier and TypeMethodDescriptionvoid
PlayerEntity.sendMessage
(Text message, boolean actionBar) Adds a message to this player's HUD. -
Uses of Text in net.minecraft.entity.vehicle
Modifier and TypeFieldDescription(package private) static final TrackedData<Text>
CommandBlockMinecartEntity.LAST_OUTPUT
-
Uses of Text in net.minecraft.item
Modifier and TypeMethodDescriptionprivate static Text
FireworkStarItem.appendColors
(MutableText line, int[] colors) private static Text
FireworkStarItem.getColorText
(int color) ItemGroup.getDisplayName()
Item.getName()
ItemStack.getName()
ItemStack.toHoverableText()
Modifier and TypeMethodDescriptionItemStack.getTooltip
(@Nullable PlayerEntity player, TooltipContext context) private static Collection<Text>
ItemStack.parseBlockTag
(String tag) Modifier and TypeMethodDescriptionprivate static void
DebugStickItem.sendMessage
(PlayerEntity player, Text message) ItemStack.setCustomName
(@Nullable Text name) Modifier and TypeMethodDescriptionstatic void
BannerItem.appendBannerTooltip
(ItemStack stack, List<Text> tooltip) static void
ItemStack.appendEnchantments
(List<Text> tooltip, NbtList enchantments) static void
FireworkStarItem.appendFireworkTooltip
(NbtCompound nbt, List<Text> tooltip) void
AirBlockItem.appendTooltip
(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context) void
BannerItem.appendTooltip
(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context) void
BannerPatternItem.appendTooltip
(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context) void
BlockItem.appendTooltip
(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context) void
BundleItem.appendTooltip
(ItemStack stack, World world, List<Text> tooltip, TooltipContext context) void
CrossbowItem.appendTooltip
(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context) void
DiscFragmentItem.appendTooltip
(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context) void
EnchantedBookItem.appendTooltip
(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context) void
EntityBucketItem.appendTooltip
(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context) void
FilledMapItem.appendTooltip
(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context) void
FireworkRocketItem.appendTooltip
(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context) void
FireworkStarItem.appendTooltip
(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context) void
GoatHornItem.appendTooltip
(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context) void
Item.appendTooltip
(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context) void
LingeringPotionItem.appendTooltip
(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context) void
MusicDiscItem.appendTooltip
(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context) void
PotionItem.appendTooltip
(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context) void
ShieldItem.appendTooltip
(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context) void
TippedArrowItem.appendTooltip
(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context) void
WrittenBookItem.appendTooltip
(ItemStack stack, @Nullable World world, List<Text> tooltip, TooltipContext context) -
Uses of Text in net.minecraft.item.map
Modifier and TypeMethodDescriptionprivate void
MapState.addIcon
(MapIcon.Type type, @Nullable WorldAccess world, String key, double x, double z, double rotation, @Nullable Text text) ModifierConstructorDescriptionMapBannerMarker
(BlockPos pos, DyeColor dyeColor, @Nullable Text name) MapIcon
(MapIcon.Type type, byte x, byte z, byte rotation, @Nullable Text text) -
Uses of Text in net.minecraft.loot.function
Modifier and TypeMethodDescriptionstatic UnaryOperator<Text>
SetNameLootFunction.applySourceEntity
(LootContext context, LootContext.EntityTarget sourceEntity) Modifier and TypeMethodDescriptionstatic ConditionalLootFunction.Builder<?>
static ConditionalLootFunction.Builder<?>
SetNameLootFunction.builder
(Text name, LootContext.EntityTarget target) ModifierConstructorDescription(package private)
SetNameLootFunction
(LootCondition[] conditions, @Nullable Text name, LootContext.EntityTarget entity) ModifierConstructorDescriptionSetLoreLootFunction
(LootCondition[] conditions, boolean replace, List<Text> lore, LootContext.EntityTarget entity) -
Uses of Text in net.minecraft.nbt
Modifier and TypeMethodDescriptionstatic Text
NbtHelper.toPrettyPrintedText
(NbtElement element) Returns the pretty-printed text representation ofelement
. -
Uses of Text in net.minecraft.nbt.visitor
Modifier and TypeMethodDescriptionNbtTextFormatter.apply
(NbtElement element) Returns the textified NBTelement
.protected static Text
NbtTextFormatter.escapeName
(String name) -
Uses of Text in net.minecraft.network
Modifier and TypeFieldDescriptionprivate Text
ClientConnection.disconnectReason
private static final Text
RateLimitedConnection.RATE_LIMIT_EXCEEDED_MESSAGE
Modifier and TypeMethodDescriptionClientConnection.getDisconnectReason()
PacketByteBuf.readText()
Reads a text from this buf.Modifier and TypeMethodDescriptionvoid
ClientConnection.disconnect
(Text disconnectReason) Writes a text to this buf. -
Uses of Text in net.minecraft.network.listener
Modifier and TypeMethodDescriptionvoid
PacketListener.onDisconnected
(Text reason) Called when the connection this listener listens to has disconnected. -
Uses of Text in net.minecraft.network.message
Modifier and TypeFieldDescriptionprivate final Text
MessageSender.name
The field for thename
record component.private final Text
SignedMessage.signedContent
The field for thesignedContent
record component.MessageSender.teamName
The field for theteamName
record component.Modifier and TypeFieldDescriptionSignedMessage.unsignedContent
The field for theunsignedContent
record component.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.SignedMessage.getContent()
Returns the content of the message.MessageSender.name()
Returns the value of thename
record component.private static <T> Text
ArgumentSignatureDataMap.resultToText
(TextConvertibleArgumentType<T> type, com.mojang.brigadier.context.ParsedArgument<?, ?> argument) SignedMessage.signedContent()
Returns the value of thesignedContent
record component.MessageSender.teamName()
Returns the value of theteamName
record component.Modifier and TypeMethodDescriptionArgumentSignatureDataMap.collectArguments
(com.mojang.brigadier.context.CommandContextBuilder<?> builder) Returns the signable argument names and their values frombuilder
.MessageDecorator.decorate
(@Nullable ServerPlayerEntity sender, Text message) Returns the decoratedmessage
.default CompletableFuture<FilteredMessage<Text>>
MessageDecorator.decorateFiltered
(@Nullable ServerPlayerEntity sender, FilteredMessage<Text> message) Returns the decorated filtered message from undecoratedmessage
.SignedMessage.unsignedContent()
Returns the value of theunsignedContent
record component.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.MessageDecorator.decorate
(@Nullable ServerPlayerEntity sender, Text message) Returns the decoratedmessage
.static MessageSender
static SignedMessage
Returns a new signed chat message withsignedContent
and "none" signature.static SignedMessage
SignedMessage.of
(Text signedContent, MessageSignature signature) Returns a new signed chat message withsignedContent
andsignature
.static SignedMessage
SignedMessage.of
(Text originalContent, Text decoratedContent, MessageSignature signature, boolean previewed) Returns a new signed chat message from the content supplied by the chat decorator.Returns the chat message signature obtained by signingmessage
withsignature
.private static byte[]
MessageSignature.toByteArray
(Text message) static void
MessageSignature.updateSignature
(SignatureUpdatable.SignatureUpdater updater, Text message, UUID sender, Instant time, long salt) Updatesupdater
with the passed parameters.boolean
MessageSignature.verify
(SignatureVerifier verifier, Text message) Returns whethermessage
can be verified with this signature.MessageSender.withTeamName
(Text teamName) SignedMessage.withUnsigned
(Text unsignedContent) Returns the new signed chat message withunsignedContent
added.Modifier and TypeMethodDescriptiondefault CompletableFuture<FilteredMessage<SignedMessage>>
MessageDecorator.decorateChat
(@Nullable ServerPlayerEntity sender, FilteredMessage<Text> message, MessageSignature signature, boolean previewed) Returns the decorated signed chat message from undecoratedmessage
.default CompletableFuture<FilteredMessage<Text>>
MessageDecorator.decorateFiltered
(@Nullable ServerPlayerEntity sender, FilteredMessage<Text> message) Returns the decorated filtered message from undecoratedmessage
.static FilteredMessage<SignedMessage>
SignedMessage.toSignedMessage
(FilteredMessage<Text> original, FilteredMessage<Text> decorated, MessageSignature signature, boolean preview) ModifierConstructorDescriptionMessageSender
(UUID uuid, Text name) MessageSender
(UUID uUID, Text text, @Nullable Text text2) SignedMessage
(Text text, MessageSignature messageSignature, Optional<Text> optional) ModifierConstructorDescriptionSignedMessage
(Text text, MessageSignature messageSignature, Optional<Text> optional) -
Uses of Text in net.minecraft.network.packet.s2c.login
-
Uses of Text in net.minecraft.network.packet.s2c.play
Modifier and TypeFieldDescriptionprivate final Text
GameMessageS2CPacket.content
The field for thecontent
record component.PlayerListS2CPacket.Entry.displayName
private final Text
ScoreboardObjectiveUpdateS2CPacket.displayName
private final Text
TeamS2CPacket.SerializableTeam.displayName
private final Text
PlayerListHeaderS2CPacket.footer
private final Text
PlayerListHeaderS2CPacket.header
private final Text
DeathMessageS2CPacket.message
private final Text
OverlayMessageS2CPacket.message
private final Text
BossBarS2CPacket.AddAction.name
private final Text
BossBarS2CPacket.UpdateNameAction.name
private final Text
OpenScreenS2CPacket.name
private final Text
TeamS2CPacket.SerializableTeam.prefix
ChatPreviewS2CPacket.preview
The field for thepreview
record component.ResourcePackSendS2CPacket.prompt
private final Text
DisconnectS2CPacket.reason
private final Text
ChatMessageS2CPacket.signedContent
The field for thesignedContent
record component.private final Text
SubtitleS2CPacket.subtitle
private final Text
TeamS2CPacket.SerializableTeam.suffix
private final Text
TitleS2CPacket.title
Modifier and TypeFieldDescriptionServerMetadataS2CPacket.description
ChatMessageS2CPacket.unsignedContent
The field for theunsignedContent
record component.Modifier and TypeMethodDescriptionGameMessageS2CPacket.content()
Returns the value of thecontent
record component.PlayerListS2CPacket.Entry.getDisplayName()
ScoreboardObjectiveUpdateS2CPacket.getDisplayName()
TeamS2CPacket.SerializableTeam.getDisplayName()
PlayerListHeaderS2CPacket.getFooter()
PlayerListHeaderS2CPacket.getHeader()
DeathMessageS2CPacket.getMessage()
OverlayMessageS2CPacket.getMessage()
OpenScreenS2CPacket.getName()
TeamS2CPacket.SerializableTeam.getPrefix()
ResourcePackSendS2CPacket.getPrompt()
DisconnectS2CPacket.getReason()
SubtitleS2CPacket.getSubtitle()
TeamS2CPacket.SerializableTeam.getSuffix()
TitleS2CPacket.getTitle()
ChatPreviewS2CPacket.preview()
Returns the value of thepreview
record component.ChatMessageS2CPacket.signedContent()
Returns the value of thesignedContent
record component.Modifier and TypeMethodDescriptionServerMetadataS2CPacket.getDescription()
ChatMessageS2CPacket.unsignedContent()
Returns the value of theunsignedContent
record component.Modifier and TypeMethodDescriptiondefault void
BossBarS2CPacket.Consumer.add
(UUID uuid, Text name, float percent, BossBar.Color color, BossBar.Style style, boolean darkenSky, boolean dragonMusic, boolean thickenFog) default void
BossBarS2CPacket.Consumer.updateName
(UUID uuid, Text name) ModifierConstructorDescriptionChatMessageS2CPacket
(Text text, Optional<Text> optional, int int2, MessageSender messageSender, Instant instant, NetworkEncryptionUtils.SignatureData signatureData) ChatPreviewS2CPacket
(int int2, Text text) DeathMessageS2CPacket
(int entityId, int killerId, Text message) DeathMessageS2CPacket
(DamageTracker damageTracker, Text message) DisconnectS2CPacket
(Text reason) Entry
(com.mojang.authlib.GameProfile profile, int latency, @Nullable GameMode gameMode, @Nullable Text displayName, PlayerPublicKey.PublicKeyData publicKeyData) GameMessageS2CPacket
(Text text, int int2) OpenScreenS2CPacket
(int syncId, ScreenHandlerType<?> type, Text name) OverlayMessageS2CPacket
(Text message) PlayerListHeaderS2CPacket
(Text header, Text footer) ResourcePackSendS2CPacket
(String url, String hash, boolean required, @Nullable Text prompt) ServerMetadataS2CPacket
(@Nullable Text description, @Nullable String favicon, boolean previewsChat) SubtitleS2CPacket
(Text subtitle) TitleS2CPacket
(Text title) (package private)
UpdateNameAction
(Text name) ModifierConstructorDescriptionChatMessageS2CPacket
(Text text, Optional<Text> optional, int int2, MessageSender messageSender, Instant instant, NetworkEncryptionUtils.SignatureData signatureData) -
Uses of Text in net.minecraft.potion
Modifier and TypeMethodDescriptionstatic void
PotionUtil.buildTooltip
(ItemStack stack, List<Text> list, float durationMultiplier) -
Uses of Text in net.minecraft.resource
Modifier and TypeFieldDescriptionprivate final Text
ResourcePackCompatibility.confirmMessage
private final Text
ResourcePackProfile.description
private final Text
ResourcePackProfile.displayName
private final Text
ResourcePackCompatibility.notification
Modifier and TypeMethodDescriptionResourcePackCompatibility.getConfirmMessage()
ResourcePackProfile.getDescription()
ResourcePackProfile.getDisplayName()
ResourcePackProfile.getInformationText
(boolean enabled) ResourcePackCompatibility.getNotification()
Modifier and TypeMethodDescriptionResourcePackProfile.Factory.create
(String name, Text displayName, boolean alwaysEnabled, Supplier<ResourcePack> packFactory, PackResourceMetadata metadata, ResourcePackProfile.InsertionPosition initialPosition, ResourcePackSource source) Creates a proper resource pack profile from the given parameters.ModifierConstructorDescriptionResourcePackProfile
(String name, boolean alwaysEnabled, Supplier<ResourcePack> packFactory, Text displayName, Text description, ResourcePackCompatibility compatibility, ResourcePackProfile.InsertionPosition direction, boolean pinned, ResourcePackSource source) ResourcePackProfile
(String name, Text displayName, boolean alwaysEnabled, Supplier<ResourcePack> packFactory, PackResourceMetadata metadata, ResourceType type, ResourcePackProfile.InsertionPosition direction, ResourcePackSource source) -
Uses of Text in net.minecraft.resource.metadata
-
Uses of Text in net.minecraft.scoreboard
Modifier and TypeFieldDescriptionprivate Text
ScoreboardObjective.bracketedDisplayName
private Text
ScoreboardObjective.displayName
private Text
Team.displayName
private Text
Team.prefix
private Text
Team.suffix
Modifier and TypeMethodDescriptionprivate Text
ScoreboardObjective.generateBracketedDisplayName()
AbstractTeam.CollisionRule.getDisplayName()
AbstractTeam.VisibilityRule.getDisplayName()
ScoreboardObjective.getDisplayName()
Team.getDisplayName()
Team.getPrefix()
Team.getSuffix()
ScoreboardObjective.toHoverableText()
Modifier and TypeMethodDescriptionScoreboard.addObjective
(String name, ScoreboardCriterion criterion, Text displayName, ScoreboardCriterion.RenderType renderType) abstract MutableText
AbstractTeam.decorateName
(Text name) Decorates the name of an entity with the prefix, suffix and color of this team.static MutableText
Team.decorateName
(@Nullable AbstractTeam team, Text name) Decorates the name of an entity with the prefix, suffix and color of the team.Team.decorateName
(Text name) Decorates the name of an entity with the prefix, suffix and color of this team.void
ScoreboardObjective.setDisplayName
(Text name) void
Team.setDisplayName
(Text displayName) void
void
ModifierConstructorDescriptionScoreboardObjective
(Scoreboard scoreboard, String name, ScoreboardCriterion criterion, Text displayName, ScoreboardCriterion.RenderType renderType) -
Uses of Text in net.minecraft.screen
Modifier and TypeFieldDescriptionstatic final Text
ScreenTexts.BACK
static final Text
ScreenTexts.CANCEL
static final Text
ScreenTexts.CONNECT_FAILED
static final Text
ScreenTexts.DONE
static final Text
ScreenTexts.EMPTY
static final Text
ScreenTexts.LINE_BREAK
private final Text
SimpleNamedScreenHandlerFactory.name
static final Text
ScreenTexts.NO
static final Text
ScreenTexts.OFF
static final Text
ScreenTexts.ON
static final Text
ScreenTexts.PROCEED
static final Text
ScreenTexts.SENTENCE_SEPARATOR
static final Text
ScreenTexts.YES
Modifier and TypeMethodDescriptionNamedScreenHandlerFactory.getDisplayName()
Returns the title of this screen handler; will be a part of the open screen packet sent to the client.SimpleNamedScreenHandlerFactory.getDisplayName()
Returns the title of this screen handler; will be a part of the open screen packet sent to the client.static Text
ScreenTexts.joinLines
(Collection<? extends Text> texts) static Text
static Text
ScreenTexts.onOrOff
(boolean on) Modifier and TypeMethodDescriptionstatic MutableText
ScreenTexts.composeGenericOptionText
(Text text, Text value) static MutableText
ScreenTexts.composeToggleText
(Text text, boolean value) static Text
static MutableText
ScreenTexts.joinSentences
(Text first, Text second) Modifier and TypeMethodDescriptionstatic Text
ScreenTexts.joinLines
(Collection<? extends Text> texts) ModifierConstructorDescriptionSimpleNamedScreenHandlerFactory
(ScreenHandlerFactory baseFactory, Text name) -
Uses of Text in net.minecraft.server
Modifier and TypeFieldDescriptionServerMetadata.description
MinecraftServer.ServerResourcePackProperties.prompt
The field for theprompt
record component.Modifier and TypeMethodDescriptionPlayerManager.checkCanJoin
(SocketAddress address, com.mojang.authlib.GameProfile profile) ServerMetadata.getDescription()
MinecraftServer.ServerResourcePackProperties.prompt()
Returns the value of theprompt
record component.abstract Text
BanEntry.toText()
BannedIpEntry.toText()
BannedPlayerEntry.toText()
Modifier and TypeMethodDescriptionvoid
PlayerManager.broadcast
(Text message, Function<ServerPlayerEntity, Text> playerMessageFactory, RegistryKey<MessageType> typeKey) Broadcasts a message to all players and the server console.void
PlayerManager.broadcast
(Text message, RegistryKey<MessageType> typeKey) Broadcasts a message to all players and the server console.void
MinecraftServer.logChatMessage
(MessageSender sender, Text message) void
MinecraftServer.sendMessage
(Text message) Sends a system message.void
PlayerManager.sendToOtherTeams
(PlayerEntity source, Text message) void
PlayerManager.sendToTeam
(PlayerEntity source, Text message) void
ServerMetadata.setDescription
(Text description) Modifier and TypeMethodDescriptionvoid
PlayerManager.broadcast
(Text message, Function<ServerPlayerEntity, Text> playerMessageFactory, RegistryKey<MessageType> typeKey) Broadcasts a message to all players and the server console.ModifierConstructorDescriptionServerResourcePackProperties
(String string, String string2, boolean bool, @Nullable Text text) -
Uses of Text in net.minecraft.server.command
Modifier and TypeMethodDescriptionprivate static int
BossBarCommand.addBossBar
(ServerCommandSource source, Identifier name, Text displayName) private static int
KickCommand.execute
(ServerCommandSource source, Collection<ServerPlayerEntity> targets, Text reason) private static int
TeamCommand.executeAdd
(ServerCommandSource source, String team, Text displayName) private static int
ScoreboardCommand.executeAddObjective
(ServerCommandSource source, String objective, ScoreboardCriterion criteria, Text displayName) private static int
TeamCommand.executeModifyDisplayName
(ServerCommandSource source, Team team, Text displayName) private static int
ScoreboardCommand.executeModifyObjective
(ServerCommandSource source, ScoreboardObjective objective, Text displayName) private static int
TeamCommand.executeModifyPrefix
(ServerCommandSource source, Team team, Text prefix) private static int
TeamCommand.executeModifySuffix
(ServerCommandSource source, Team team, Text suffix) private static int
RaidCommand.executeSound
(ServerCommandSource source, Text type) private static int
TitleCommand.executeTitle
(ServerCommandSource source, Collection<ServerPlayerEntity> targets, Text title, String titleType, Function<Text, Packet<?>> constructor) void
void
ServerCommandSource.sendFeedback
(Text message, boolean broadcastToOps) void
CommandOutput.sendMessage
(Text message) Sends a system message.void
DebugCommand.Tracer.sendMessage
(Text message) Sends a system message.private void
private static int
BossBarCommand.setName
(ServerCommandSource source, CommandBossBar bossBar, Text name) Modifier and TypeMethodDescriptionprivate static int
ListCommand.execute
(ServerCommandSource source, Function<ServerPlayerEntity, Text> nameProvider) private static int
TitleCommand.executeTitle
(ServerCommandSource source, Collection<ServerPlayerEntity> targets, Text title, String titleType, Function<Text, Packet<?>> constructor) ModifierConstructorDescriptionServerCommandSource
(CommandOutput output, Vec3d pos, Vec2f rot, ServerWorld world, int level, String name, Text displayName, MinecraftServer server, @Nullable Entity entity) protected
ServerCommandSource
(CommandOutput output, Vec3d pos, Vec2f rot, ServerWorld world, int level, String name, Text displayName, MinecraftServer server, @Nullable Entity entity, boolean silent, @Nullable com.mojang.brigadier.ResultConsumer<ServerCommandSource> consumer, EntityAnchorArgumentType.EntityAnchor entityAnchor, CommandArgumentSigner signer) -
Uses of Text in net.minecraft.server.dedicated
-
Uses of Text in net.minecraft.server.dedicated.command
Modifier and TypeMethodDescriptionprivate static int
BanCommand.ban
(ServerCommandSource source, Collection<com.mojang.authlib.GameProfile> targets, @Nullable Text reason) private static int
BanIpCommand.banIp
(ServerCommandSource source, String targetIp, @Nullable Text reason) private static int
BanIpCommand.checkIp
(ServerCommandSource source, String target, @Nullable Text reason) -
Uses of Text in net.minecraft.server.filter
Modifier and TypeMethodDescriptiondefault CompletableFuture<FilteredMessage<Text>>
TextStream.filterText
(Text text) Modifier and TypeMethodDescriptiondefault CompletableFuture<FilteredMessage<Text>>
TextStream.filterText
(Text text) -
Uses of Text in net.minecraft.server.function
Modifier and TypeFieldDescriptionprivate static final Text
CommandFunctionManager.NO_TRACE_IN_FUNCTION_TEXT
A localized piece of text indicating that calling the debug command to debug functions from within a function is not supported. -
Uses of Text in net.minecraft.server.integrated
Modifier and TypeMethodDescriptionIntegratedPlayerManager.checkCanJoin
(SocketAddress address, com.mojang.authlib.GameProfile profile) -
Uses of Text in net.minecraft.server.network
Modifier and TypeFieldDescriptionprivate static final Text
ServerHandshakeNetworkHandler.IGNORING_STATUS_REQUEST_MESSAGE
private static final Text
ServerLoginNetworkHandler.INVALID_PUBLIC_KEY_SIGNATURE_TEXT
private static final Text
ServerLoginNetworkHandler.INVALID_PUBLIC_KEY_TEXT
private static final Text
ServerLoginNetworkHandler.MISSING_PUBLIC_KEY_TEXT
private static final Text
ServerQueryNetworkHandler.REQUEST_HANDLED
Modifier and TypeMethodDescriptionprivate CompletableFuture<Text>
private CompletableFuture<Text>
ServerPlayNetworkHandler.decorateChat
(String query) private CompletableFuture<Text>
ServerPlayNetworkHandler.decorateCommand
(com.mojang.brigadier.context.CommandContextBuilder<ServerCommandSource> builder) private CompletableFuture<Text>
ServerPlayNetworkHandler.decorateCommand
(String query) Modifier and TypeMethodDescriptionvoid
ServerLoginNetworkHandler.disconnect
(Text reason) void
ServerPlayNetworkHandler.disconnect
(Text reason) void
LocalServerHandshakeNetworkHandler.onDisconnected
(Text reason) Called when the connection this listener listens to has disconnected.void
ServerHandshakeNetworkHandler.onDisconnected
(Text reason) Called when the connection this listener listens to has disconnected.void
ServerLoginNetworkHandler.onDisconnected
(Text reason) Called when the connection this listener listens to has disconnected.void
ServerPlayNetworkHandler.onDisconnected
(Text reason) Called when the connection this listener listens to has disconnected.void
ServerQueryNetworkHandler.onDisconnected
(Text reason) Called when the connection this listener listens to has disconnected.private void
ServerPlayNetworkHandler.sendChatPreviewPacket
(int queryId, Text preview) void
ServerPlayerEntity.sendMessage
(Text message) Sends a system message.void
ServerPlayerEntity.sendMessage
(Text message, boolean actionBar) Adds a message to this player's HUD.void
ServerPlayerEntity.sendMessage
(Text message, RegistryKey<MessageType> typeKey) Sends a message to the player.private void
ServerPlayerEntity.sendMessageDeliverError
(Text message, RegistryKey<MessageType> typeKey) void
ServerPlayerEntity.sendResourcePackUrl
(String url, String hash, boolean required, @Nullable Text resourcePackPrompt) ModifierConstructorDescriptionLoginException
(Text messageText) LoginException
(Text messageText, Throwable cause) -
Uses of Text in net.minecraft.server.rcon
Modifier and TypeMethodDescriptionvoid
RconCommandOutput.sendMessage
(Text message) Sends a system message. -
Uses of Text in net.minecraft.stat
-
Uses of Text in net.minecraft.text
Modifier and TypeClassDescriptionclass
The text implementation, with mutation operations.Modifier and TypeFieldDescriptionstatic final Text
Texts.DEFAULT_SEPARATOR_TEXT
static final Text
HoverEvent.EntityContent.name
Modifier and TypeFieldDescriptionKeybindTranslations.factory
HoverEvent.Action.legacyDeserializer
NbtTextContent.separator
SelectorTextContent.separator
static final HoverEvent.Action<Text>
HoverEvent.Action.SHOW_TEXT
MutableText.siblings
HoverEvent.EntityContent.tooltip
KeybindTextContent.translated
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 totranslatable(String, Object[])
.private Text
KeybindTextContent.getTranslated()
static Text
Texts.join
(Collection<? extends Text> texts, Text separator) static <T> Text
Texts.join
(Collection<? extends T> elements, Function<T, Text> transformer) static Text
Texts.joinOrdered
(Collection<String> strings) static <T extends Comparable<T>>
TextTexts.joinOrdered
(Collection<T> elements, Function<T, Text> transformer) static Text
Creates a literal text with the given string as content.Decoration.Parameter.Selector.select
(Text content, @Nullable MessageSender sender) static Text
Texts.toText
(com.mojang.authlib.GameProfile profile) static Text
Texts.toText
(com.mojang.brigadier.Message message) Modifier and TypeMethodDescriptionHoverEvent.EntityContent.asTooltip()
NbtTextContent.getSeparator()
SelectorTextContent.getSeparator()
Text.Serializer.getSeparator
(Type type, JsonDeserializationContext context, JsonObject json) MutableText.getSiblings()
Returns the siblings of this text.Text.getSiblings()
Returns the siblings of this text.Text.getWithStyle
(Style style) Modifier and TypeMethodDescriptionAppends a text to this text's siblings.Decoration.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.static MutableText
HoverEvent.Action.buildHoverEvent
(Text value) private Text[]
Decoration.collectArguments
(Text content, @Nullable MessageSender sender) Returns the arguments passed totranslatable(String, Object[])
.static boolean
Texts.hasTranslation
(@Nullable Text text) static Text
Texts.join
(Collection<? extends Text> texts, Text separator) static <T> MutableText
Texts.join
(Collection<? extends T> elements, Text separator, Function<T, Text> transformer) private static @Nullable HoverEvent.ItemStackContent
static MutableText
Decoration.Parameter.Selector.select
(Text content, @Nullable MessageSender sender) Text.Serializer.serialize
(Text text, Type type, JsonSerializationContext jsonSerializationContext) static String
static JsonElement
Text.Serializer.toJsonTree
(Text text) static String
Text.Serializer.toSortedJsonString
(Text text) Modifier and TypeMethodDescriptionprivate void
Text.Serializer.addSeparator
(JsonSerializationContext context, JsonObject json, Optional<Text> separator) static Text
Texts.join
(Collection<? extends Text> texts, Text separator) static <T> Text
Texts.join
(Collection<? extends T> elements, Function<T, Text> transformer) static <T> MutableText
Texts.join
(Collection<? extends T> elements, Optional<? extends Text> separator, Function<T, Text> transformer) static <T> MutableText
Texts.join
(Collection<? extends T> elements, Optional<? extends Text> separator, Function<T, Text> transformer) static <T> MutableText
Texts.join
(Collection<? extends T> elements, Text separator, Function<T, Text> transformer) static <T extends Comparable<T>>
TextTexts.joinOrdered
(Collection<T> elements, Function<T, Text> transformer) static MutableText
Text.nbt
(String rawPath, boolean interpret, Optional<Text> separator, NbtDataSource dataSource) static Optional<MutableText>
Texts.parse
(@Nullable ServerCommandSource source, Optional<Text> text, @Nullable Entity sender, int depth) static MutableText
static void
KeybindTranslations.setFactory
(Function<String, Supplier<Text>> factory) ModifierConstructorDescriptionEntityContent
(EntityType<?> entityType, UUID uuid, @Nullable Text name) ModifierConstructorDescription(package private)
MutableText
(TextContent content, List<Text> siblings, Style style) NbtTextContent
(String rawPath, boolean interpret, Optional<Text> separator, NbtDataSource dataSource) private
NbtTextContent
(String rawPath, NbtPathArgumentType.NbtPath path, boolean interpret, Optional<Text> separator, NbtDataSource dataSource) SelectorTextContent
(String pattern, Optional<Text> separator) -
Uses of Text in net.minecraft.util
Modifier and TypeFieldDescriptionprivate final Text
TextifiedException.messageText
private final Text
BlockMirror.name
Modifier and TypeMethodDescriptionNameable.getCustomName()
default Text
Nameable.getDisplayName()
TextifiedException.getMessageText()
BlockMirror.getName()
Nameable.getName()
default Text
TranslatableOption.getText()
ModifierConstructorDescriptionTextifiedException
(Text messageText) TextifiedException
(Text messageText, Throwable cause) -
Uses of Text in net.minecraft.village
Modifier and TypeMethodDescriptiondefault void
Merchant.sendOffers
(PlayerEntity player, Text test, int levelProgress) -
Uses of Text in net.minecraft.village.raid
Modifier and TypeFieldDescriptionprivate static final Text
Raid.DEFEAT_SUFFIX_TEXT
private static final Text
Raid.DEFEAT_TITLE
private static final Text
Raid.EVENT_TEXT
private static final Text
Raid.VICTORY_SUFFIX_TEXT
private static final Text
Raid.VICTORY_TITLE
-
Uses of Text in net.minecraft.world
Modifier and TypeFieldDescriptionprivate Text
CommandBlockExecutor.customName
private static final Text
CommandBlockExecutor.DEFAULT_NAME
CommandBlockExecutor.lastOutput
private final Text
GameMode.simpleTranslatableName
private final Text
GameMode.translatableName
Modifier and TypeMethodDescriptionCommandBlockExecutor.getCustomName()
CommandBlockExecutor.getLastOutput()
GameMode.getSimpleTranslatableName()
Difficulty.getTranslatableName()
GameMode.getTranslatableName()
Modifier and TypeMethodDescriptionvoid
CommandBlockExecutor.sendMessage
(Text message) Sends a system message.void
CommandBlockExecutor.setCustomName
(@Nullable Text name) void
CommandBlockExecutor.setLastOutput
(@Nullable Text lastOutput) -
Uses of Text in net.minecraft.world.level.storage
Modifier and TypeFieldDescriptionLevelSummary.details
private final Text
LevelStorageException.messageText
Modifier and TypeMethodDescriptionprivate Text
LevelSummary.createDetails()
LevelSummary.getDetails()
LevelStorageException.getMessageText()
-
Uses of Text in net.minecraft.world.updater