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_) private Style
ChatScreen.getComponentStyleAt
(double p_232702_, double p_232703_) 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.client.multiplayer.chat
Modifier and TypeMethodDescriptionprivate static boolean
ChatTrustLevel.isModifiedStyle
(Style p_251347_) -
Uses of Style in net.minecraft.network.chat
Modifier and TypeFieldDescriptionstatic final Style
Style.EMPTY
static final Style
FilterMask.FILTERED_STYLE
private final Style
ChatTypeDecoration.style
The field for thestyle
record component.private Style
MutableComponent.style
Modifier and TypeFieldDescriptionSubStringSource.charStyles
static final com.mojang.serialization.Codec<Style>
Style.FORMATTING_CODEC
Modifier and TypeMethodDescriptionStyle.applyFormat
(ChatFormatting p_131158_) Style.applyFormats
(ChatFormatting... p_131153_) Style.applyLegacyFormat
(ChatFormatting p_131165_) private static Style
Style.create
(Optional<TextColor> p_237258_, Optional<Boolean> p_237259_, Optional<Boolean> p_237260_, Optional<Boolean> p_237261_, Optional<Boolean> p_237262_, Optional<Boolean> p_237263_, Optional<String> p_237264_, Optional<ResourceLocation> p_237265_) Style.Serializer.deserialize
(com.google.gson.JsonElement p_131200_, Type p_131201_, com.google.gson.JsonDeserializationContext p_131202_) Component.getStyle()
MutableComponent.getStyle()
private static Style
ComponentUtils.resolveStyle
(CommandSourceStack p_130737_, Style p_130738_, Entity p_130739_, int p_130740_) ChatTypeDecoration.style()
Returns the value of thestyle
record component.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_) default <T> Optional<T>
ComponentContents.visit
(FormattedText.StyledContentConsumer<T> p_237130_, Style p_237131_) <T> Optional<T>
FormattedText.visit
(FormattedText.StyledContentConsumer<T> p_130771_, Style p_130772_) ModifierConstructorDescriptionChatTypeDecoration
(String translationKey, List<ChatTypeDecoration.Parameter> parameters, Style style) Creates an instance of aChatTypeDecoration
record class.(package private)
MutableComponent
(ComponentContents p_237200_, List<Component> p_237201_, Style p_237202_) ModifierConstructorDescriptionprivate
SubStringSource
(String p_131232_, List<Style> p_131233_, it.unimi.dsi.fastutil.ints.Int2IntFunction p_131234_) -
Uses of Style in net.minecraft.network.chat.contents
Modifier and TypeMethodDescription<T> Optional<T>
KeybindContents.visit
(FormattedText.StyledContentConsumer<T> p_237352_, Style p_237353_) <T> Optional<T>
LiteralContents.visit
(FormattedText.StyledContentConsumer<T> p_237375_, Style p_237376_) <T> Optional<T>
SelectorContents.visit
(FormattedText.StyledContentConsumer<T> p_237476_, Style p_237477_) <T> Optional<T>
TranslatableContents.visit
(FormattedText.StyledContentConsumer<T> p_237521_, Style p_237522_) -
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)