Uses of Class
net.minecraft.network.chat.Style
Package
Description
-
Uses of Style in net.minecraft.client
Modifier and TypeFieldDescriptionprivate Style
StringSplitter.LineBreakFinder.lastSpaceStyle
private Style
StringSplitter.LineBreakFinder.lineBreakStyle
(package private) final Style
StringSplitter.LineComponent.style
Modifier and TypeMethodDescriptionStringSplitter.componentStyleAtWidth
(FormattedText p_92387_, int p_92388_) StringSplitter.componentStyleAtWidth
(FormattedCharSequence p_92339_, int p_92340_) StringSplitter.LineBreakFinder.getSplitStyle()
Modifier and TypeMethodDescriptionboolean
void
boolean
int
StringSplitter.findLineBreak
(String p_168635_, int p_168636_, Style p_168637_) private boolean
StringSplitter.LineBreakFinder.finishIteration
(int p_92477_, Style p_92478_) StringSplitter.formattedHeadByWidth
(String p_168631_, int p_168632_, Style p_168633_) int
StringSplitter.formattedIndexByWidth
(String p_168627_, int p_168628_, Style p_168629_) float
StringSplitter.headByWidth
(FormattedText p_92390_, int p_92391_, Style p_92392_) StringSplitter.plainHeadByWidth
(String p_92411_, int p_92412_, Style p_92413_) int
StringSplitter.plainIndexAtWidth
(String p_92361_, int p_92362_, Style p_92363_) StringSplitter.plainTailByWidth
(String p_92424_, int p_92425_, Style p_92426_) StringSplitter.splitLines
(String p_92433_, int p_92434_, Style p_92435_) void
StringSplitter.splitLines
(String p_92365_, int p_92366_, Style p_92367_, boolean p_92368_, StringSplitter.LinePosConsumer p_92369_) 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_) <T> Optional<T>
StringSplitter.LineComponent.visit
(FormattedText.StyledContentConsumer<T> p_92495_, Style p_92496_) -
Uses of Style in net.minecraft.client.gui
-
Uses of Style in net.minecraft.client.gui.components
Modifier and TypeFieldDescriptionprivate static final Style
CommandSuggestions.LITERAL_STYLE
private static final Style
CommandSuggestions.UNPARSED_STYLE
Modifier and TypeMethodDescriptionChatComponent.getClickedComponentStyleAt
(double p_93801_, double p_93802_) -
Uses of Style in net.minecraft.client.gui.screens
Modifier and TypeMethodDescriptionprivate Style
DeathScreen.getClickedComponentStyleAt
(int p_95918_) Modifier and TypeMethodDescriptionboolean
Screen.handleComponentClicked
(Style p_96592_) protected void
Screen.renderComponentHoverEffect
(PoseStack p_96571_, Style p_96572_, int p_96573_, int p_96574_) -
Uses of Style in net.minecraft.client.gui.screens.inventory
Modifier and TypeFieldDescriptionprivate static final Style
EnchantmentNames.ROOT_STYLE
(package private) final Style
BookEditScreen.LineInfo.style
Modifier and TypeMethodDescriptionBookViewScreen.getClickedComponentStyleAt
(double p_98269_, double p_98270_) -
Uses of Style in net.minecraft.network.chat
Modifier and TypeFieldDescriptionstatic final Style
Style.EMPTY
private Style
BaseComponent.style
Modifier and TypeMethodDescriptionStyle.applyFormat
(ChatFormatting p_131158_) Style.applyFormats
(ChatFormatting... p_131153_) Style.applyLegacyFormat
(ChatFormatting p_131165_) Style.Serializer.deserialize
(com.google.gson.JsonElement p_131200_, Type p_131201_, com.google.gson.JsonDeserializationContext p_131202_) BaseComponent.getStyle()
Component.getStyle()
private static Style
ComponentUtils.resolveStyle
(CommandSourceStack p_130737_, Style p_130738_, Entity p_130739_, int p_130740_) Style.setObfuscated
(Boolean obfuscated) Deprecated, for removal: This API element is subject to removal in a future version.Style.setStrikethrough
(Boolean strikethrough) Deprecated, for removal: This API element is subject to removal in a future version.UsewithStrikethrough(Boolean)
instead.Style.setUnderlined
(Boolean underlined) Deprecated, for removal: This API element is subject to removal in a future version.UsewithUnderlined(Boolean)
instead.Style.withClickEvent
(ClickEvent p_131143_) Style.withColor
(int p_178521_) Style.withColor
(ChatFormatting p_131141_) Style.withFont
(ResourceLocation p_131151_) Style.withHoverEvent
(HoverEvent p_131145_) Style.withInsertion
(String p_131139_) Style.withItalic
(Boolean p_131156_) Style.withObfuscated
(Boolean p_178525_) Style.withStrikethrough
(Boolean p_178523_) Style.withUnderlined
(Boolean p_131163_) Modifier and TypeMethodDescriptionstatic MutableComponent
ComponentUtils.mergeStyles
(MutableComponent p_130751_, Style p_130752_) static FormattedText
private static Style
ComponentUtils.resolveStyle
(CommandSourceStack p_130737_, Style p_130738_, Entity p_130739_, int p_130740_) com.google.gson.JsonElement
Style.Serializer.serialize
(Style p_131209_, Type p_131210_, com.google.gson.JsonSerializationContext p_131211_) private void
Component.Serializer.serializeStyle
(Style p_130710_, com.google.gson.JsonObject p_130711_, com.google.gson.JsonSerializationContext p_130712_) Component.toFlatList
(Style p_178406_) default <T> Optional<T>
Component.visit
(FormattedText.StyledContentConsumer<T> p_130679_, Style p_130680_) <T> Optional<T>
FormattedText.visit
(FormattedText.StyledContentConsumer<T> p_130771_, Style p_130772_) default <T> Optional<T>
Component.visitSelf
(FormattedText.StyledContentConsumer<T> p_130682_, Style p_130683_) <T> Optional<T>
KeybindComponent.visitSelf
(FormattedText.StyledContentConsumer<T> p_130924_, Style p_130925_) <T> Optional<T>
TranslatableComponent.visitSelf
(FormattedText.StyledContentConsumer<T> p_131318_, Style p_131319_) default MutableComponent
Modifier and TypeMethodDescriptiondefault MutableComponent
MutableComponent.withStyle
(UnaryOperator<Style> p_130939_) ModifierConstructorDescriptionprivate
SubStringSource
(String p_131232_, List<Style> p_131233_, it.unimi.dsi.fastutil.ints.Int2IntFunction p_131234_) -
Uses of Style in net.minecraft.server.commands
-
Uses of Style in net.minecraft.util
Modifier and TypeMethodDescriptionboolean
static FormattedCharSequence
static FormattedCharSequence
FormattedCharSequence.backward
(String p_13741_, Style p_13742_, it.unimi.dsi.fastutil.ints.Int2IntFunction p_13743_) static FormattedCharSequence
private static boolean
StringDecomposer.feedChar
(Style p_14333_, FormattedCharSink p_14334_, int p_14335_, char p_14336_) static FormattedCharSequence
static FormattedCharSequence
FormattedCharSequence.forward
(String p_144718_, Style p_144719_, it.unimi.dsi.fastutil.ints.Int2IntFunction p_144720_) static boolean
StringDecomposer.iterate
(String p_14318_, Style p_14319_, FormattedCharSink p_14320_) static boolean
StringDecomposer.iterateBackwards
(String p_14338_, Style p_14339_, FormattedCharSink p_14340_) static boolean
StringDecomposer.iterateFormatted
(String p_14312_, int p_14313_, Style p_14314_, Style p_14315_, FormattedCharSink p_14316_) static boolean
StringDecomposer.iterateFormatted
(String p_14307_, int p_14308_, Style p_14309_, FormattedCharSink p_14310_) static boolean
StringDecomposer.iterateFormatted
(String p_14347_, Style p_14348_, FormattedCharSink p_14349_) static boolean
StringDecomposer.iterateFormatted
(FormattedText p_14329_, Style p_14330_, FormattedCharSink p_14331_) -
Uses of Style in net.minecraft.world.item
Modifier and TypeMethodDescriptionstatic Rarity
Rarity.create
(String name, UnaryOperator<Style> styleModifier) -
Uses of Style in net.minecraft.world.scores
-
Uses of Style in net.minecraftforge.client.gui
Modifier and TypeMethodDescriptionprivate Style
ModListScreen.InfoPanel.findTextLine
(int mouseX, int mouseY) ModMismatchDisconnectedScreen.MismatchInfoPanel.getComponentStyleAt
(double x, double y)
withObfuscated(Boolean)
instead.