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 StyleStringSplitter.LineBreakFinder.lastSpaceStyleprivate StyleStringSplitter.LineBreakFinder.lineBreakStyleprivate final StyleStringSplitter.LineComponent.styleMethods in net.minecraft.client that return StyleMethods in net.minecraft.client with parameters of type StyleModifier and TypeMethodDescriptionbooleanvoidbooleanintStringSplitter.findLineBreak(String input, int max, Style initialStyle) private booleanStringSplitter.LineBreakFinder.finishIteration(int lineBreak, Style style) floatStringSplitter.headByWidth(FormattedText text, int width, Style initialStyle) StringSplitter.plainHeadByWidth(String str, int maxWidth, Style style) intStringSplitter.plainIndexAtWidth(String str, int maxWidth, Style style) StringSplitter.plainTailByWidth(String str, int maxWidth, Style style) StringSplitter.splitLines(String input, int maxWidth, Style initialStyle) voidStringSplitter.splitLines(String input, int maxWidth, Style initialStyle, boolean includeAll, StringSplitter.LinePosConsumer output) StringSplitter.splitLines(FormattedText input, int maxWidth, Style initialStyle) voidStringSplitter.splitLines(FormattedText input, int maxWidth, Style initialStyle, BiConsumer<FormattedText, Boolean> output) <T> Optional<T> StringSplitter.LineComponent.visit(FormattedText.StyledContentConsumer<T> output, Style parentStyle) Constructors in net.minecraft.client with parameters of type Style -
Uses of Style in net.minecraft.client.gui
Classes in net.minecraft.client.gui that implement interfaces with type arguments of type StyleFields in net.minecraft.client.gui declared as StyleModifier and TypeFieldDescriptionprivate @Nullable StyleGuiGraphics.clickableTextStyleprivate @Nullable StyleGuiGraphics.hoveredTextStyleprivate @Nullable StyleActiveTextCollector.ClickableStyleFinder.resultFields in net.minecraft.client.gui with type parameters of type StyleModifier and TypeFieldDescriptionGuiGraphics.RenderingTextCollector.additionalConsumerActiveTextCollector.ClickableStyleFinder.styleScannerMethods in net.minecraft.client.gui that return StyleModifier and TypeMethodDescription@Nullable StyleActiveTextCollector.ClickableStyleFinder.result()Methods in net.minecraft.client.gui with parameters of type StyleModifier and TypeMethodDescriptionbooleanbooleanFont.PreparedTextBuilder.accept(int position, Style style, BakedGlyph glyph) voidprivate BakedGlyphprivate intFont.PreparedTextBuilder.getShadowColor(Style style, int textColor) voidGuiGraphics.renderComponentHoverEffect(Font font, @Nullable Style hoveredStyle, int xMouse, int yMouse) Renders a hover effect for a text component at the specified mouse coordinates.Method parameters in net.minecraft.client.gui with type arguments of type StyleModifier and TypeMethodDescriptionstatic voidActiveTextCollector.findElementUnderCursor(GuiTextRenderState text, float testX, float testY, Consumer<Style> output) GuiGraphics.textRenderer(GuiGraphics.HoveredTextEffects hoveredTextEffects, @Nullable Consumer<Style> additionalHoverStyleConsumer) Constructor parameters in net.minecraft.client.gui with type arguments of type StyleModifierConstructorDescriptionprivateRenderingTextCollector(ActiveTextCollector.Parameters initialParameters, GuiGraphics.HoveredTextEffects hoveredTextEffects, @Nullable Consumer<Style> additonalConsumer) -
Uses of Style in net.minecraft.client.gui.components
Classes in net.minecraft.client.gui.components that implement interfaces with type arguments of type StyleFields in net.minecraft.client.gui.components declared as StyleModifier and TypeFieldDescriptionstatic final StyleEditBox.DEFAULT_HINT_STYLEprivate @Nullable StyleChatComponent.DrawingFocusedGraphicsAccess.hoveredStyleprivate static final StyleCommandSuggestions.LITERAL_STYLEprivate static final StyleChatComponent.QUEUE_EXPAND_TEXT_STYLEstatic final StyleEditBox.SEARCH_HINT_STYLEprivate static final StyleCommandSuggestions.UNPARSED_STYLEstatic final StyleCommandSuggestions.USAGE_FORMATFields in net.minecraft.client.gui.components with type parameters of type StyleModifier and TypeFieldDescriptionCommandSuggestions.ARGUMENT_STYLESAbstractStringWidget.componentClickHandlerMethods in net.minecraft.client.gui.components with parameters of type StyleModifier and TypeMethodDescriptionvoidprivate List<FormattedCharSequence> CommandSuggestions.fillNodeUsage(com.mojang.brigadier.context.SuggestionContext<ClientSuggestionProvider> suggestionContext, Style usageFormat) Method parameters in net.minecraft.client.gui.components with type arguments of type StyleModifier and TypeMethodDescriptionAbstractStringWidget.setComponentClickHandler(@Nullable Consumer<Style> clickEventConsumer) -
Uses of Style in net.minecraft.client.gui.font
Fields in net.minecraft.client.gui.font declared as StyleModifier and TypeFieldDescriptionprivate final StyleAtlasGlyphProvider.Instance.styleThe field for thestylerecord component.private final StyleEmptyArea.styleThe field for thestylerecord component.private final StylePlayerGlyphProvider.Instance.styleThe field for thestylerecord component.Methods in net.minecraft.client.gui.font that return StyleModifier and TypeMethodDescriptionActiveArea.style()AtlasGlyphProvider.Instance.style()Returns the value of thestylerecord component.EmptyArea.style()Returns the value of thestylerecord component.PlayerGlyphProvider.Instance.style()Returns the value of thestylerecord component.Constructors in net.minecraft.client.gui.font with parameters of type StyleModifierConstructorDescriptionCreates an instance of aEmptyArearecord class.privateInstance(GlyphRenderTypes renderTypes, GpuTextureView textureView, TextureAtlasSprite sprite, float x, float y, int color, int shadowColor, float shadowOffset, Style style) Creates an instance of aInstancerecord class.privateInstance(Supplier<PlayerSkinRenderCache.RenderInfo> skin, boolean hat, float x, float y, int color, int shadowColor, float shadowOffset, Style style) Creates an instance of aInstancerecord class. -
Uses of Style in net.minecraft.client.gui.font.glyphs
Fields in net.minecraft.client.gui.font.glyphs declared as StyleModifier and TypeFieldDescriptionprivate final StyleBakedSheetGlyph.GlyphInstance.styleThe field for thestylerecord component.Methods in net.minecraft.client.gui.font.glyphs that return StyleModifier and TypeMethodDescriptionBakedSheetGlyph.GlyphInstance.style()Returns the value of thestylerecord component.Methods in net.minecraft.client.gui.font.glyphs with parameters of type StyleModifier and TypeMethodDescription@Nullable TextRenderable.StyledBakedGlyph.createGlyph(float x, float y, int color, int shadowColor, Style style, float boldOffset, float shadowOffset) BakedSheetGlyph.createGlyph(float x, float y, int color, int shadowColor, Style style, float boldOffset, float shadowOffset) Constructors in net.minecraft.client.gui.font.glyphs with parameters of type StyleModifierConstructorDescriptionprivateGlyphInstance(float x, float y, int color, int shadowColor, BakedSheetGlyph glyph, Style style, float boldOffset, float shadowOffset) Creates an instance of aGlyphInstancerecord class. -
Uses of Style in net.minecraft.client.gui.screens
Methods in net.minecraft.client.gui.screens with parameters of type StyleModifier and TypeMethodDescriptionprivate booleanChatScreen.handleComponentClicked(Style clicked, boolean allowInsertions) -
Uses of Style in net.minecraft.client.gui.screens.dialog.body
Methods in net.minecraft.client.gui.screens.dialog.body with parameters of type StyleModifier and TypeMethodDescriptionprivate static voidDialogBodyHandlers.runActionOnParent(DialogScreen<?> parent, @Nullable Style clickedStyle) -
Uses of Style in net.minecraft.client.gui.screens.inventory
Fields in net.minecraft.client.gui.screens.inventory declared as StyleModifier and TypeFieldDescriptionprivate static final StyleBookViewScreen.PAGE_TEXT_STYLEprivate static final StyleEnchantmentNames.ROOT_STYLE -
Uses of Style in net.minecraft.client.multiplayer.chat
Methods in net.minecraft.client.multiplayer.chat with parameters of type StyleModifier and TypeMethodDescriptionprivate static booleanChatTrustLevel.isModifiedStyle(Style style) -
Uses of Style in net.minecraft.client.resources
Fields in net.minecraft.client.resources declared as Style -
Uses of Style in net.minecraft.commands.arguments
Subclasses with type arguments of type Style in net.minecraft.commands.argumentsMethods in net.minecraft.commands.arguments that return StyleModifier and TypeMethodDescriptionstatic StyleStyleArgument.getStyle(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, String name) -
Uses of Style in net.minecraft.network.chat
Fields in net.minecraft.network.chat declared as StyleModifier and TypeFieldDescriptionstatic final StyleStyle.EMPTYstatic final StyleFilterMask.FILTERED_STYLEprivate final StyleChatTypeDecoration.styleThe field for thestylerecord component.private StyleMutableComponent.styleFields in net.minecraft.network.chat with type parameters of type StyleModifier and TypeFieldDescriptionSubStringSource.charStylesstatic final com.mojang.serialization.Codec<Style> Style.Serializer.CODECstatic final com.mojang.serialization.MapCodec<Style> Style.Serializer.MAP_CODECstatic final StreamCodec<RegistryFriendlyByteBuf, Style> Style.Serializer.TRUSTED_STREAM_CODECMethods in net.minecraft.network.chat that return StyleModifier and TypeMethodDescriptionStyle.applyFormat(ChatFormatting format) Style.applyFormats(ChatFormatting... formats) Style.applyLegacyFormat(ChatFormatting format) Merges the style with another one.private static <T> StyleStyle.checkEmptyAfterChange(Style newStyle, @Nullable T previous, @Nullable T next) private static StyleStyle.create(Optional<TextColor> color, Optional<Integer> shadowColor, Optional<Boolean> bold, Optional<Boolean> italic, Optional<Boolean> underlined, Optional<Boolean> strikethrough, Optional<Boolean> obfuscated, Optional<ClickEvent> clickEvent, Optional<HoverEvent> hoverEvent, Optional<String> insertion, Optional<FontDescription> font) Component.getStyle()MutableComponent.getStyle()private static StyleComponentUtils.resolveStyle(@Nullable CommandSourceStack source, Style style, @Nullable Entity entity, int recursionDepth) ChatTypeDecoration.style()Returns the value of thestylerecord component.Style.withClickEvent(@Nullable ClickEvent clickEvent) Style.withColor(int color) Style.withColor(@Nullable ChatFormatting color) Style.withFont(@Nullable FontDescription font) Style.withHoverEvent(@Nullable HoverEvent hoverEvent) Style.withInsertion(@Nullable String insertion) Style.withItalic(@Nullable Boolean italic) Style.withObfuscated(@Nullable Boolean obfuscated) Style.withoutShadow()Style.withShadowColor(int shadowColor) Style.withStrikethrough(@Nullable Boolean strikethrough) Style.withUnderlined(@Nullable Boolean underlined) Methods in net.minecraft.network.chat with parameters of type StyleModifier and TypeMethodDescriptionMerges the style with another one.private static <T> StyleStyle.checkEmptyAfterChange(Style newStyle, @Nullable T previous, @Nullable T next) static ComponentComponentUtils.mergeStyles(Component component, Style style) static MutableComponentComponentUtils.mergeStyles(MutableComponent component, Style style) Merge the component's styles with the given Style.static FormattedTextprivate static StyleComponentUtils.resolveStyle(@Nullable CommandSourceStack source, Style style, @Nullable Entity entity, int recursionDepth) Sets the style for this component and returns the component itself.Component.toFlatList(Style rootStyle) default <T> Optional<T> Component.visit(FormattedText.StyledContentConsumer<T> output, Style parentStyle) default <T> Optional<T> ComponentContents.visit(FormattedText.StyledContentConsumer<T> output, Style currentStyle) <T> Optional<T> FormattedText.visit(FormattedText.StyledContentConsumer<T> output, Style parentStyle) Method parameters in net.minecraft.network.chat with type arguments of type StyleConstructors in net.minecraft.network.chat with parameters of type StyleModifierConstructorDescriptionChatTypeDecoration(String translationKey, List<ChatTypeDecoration.Parameter> parameters, Style style) Creates an instance of aChatTypeDecorationrecord class.(package private)MutableComponent(ComponentContents contents, List<Component> siblings, Style style) Constructor parameters in net.minecraft.network.chat with type arguments of type StyleModifierConstructorDescriptionprivateSubStringSource(String plainText, List<Style> charStyles, it.unimi.dsi.fastutil.ints.Int2IntFunction reverseCharModifier) -
Uses of Style in net.minecraft.network.chat.contents
Methods in net.minecraft.network.chat.contents with parameters of type StyleModifier and TypeMethodDescription<T> Optional<T> KeybindContents.visit(FormattedText.StyledContentConsumer<T> output, Style currentStyle) <T> Optional<T> ObjectContents.visit(FormattedText.StyledContentConsumer<T> output, Style currentStyle) <T> Optional<T> PlainTextContents.LiteralContents.visit(FormattedText.StyledContentConsumer<T> output, Style currentStyle) <T> Optional<T> SelectorContents.visit(FormattedText.StyledContentConsumer<T> output, Style currentStyle) <T> Optional<T> TranslatableContents.visit(FormattedText.StyledContentConsumer<T> output, Style currentStyle) -
Uses of Style in net.minecraft.network.chat.numbers
Fields in net.minecraft.network.chat.numbers declared as StyleModifier and TypeFieldDescriptionprivate final StyleStyledFormat.styleThe field for thestylerecord component.Methods in net.minecraft.network.chat.numbers that return StyleModifier and TypeMethodDescriptionStyledFormat.style()Returns the value of thestylerecord component.Constructors in net.minecraft.network.chat.numbers with parameters of type StyleModifierConstructorDescriptionStyledFormat(Style style) Creates an instance of aStyledFormatrecord class. -
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 TypeMethodDescriptionbooleanAccepts a single code point from aFormattedCharSequence.static FormattedCharSequencestatic FormattedCharSequenceFormattedCharSequence.backward(String plainText, Style style, it.unimi.dsi.fastutil.ints.Int2IntFunction modifier) static FormattedCharSequenceprivate static booleanStringDecomposer.feedChar(Style style, FormattedCharSink output, int pos, char ch) static FormattedCharSequencestatic FormattedCharSequenceFormattedCharSequence.forward(String plainText, Style style, it.unimi.dsi.fastutil.ints.Int2IntFunction modifier) static booleanStringDecomposer.iterate(String string, Style style, FormattedCharSink output) static booleanStringDecomposer.iterateBackwards(String string, Style style, FormattedCharSink output) static booleanStringDecomposer.iterateFormatted(String string, int offset, Style currentStyle, Style resetStyle, FormattedCharSink output) Iterate a String while applying legacy formatting codes starting with a§sign.static booleanStringDecomposer.iterateFormatted(String string, int offset, Style style, FormattedCharSink output) Iterate a String while applying legacy formatting codes starting with a§sign.static booleanStringDecomposer.iterateFormatted(String string, Style style, FormattedCharSink output) Iterate a String while applying legacy formatting codes starting with a§sign.static booleanStringDecomposer.iterateFormatted(FormattedText component, Style rootStyle, FormattedCharSink output) -
Uses of Style in net.minecraft.world.damagesource
Fields in net.minecraft.world.damagesource declared as Style -
Uses of Style in net.minecraft.world.item
Fields in net.minecraft.world.item with type parameters of type StyleMethods in net.minecraft.world.item that return types with arguments of type StyleConstructor parameters in net.minecraft.world.item with type arguments of type StyleModifierConstructorDescriptionprivateRarity(int id, String name, UnaryOperator<Style> styleModifier) -
Uses of Style in net.minecraft.world.item.component
Fields in net.minecraft.world.item.component declared as Style -
Uses of Style in net.minecraft.world.item.equipment.trim
Methods in net.minecraft.world.item.equipment.trim with parameters of type StyleModifier and TypeMethodDescriptionprivate static voidTrimMaterials.register(BootstrapContext<TrimMaterial> context, ResourceKey<TrimMaterial> registryKey, Style hoverTextStyle, MaterialAssetGroup assets) -
Uses of Style in net.minecraft.world.scores
Fields in net.minecraft.world.scores declared as Style -
Uses of Style in net.neoforged.neoforge.client.gui
Methods in net.neoforged.neoforge.client.gui that return StyleModifier and TypeMethodDescriptionprivate @Nullable StyleModListScreen.InfoPanel.findTextLine(int mouseX, int mouseY) @Nullable StyleModMismatchDisconnectedScreen.MismatchInfoPanel.getComponentStyleAt(double x, double y) -
Uses of Style in net.neoforged.neoforge.common.util
Methods in net.neoforged.neoforge.common.util with parameters of type StyleModifier and TypeMethodDescription<T> Optional<T> InsertingContents.visit(FormattedText.StyledContentConsumer<T> visitor, Style style)