Uses of Interface
net.minecraft.network.chat.FormattedText
Package
Description
-
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
Font.drawWordWrap(FormattedText p_92858_, int p_92859_, int p_92860_, int p_92861_, int p_92862_)
Font.split(FormattedText p_92924_, int p_92925_)
Font.substrByWidth(FormattedText p_92855_, int p_92856_)
int
Font.width(FormattedText p_92853_)
-
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 TypeMethodDescriptionvoid
Screen.renderComponentTooltip(PoseStack poseStack, List<? extends FormattedText> tooltips, int mouseX, int mouseY, Font font)
void
Screen.renderComponentTooltip(PoseStack poseStack, List<? extends FormattedText> tooltips, int mouseX, int mouseY, Font font, ItemStack stack)
void
Screen.renderComponentTooltip(PoseStack poseStack, List<? extends FormattedText> tooltips, int mouseX, int mouseY, ItemStack stack)
void
Screen.renderComponentToolTip(PoseStack poseStack, List<? extends FormattedText> tooltips, int mouseX, int mouseY, Font font)
Deprecated, for removal: This API element is subject to removal in a future version. -
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 TypeMethodDescriptiondefault FormattedText
BookViewScreen.BookAccess.getPage(int p_98311_)
BookViewScreen.BookAccess.getPageRaw(int p_98307_)
BookViewScreen.WritableBookAccess.getPageRaw(int p_98317_)
BookViewScreen.WrittenBookAccess.getPageRaw(int p_98325_)
EnchantmentNames.getRandomName(Font p_98738_, int p_98739_)
-
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 TypeClassDescriptionclass
class
class
static class
static class
static class
class
class
class
class
Modifier and TypeFieldDescriptionstatic FormattedText
FormattedText.EMPTY
private static FormattedText
TranslatableComponent.TEXT_NULL
private static FormattedText
TranslatableComponent.TEXT_PERCENT
Modifier and TypeFieldDescriptionprivate List<FormattedText>
TranslatableComponent.decomposedParts
Modifier and TypeMethodDescriptionstatic FormattedText
FormattedText.composite(List<? extends FormattedText> p_130769_)
static FormattedText
FormattedText.composite(FormattedText... p_130774_)
private FormattedText
TranslatableComponent.getArgument(int p_131314_)
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.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.minecraftforge.client
Modifier and TypeMethodDescriptionstatic List<ClientTooltipComponent>
ForgeHooksClient.gatherTooltipComponents(ItemStack stack, List<? extends FormattedText> textElements, int mouseX, int screenWidth, int screenHeight, Font forcedFont, Font fallbackFont)
static List<ClientTooltipComponent>
ForgeHooksClient.gatherTooltipComponents(ItemStack stack, List<? extends FormattedText> textElements, Optional<TooltipComponent> itemComponent, int mouseX, int screenWidth, int screenHeight, Font forcedFont, Font fallbackFont)
-
Uses of FormattedText in net.minecraftforge.client.event
Modifier and TypeFieldDescriptionprotected List<? extends FormattedText>
RenderTooltipEvent.lines
Deprecated, for removal: This API element is subject to removal in a future version.private List<com.mojang.datafixers.util.Either<FormattedText,TooltipComponent>>
RenderTooltipEvent.GatherComponents.tooltipElements
Modifier and TypeMethodDescriptionList<? extends FormattedText>
RenderTooltipEvent.getLines()
Deprecated, for removal: This API element is subject to removal in a future version.List<com.mojang.datafixers.util.Either<FormattedText,TooltipComponent>>
RenderTooltipEvent.GatherComponents.getTooltipElements()
The elements to be rendered.ModifierConstructorDescriptionColor(ItemStack stack, List<? extends FormattedText> textLines, PoseStack matrixStack, int x, int y, Font fr, int background, int borderStart, int borderEnd)
Deprecated, for removal: This API element is subject to removal in a future version.GatherComponents(ItemStack stack, int screenWidth, int screenHeight, List<com.mojang.datafixers.util.Either<FormattedText,TooltipComponent>> tooltipElements, int maxWidth)
Post(ItemStack stack, List<? extends FormattedText> textLines, PoseStack matrixStack, int x, int y, Font fr, int width, int height)
Deprecated, for removal: This API element is subject to removal in a future version.PostBackground(ItemStack stack, List<? extends FormattedText> textLines, PoseStack matrixStack, int x, int y, Font fr, int width, int height)
Deprecated, for removal: This API element is subject to removal in a future version.PostText(ItemStack stack, List<? extends FormattedText> textLines, PoseStack matrixStack, int x, int y, Font fr, int width, int height)
Deprecated, for removal: This API element is subject to removal in a future version.Pre(ItemStack stack, List<? extends FormattedText> lines, PoseStack matrixStack, int x, int y, int screenWidth, int screenHeight, int maxWidth, Font fr)
Deprecated, for removal: This API element is subject to removal in a future version.RenderTooltipEvent(ItemStack stack, List<? extends FormattedText> lines, PoseStack matrixStack, int x, int y, Font fr)
Deprecated, for removal: This API element is subject to removal in a future version. -
Uses of FormattedText in net.minecraftforge.fmlclient.gui
Modifier and TypeMethodDescriptionstatic void
GuiUtils.drawHoveringText(PoseStack mStack, List<? extends FormattedText> textLines, int mouseX, int mouseY, int screenWidth, int screenHeight, int maxTextWidth, int backgroundColor, int borderColorStart, int borderColorEnd, Font font)
Deprecated, for removal: This API element is subject to removal in a future version.static void
GuiUtils.drawHoveringText(PoseStack mStack, List<? extends FormattedText> textLines, int mouseX, int mouseY, int screenWidth, int screenHeight, int maxTextWidth, Font font)
Deprecated, for removal: This API element is subject to removal in a future version.static void
GuiUtils.drawHoveringText(ItemStack stack, PoseStack pStack, List<? extends FormattedText> textLines, int mouseX, int mouseY, int screenWidth, int screenHeight, int maxTextWidth, int backgroundColor, int borderColorStart, int borderColorEnd, Font font)
Deprecated, for removal: This API element is subject to removal in a future version.static void
GuiUtils.drawHoveringText(ItemStack stack, PoseStack mStack, List<? extends FormattedText> textLines, int mouseX, int mouseY, int screenWidth, int screenHeight, int maxTextWidth, Font font)
Deprecated, for removal: This API element is subject to removal in a future version. -
Uses of FormattedText in net.minecraftforge.fmllegacy
Modifier and TypeMethodDescriptionstatic int
TextComponentMessageFormatHandler.handle(TranslatableComponent parent, List<FormattedText> children, Object[] formatArgs, String format)
RenderTooltipEvent.getComponents()