Uses of Class
net.minecraft.network.chat.Style
Packages that use Style
Package
Description
-
Uses of Style in net.minecraft.client
Fields in net.minecraft.client declared as StyleModifier and TypeFieldDescriptionprivate Style
StringSplitter.LineBreakFinder.lastSpaceStyle
private Style
StringSplitter.LineBreakFinder.lineBreakStyle
(package private) Style
StringSplitter.LineComponent.style
Methods in net.minecraft.client that return StyleModifier and TypeMethodDescriptionStringSplitter.componentStyleAtWidth(FormattedText p_92387_, int p_92388_)
StringSplitter.componentStyleAtWidth(FormattedCharSequence p_92339_, int p_92340_)
StringSplitter.LineBreakFinder.getSplitStyle()
Methods in net.minecraft.client with parameters of type StyleModifier 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_)
Constructors in net.minecraft.client with parameters of type Style -
Uses of Style in net.minecraft.client.gui
Methods in net.minecraft.client.gui with parameters of type Style -
Uses of Style in net.minecraft.client.gui.components
Fields in net.minecraft.client.gui.components declared as StyleModifier and TypeFieldDescriptionprivate static Style
CommandSuggestions.LITERAL_STYLE
private static Style
CommandSuggestions.UNPARSED_STYLE
Fields in net.minecraft.client.gui.components with type parameters of type StyleMethods in net.minecraft.client.gui.components that return StyleModifier and TypeMethodDescriptionChatComponent.getClickedComponentStyleAt(double p_93801_, double p_93802_)
-
Uses of Style in net.minecraft.client.gui.screens
Methods in net.minecraft.client.gui.screens that return StyleModifier and TypeMethodDescriptionprivate Style
DeathScreen.getClickedComponentStyleAt(int p_95918_)
Methods in net.minecraft.client.gui.screens with parameters of type StyleModifier 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
Fields in net.minecraft.client.gui.screens.inventory declared as StyleModifier and TypeFieldDescriptionprivate static Style
EnchantmentNames.ROOT_STYLE
(package private) Style
BookEditScreen.LineInfo.style
Methods in net.minecraft.client.gui.screens.inventory that return StyleModifier and TypeMethodDescriptionBookViewScreen.getClickedComponentStyleAt(double p_98269_, double p_98270_)
Methods in net.minecraft.client.gui.screens.inventory with parameters of type StyleConstructors in net.minecraft.client.gui.screens.inventory with parameters of type Style -
Uses of Style in net.minecraft.network.chat
Fields in net.minecraft.network.chat declared as StyleFields in net.minecraft.network.chat with type parameters of type StyleMethods in net.minecraft.network.chat that return StyleModifier 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)
Style.setStrikethrough(Boolean strikethrough)
Style.setUnderlined(Boolean underlined)
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_)
Methods in net.minecraft.network.chat with parameters of type StyleModifier 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
Method parameters in net.minecraft.network.chat with type arguments of type StyleModifier and TypeMethodDescriptiondefault MutableComponent
MutableComponent.withStyle(UnaryOperator<Style> p_130939_)
Constructor parameters in net.minecraft.network.chat with type arguments of type StyleModifierConstructorDescriptionprivate
SubStringSource(String p_131232_, List<Style> p_131233_, it.unimi.dsi.fastutil.ints.Int2IntFunction p_131234_)
-
Uses of Style in net.minecraft.server.commands
Fields in net.minecraft.server.commands declared as Style -
Uses of Style in net.minecraft.util
Methods in net.minecraft.util with parameters of type StyleModifier 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
Fields in net.minecraft.world.item declared as Style -
Uses of Style in net.minecraft.world.scores
Fields in net.minecraft.world.scores declared as Style -
Uses of Style in net.minecraftforge.fmlclient.gui.screen
Methods in net.minecraftforge.fmlclient.gui.screen that return StyleModifier and TypeMethodDescriptionprivate Style
ModListScreen.InfoPanel.findTextLine(int mouseX, int mouseY)