Uses of Interface
net.minecraft.util.FormattedCharSequence
Packages that use FormattedCharSequence
Package
Description
-
Uses of FormattedCharSequence in net.minecraft.client
Fields in net.minecraft.client declared as FormattedCharSequenceModifier and TypeFieldDescriptionprivate final FormattedCharSequence
GuiMessage.Line.content
The field for thecontent
record component.Methods in net.minecraft.client that return FormattedCharSequenceModifier and TypeMethodDescriptionGuiMessage.Line.content()
Returns the value of thecontent
record component.Methods in net.minecraft.client with parameters of type FormattedCharSequenceModifier and TypeMethodDescriptionStringSplitter.componentStyleAtWidth
(FormattedCharSequence content, int maxWidth) float
StringSplitter.stringWidth
(FormattedCharSequence content) Constructors in net.minecraft.client with parameters of type FormattedCharSequenceModifierConstructorDescriptionLine
(int addedTime, FormattedCharSequence content, GuiMessageTag tag, boolean endOfEntry) Creates an instance of aLine
record class. -
Uses of FormattedCharSequence in net.minecraft.client.gui
Methods in net.minecraft.client.gui that return types with arguments of type FormattedCharSequenceMethods in net.minecraft.client.gui with parameters of type FormattedCharSequenceModifier and TypeMethodDescriptionvoid
GuiGraphics.drawCenteredString
(Font font, FormattedCharSequence text, int x, int y, int color) Draws a centered string at the specified coordinates using the given font, formatted character sequence, and color.int
Font.drawInBatch
(FormattedCharSequence text, float x, float y, int color, boolean dropShadow, org.joml.Matrix4f matrix, MultiBufferSource buffer, Font.DisplayMode displayMode, int backgroundColor, int packedLightCoords) void
Font.drawInBatch8xOutline
(FormattedCharSequence text, float x, float y, int color, int backgroundColor, org.joml.Matrix4f matrix, MultiBufferSource bufferSource, int packedLightCoords) private int
Font.drawInternal
(FormattedCharSequence text, float x, float y, int color, boolean dropShadow, org.joml.Matrix4f matrix, MultiBufferSource buffer, Font.DisplayMode displayMode, int backgroundColor, int packedLightCoords) int
GuiGraphics.drawString
(Font p_282636_, FormattedCharSequence p_281596_, float p_281586_, float p_282816_, int p_281743_, boolean p_282394_) int
GuiGraphics.drawString
(Font font, FormattedCharSequence text, int x, int y, int color) Draws a formatted character sequence at the specified coordinates using the given font, text, and color.int
GuiGraphics.drawString
(Font font, FormattedCharSequence text, int x, int y, int color, boolean dropShadow) Draws a formatted character sequence at the specified coordinates using the given font, text, color, and drop shadow.private float
Font.renderText
(FormattedCharSequence text, float x, float y, int color, boolean dropShadow, org.joml.Matrix4f matrix, MultiBufferSource buffer, Font.DisplayMode displayMode, int backgroundColor, int packedLightCoords) int
Font.width
(FormattedCharSequence text) Method parameters in net.minecraft.client.gui with type arguments of type FormattedCharSequenceModifier and TypeMethodDescriptionvoid
GuiGraphics.renderTooltip
(Font font, List<? extends FormattedCharSequence> tooltipLines, int mouseX, int mouseY) Renders a tooltip with multiple lines of formatted text at the specified mouse coordinates.void
GuiGraphics.renderTooltip
(Font font, List<FormattedCharSequence> tooltipLines, ClientTooltipPositioner tooltipPositioner, int mouseX, int mouseY) Renders a tooltip with multiple lines of formatted text using a custom tooltip positioner at the specified mouse coordinates. -
Uses of FormattedCharSequence in net.minecraft.client.gui.components
Fields in net.minecraft.client.gui.components declared as FormattedCharSequenceModifier and TypeFieldDescriptionprivate static final FormattedCharSequence
ComponentRenderUtils.INDENT
private final FormattedCharSequence
MultiLineLabel.TextAndWidth.text
The field for thetext
record component.Fields in net.minecraft.client.gui.components with type parameters of type FormattedCharSequenceModifier and TypeFieldDescriptionprivate List
<FormattedCharSequence> Tooltip.cachedTooltip
private final List
<FormattedCharSequence> CommandSuggestions.commandUsage
private BiFunction
<String, Integer, FormattedCharSequence> EditBox.formatter
Methods in net.minecraft.client.gui.components that return FormattedCharSequenceModifier and TypeMethodDescriptionprivate FormattedCharSequence
private FormattedCharSequence
CommandSuggestions.formatChat
(String command, int maxLength) private static FormattedCharSequence
CommandSuggestions.formatText
(com.mojang.brigadier.ParseResults<SharedSuggestionProvider> provider, String command, int maxLength) private static FormattedCharSequence
CommandSuggestions.getExceptionMessage
(com.mojang.brigadier.exceptions.CommandSyntaxException exception) MultiLineLabel.TextAndWidth.text()
Returns the value of thetext
record component.Methods in net.minecraft.client.gui.components that return types with arguments of type FormattedCharSequenceModifier and TypeMethodDescriptionstatic List
<FormattedCharSequence> Tooltip.splitTooltip
(Minecraft minecraft, Component message) Tooltip.toCharSequence
(Minecraft minecraft) static List
<FormattedCharSequence> ComponentRenderUtils.wrapComponents
(FormattedText component, int maxWidth, Font font) Method parameters in net.minecraft.client.gui.components with type arguments of type FormattedCharSequenceModifier and TypeMethodDescriptionvoid
EditBox.setFormatter
(BiFunction<String, Integer, FormattedCharSequence> textFormatter) Constructors in net.minecraft.client.gui.components with parameters of type FormattedCharSequenceModifierConstructorDescriptionTextAndWidth
(FormattedCharSequence text, int width) Creates an instance of aTextAndWidth
record class. -
Uses of FormattedCharSequence in net.minecraft.client.gui.components.toasts
Fields in net.minecraft.client.gui.components.toasts with type parameters of type FormattedCharSequenceMethods in net.minecraft.client.gui.components.toasts that return types with arguments of type FormattedCharSequenceModifier and TypeMethodDescriptionprivate static com.google.common.collect.ImmutableList
<FormattedCharSequence> SystemToast.nullToEmpty
(Component message) Constructor parameters in net.minecraft.client.gui.components.toasts with type arguments of type FormattedCharSequenceModifierConstructorDescriptionprivate
SystemToast
(SystemToast.SystemToastId id, Component title, List<FormattedCharSequence> messageLines, int width) -
Uses of FormattedCharSequence in net.minecraft.client.gui.screens
Fields in net.minecraft.client.gui.screens with type parameters of type FormattedCharSequenceModifier and TypeFieldDescriptionprivate List
<FormattedCharSequence> WinScreen.lines
private final List
<FormattedCharSequence> Screen.DeferredTooltipRendering.tooltip
The field for thetooltip
record component.Methods in net.minecraft.client.gui.screens that return types with arguments of type FormattedCharSequenceModifier and TypeMethodDescriptionScreen.DeferredTooltipRendering.tooltip()
Returns the value of thetooltip
record component.Method parameters in net.minecraft.client.gui.screens with type arguments of type FormattedCharSequenceModifier and TypeMethodDescriptionvoid
Screen.setTooltipForNextRenderPass
(List<FormattedCharSequence> tooltip) void
Screen.setTooltipForNextRenderPass
(List<FormattedCharSequence> tooltip, ClientTooltipPositioner positioner, boolean override) Constructor parameters in net.minecraft.client.gui.screens with type arguments of type FormattedCharSequenceModifierConstructorDescription(package private)
DeferredTooltipRendering
(List<FormattedCharSequence> tooltip, ClientTooltipPositioner positioner) Creates an instance of aDeferredTooltipRendering
record class. -
Uses of FormattedCharSequence in net.minecraft.client.gui.screens.advancements
Fields in net.minecraft.client.gui.screens.advancements declared as FormattedCharSequenceFields in net.minecraft.client.gui.screens.advancements with type parameters of type FormattedCharSequenceModifier and TypeFieldDescriptionprivate final List
<FormattedCharSequence> AdvancementWidget.description
-
Uses of FormattedCharSequence in net.minecraft.client.gui.screens.inventory
Fields in net.minecraft.client.gui.screens.inventory declared as FormattedCharSequenceModifier and TypeFieldDescriptionprivate static final FormattedCharSequence
BookEditScreen.BLACK_CURSOR
private static final FormattedCharSequence
BookEditScreen.GRAY_CURSOR
Fields in net.minecraft.client.gui.screens.inventory with type parameters of type FormattedCharSequenceModifier and TypeFieldDescriptionprivate List
<FormattedCharSequence> BookViewScreen.cachedPageComponents
Holds a copy of the page text, split into page width lines -
Uses of FormattedCharSequence in net.minecraft.client.gui.screens.inventory.tooltip
Fields in net.minecraft.client.gui.screens.inventory.tooltip declared as FormattedCharSequenceMethods in net.minecraft.client.gui.screens.inventory.tooltip with parameters of type FormattedCharSequenceModifier and TypeMethodDescriptionstatic ClientTooltipComponent
ClientTooltipComponent.create
(FormattedCharSequence text) Constructors in net.minecraft.client.gui.screens.inventory.tooltip with parameters of type FormattedCharSequence -
Uses of FormattedCharSequence in net.minecraft.client.gui.screens.packs
Fields in net.minecraft.client.gui.screens.packs declared as FormattedCharSequenceModifier and TypeFieldDescriptionprivate final FormattedCharSequence
TransferableSelectionList.PackEntry.incompatibleNameDisplayCache
private final FormattedCharSequence
TransferableSelectionList.PackEntry.nameDisplayCache
Methods in net.minecraft.client.gui.screens.packs that return FormattedCharSequence -
Uses of FormattedCharSequence in net.minecraft.client.gui.screens.reporting
Fields in net.minecraft.client.gui.screens.reporting with type parameters of type FormattedCharSequenceModifier and TypeFieldDescriptionprivate final List
<FormattedCharSequence> ChatSelectionScreen.ChatSelectionList.MessageEntry.hoverText
private final List
<FormattedCharSequence> ChatSelectionScreen.ChatSelectionList.MessageEntry.tagHoverText
-
Uses of FormattedCharSequence in net.minecraft.client.gui.screens.worldselection
Fields in net.minecraft.client.gui.screens.worldselection with type parameters of type FormattedCharSequenceModifier and TypeFieldDescriptionprivate final List
<FormattedCharSequence> EditGameRulesScreen.GameRuleEntry.label
(package private) final List
<FormattedCharSequence> EditGameRulesScreen.RuleEntry.tooltip
Method parameters in net.minecraft.client.gui.screens.worldselection with type arguments of type FormattedCharSequenceModifier and TypeMethodDescriptionEditGameRulesScreen.EntryFactory.create
(Component label, List<FormattedCharSequence> tooltip, String p_101157_, T p_101158_) Constructor parameters in net.minecraft.client.gui.screens.worldselection with type arguments of type FormattedCharSequenceModifierConstructorDescriptionBooleanRuleEntry
(Component label, List<FormattedCharSequence> tooltip, String p_101103_, GameRules.BooleanValue value) GameRuleEntry
(List<FormattedCharSequence> tooltip, Component label) IntegerRuleEntry
(Component label, List<FormattedCharSequence> tooltip, String p_101177_, GameRules.IntegerValue value) RuleEntry
(List<FormattedCharSequence> tooltip) -
Uses of FormattedCharSequence in net.minecraft.client.resources.language
Methods in net.minecraft.client.resources.language that return FormattedCharSequenceModifier and TypeMethodDescriptionClientLanguage.getVisualOrder
(FormattedText text) static FormattedCharSequence
FormattedBidiReorder.reorder
(FormattedText text, boolean defaultRightToLeft) -
Uses of FormattedCharSequence in net.minecraft.locale
Methods in net.minecraft.locale that return FormattedCharSequenceModifier and TypeMethodDescriptionabstract FormattedCharSequence
Language.getVisualOrder
(FormattedText text) Methods in net.minecraft.locale that return types with arguments of type FormattedCharSequence -
Uses of FormattedCharSequence in net.minecraft.network.chat
Fields in net.minecraft.network.chat declared as FormattedCharSequenceMethods in net.minecraft.network.chat that return FormattedCharSequenceModifier and TypeMethodDescriptionComponent.getVisualOrderText()
MutableComponent.getVisualOrderText()
Methods in net.minecraft.network.chat that return types with arguments of type FormattedCharSequenceModifier and TypeMethodDescriptionSubStringSource.substring
(int fromIndex, int toIndex, boolean reversed) -
Uses of FormattedCharSequence in net.minecraft.util
Fields in net.minecraft.util declared as FormattedCharSequenceMethods in net.minecraft.util that return FormattedCharSequenceModifier and TypeMethodDescriptionstatic FormattedCharSequence
static FormattedCharSequence
FormattedCharSequence.backward
(String text, Style style, it.unimi.dsi.fastutil.ints.Int2IntFunction codePointMapper) static FormattedCharSequence
static FormattedCharSequence
FormattedCharSequence.composite()
static FormattedCharSequence
FormattedCharSequence.composite
(List<FormattedCharSequence> parts) static FormattedCharSequence
FormattedCharSequence.composite
(FormattedCharSequence sequence) static FormattedCharSequence
FormattedCharSequence.composite
(FormattedCharSequence... parts) static FormattedCharSequence
FormattedCharSequence.composite
(FormattedCharSequence first, FormattedCharSequence second) static FormattedCharSequence
static FormattedCharSequence
FormattedCharSequence.forward
(String text, Style style, it.unimi.dsi.fastutil.ints.Int2IntFunction codePointMapper) static FormattedCharSequence
FormattedCharSequence.fromList
(List<FormattedCharSequence> parts) static FormattedCharSequence
FormattedCharSequence.fromPair
(FormattedCharSequence first, FormattedCharSequence second) Methods in net.minecraft.util with parameters of type FormattedCharSequenceModifier and TypeMethodDescriptionstatic FormattedCharSequence
FormattedCharSequence.composite
(FormattedCharSequence sequence) static FormattedCharSequence
FormattedCharSequence.composite
(FormattedCharSequence... parts) static FormattedCharSequence
FormattedCharSequence.composite
(FormattedCharSequence first, FormattedCharSequence second) static FormattedCharSequence
FormattedCharSequence.fromPair
(FormattedCharSequence first, FormattedCharSequence second) Method parameters in net.minecraft.util with type arguments of type FormattedCharSequenceModifier and TypeMethodDescriptionstatic FormattedCharSequence
FormattedCharSequence.composite
(List<FormattedCharSequence> parts) static FormattedCharSequence
FormattedCharSequence.fromList
(List<FormattedCharSequence> parts) -
Uses of FormattedCharSequence in net.minecraft.world.entity
Fields in net.minecraft.world.entity declared as FormattedCharSequenceModifier and TypeFieldDescriptionprivate final FormattedCharSequence
Display.TextDisplay.CachedLine.contents
The field for thecontents
record component.Methods in net.minecraft.world.entity that return FormattedCharSequenceModifier and TypeMethodDescriptionDisplay.TextDisplay.CachedLine.contents()
Returns the value of thecontents
record component.Constructors in net.minecraft.world.entity with parameters of type FormattedCharSequenceModifierConstructorDescriptionCachedLine
(FormattedCharSequence contents, int width) Creates an instance of aCachedLine
record class. -
Uses of FormattedCharSequence in net.minecraft.world.level.block.entity
Fields in net.minecraft.world.level.block.entity declared as FormattedCharSequenceMethods in net.minecraft.world.level.block.entity that return FormattedCharSequenceModifier and TypeMethodDescriptionSignText.getRenderMessages
(boolean renderMessagesFiltered, Function<Component, FormattedCharSequence> formatter) Method parameters in net.minecraft.world.level.block.entity with type arguments of type FormattedCharSequenceModifier and TypeMethodDescriptionSignText.getRenderMessages
(boolean renderMessagesFiltered, Function<Component, FormattedCharSequence> formatter) -
Uses of FormattedCharSequence in net.neoforged.neoforge.client.gui
Fields in net.neoforged.neoforge.client.gui with type parameters of type FormattedCharSequenceModifier and TypeFieldDescriptionprivate List
<FormattedCharSequence> ModListScreen.InfoPanel.lines
private List
<org.apache.commons.lang3.tuple.Pair<FormattedCharSequence, FormattedCharSequence>> ModMismatchDisconnectedScreen.MismatchInfoPanel.lineTable
private List
<org.apache.commons.lang3.tuple.Pair<FormattedCharSequence, FormattedCharSequence>> ModMismatchDisconnectedScreen.MismatchInfoPanel.lineTable
Methods in net.neoforged.neoforge.client.gui that return types with arguments of type FormattedCharSequenceModifier and TypeMethodDescriptionprivate List
<FormattedCharSequence> ModListScreen.InfoPanel.resizeContent
(List<String> lines) private List
<org.apache.commons.lang3.tuple.Pair<FormattedCharSequence, FormattedCharSequence>> ModMismatchDisconnectedScreen.MismatchInfoPanel.splitLineToWidth
(MutableComponent name, MutableComponent reason) Splits the raw channel namespace and mismatch reason strings, making them use multiple lines if needed, to fit within the table dimensions.private List
<org.apache.commons.lang3.tuple.Pair<FormattedCharSequence, FormattedCharSequence>> ModMismatchDisconnectedScreen.MismatchInfoPanel.splitLineToWidth
(MutableComponent name, MutableComponent reason) Splits the raw channel namespace and mismatch reason strings, making them use multiple lines if needed, to fit within the table dimensions.