Uses of Interface
net.minecraft.network.chat.FormattedText
Package
Description
Events fired only on the client-side, chiefly related to rendering and user interfaces (screens and input).
Extension interfaces for
client
-only classes.-
Uses of FormattedText in net.minecraft.client
Modifier and TypeMethodDescriptionStringSplitter.FlatComponents.getRemainder()
ComponentCollector.getResult()
ComponentCollector.getResultOrEmpty()
StringSplitter.headByWidth
(FormattedText p_92390_, int p_92391_, Style p_92392_) Modifier and TypeMethodDescriptionStringSplitter.splitLines
(String p_92433_, int p_92434_, Style p_92435_) StringSplitter.splitLines
(FormattedText p_92415_, int p_92416_, Style p_92417_) StringSplitter.splitLines
(FormattedText p_168622_, int p_168623_, Style p_168624_, FormattedText p_168625_) Modifier and TypeMethodDescriptionvoid
ComponentCollector.append
(FormattedText p_90676_) StringSplitter.componentStyleAtWidth
(FormattedText p_92387_, int p_92388_) StringSplitter.headByWidth
(FormattedText p_92390_, int p_92391_, Style p_92392_) StringSplitter.splitLines
(FormattedText p_92415_, int p_92416_, Style p_92417_) void
StringSplitter.splitLines
(FormattedText p_92394_, int p_92395_, Style p_92396_, BiConsumer<FormattedText, Boolean> p_92397_) StringSplitter.splitLines
(FormattedText p_168622_, int p_168623_, Style p_168624_, FormattedText p_168625_) float
StringSplitter.stringWidth
(FormattedText p_92385_) Modifier and TypeMethodDescriptionvoid
StringSplitter.splitLines
(FormattedText p_92394_, int p_92395_, Style p_92396_, BiConsumer<FormattedText, Boolean> p_92397_) -
Uses of FormattedText in net.minecraft.client.gui
Modifier and TypeMethodDescriptionvoid
GuiGraphics.drawWordWrap
(Font p_281494_, FormattedText p_283463_, int p_282183_, int p_283250_, int p_282564_, int p_282629_) Font.split
(FormattedText p_92924_, int p_92925_) Font.substrByWidth
(FormattedText p_92855_, int p_92856_) int
Font.width
(FormattedText p_92853_) int
Font.wordWrapHeight
(FormattedText p_239134_, int p_239135_) Modifier and TypeMethodDescriptionvoid
GuiGraphics.renderComponentTooltip
(Font font, List<? extends FormattedText> tooltips, int mouseX, int mouseY, ItemStack stack) -
Uses of FormattedText in net.minecraft.client.gui.components
Modifier and TypeMethodDescriptionstatic MultiLineLabel
MultiLineLabel.create
(Font p_94342_, FormattedText p_94343_, int p_94344_) static MultiLineLabel
MultiLineLabel.create
(Font p_94346_, FormattedText p_94347_, int p_94348_, int p_94349_) static List
<FormattedCharSequence> ComponentRenderUtils.wrapComponents
(FormattedText p_94006_, int p_94007_, Font p_94008_) -
Uses of FormattedText in net.minecraft.client.gui.screens
Modifier and TypeFieldDescriptionprivate final FormattedText
UnsupportedGraphicsWarningScreen.message
-
Uses of FormattedText in net.minecraft.client.gui.screens.advancements
Modifier and TypeMethodDescriptionprivate List
<FormattedText> AdvancementWidget.findOptimalLines
(Component p_97309_, int p_97310_) Modifier and TypeMethodDescriptionprivate static float
AdvancementWidget.getMaxWidth
(StringSplitter p_97304_, List<FormattedText> p_97305_) -
Uses of FormattedText in net.minecraft.client.gui.screens.inventory
Modifier and TypeMethodDescriptionBookViewScreen.BookAccess.getPage
(int p_98311_) EnchantmentNames.getRandomName
(Font p_98738_, int p_98739_) -
Uses of FormattedText in net.minecraft.client.gui.screens.reporting
Modifier and TypeFieldDescriptionprivate final FormattedText
ChatSelectionScreen.ChatSelectionList.MessageEntry.text
-
Uses of FormattedText in net.minecraft.client.resources.language
Modifier and TypeMethodDescriptionClientLanguage.getVisualOrder
(FormattedText p_118925_) static FormattedCharSequence
FormattedBidiReorder.reorder
(FormattedText p_118932_, boolean p_118933_) -
Uses of FormattedText in net.minecraft.locale
Modifier and TypeMethodDescriptionabstract FormattedCharSequence
Language.getVisualOrder
(FormattedText p_128116_) -
Uses of FormattedText in net.minecraft.network.chat
Modifier and TypeMethodDescriptionstatic FormattedText
FormattedText.composite
(List<? extends FormattedText> p_130769_) static FormattedText
FormattedText.composite
(FormattedText... p_130774_) static FormattedText
static FormattedText
Modifier and TypeMethodDescriptionstatic FormattedText
FormattedText.composite
(FormattedText... p_130774_) static SubStringSource
SubStringSource.create
(FormattedText p_178537_) static SubStringSource
SubStringSource.create
(FormattedText p_131252_, it.unimi.dsi.fastutil.ints.Int2IntFunction p_131253_, UnaryOperator<String> p_131254_) Modifier and TypeMethodDescriptionstatic FormattedText
FormattedText.composite
(List<? extends FormattedText> p_130769_) -
Uses of FormattedText in net.minecraft.network.chat.contents
Modifier and TypeFieldDescriptionprivate static final FormattedText
TranslatableContents.TEXT_NULL
private static final FormattedText
TranslatableContents.TEXT_PERCENT
Modifier and TypeFieldDescriptionprivate List
<FormattedText> TranslatableContents.decomposedParts
Modifier and TypeMethodDescriptionprivate FormattedText
TranslatableContents.getArgument
(int p_237510_) Modifier and TypeMethodDescriptionprivate void
TranslatableContents.decomposeTemplate
(String p_237516_, Consumer<FormattedText> p_237517_) -
Uses of FormattedText in net.minecraft.util
Modifier and TypeMethodDescriptionstatic String
StringDecomposer.getPlainText
(FormattedText p_14327_) static boolean
StringDecomposer.iterateFormatted
(FormattedText p_14329_, Style p_14330_, FormattedCharSink p_14331_) -
Uses of FormattedText in net.neoforged.neoforge.client
Modifier and TypeMethodDescriptionprivate static Stream
<ClientTooltipComponent> ClientHooks.splitLine
(FormattedText text, Font font, int maxWidth) Modifier and TypeMethodDescriptionstatic List
<ClientTooltipComponent> ClientHooks.gatherTooltipComponents
(ItemStack stack, List<? extends FormattedText> textElements, int mouseX, int screenWidth, int screenHeight, Font fallbackFont) static List
<ClientTooltipComponent> ClientHooks.gatherTooltipComponents
(ItemStack stack, List<? extends FormattedText> textElements, Optional<TooltipComponent> itemComponent, int mouseX, int screenWidth, int screenHeight, Font fallbackFont) -
Uses of FormattedText in net.neoforged.neoforge.client.event
Modifier and TypeFieldDescriptionprivate final List
<com.mojang.datafixers.util.Either<FormattedText, TooltipComponent>> RenderTooltipEvent.GatherComponents.tooltipElements
Modifier and TypeMethodDescriptionList
<com.mojang.datafixers.util.Either<FormattedText, TooltipComponent>> RenderTooltipEvent.GatherComponents.getTooltipElements()
Returns the modifiable list of elements to be rendered on the tooltip.ModifierConstructorDescriptionGatherComponents
(ItemStack itemStack, int screenWidth, int screenHeight, List<com.mojang.datafixers.util.Either<FormattedText, TooltipComponent>> tooltipElements, int maxWidth) -
Uses of FormattedText in net.neoforged.neoforge.client.extensions
Modifier and TypeMethodDescriptiondefault FormattedText
IFontExtension.ellipsize
(FormattedText text, int maxWidth) If the width of the text exceedsmaxWidth
, an ellipse is added and the text is substringed.Modifier and TypeMethodDescriptiondefault FormattedText
IFontExtension.ellipsize
(FormattedText text, int maxWidth) If the width of the text exceedsmaxWidth
, an ellipse is added and the text is substringed.