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.lineBreakStyle(package private) final StyleStringSplitter.LineComponent.styleMethods in net.minecraft.client that return StyleMethods in net.minecraft.client with parameters of type StyleModifier and TypeMethodDescriptionbooleanvoidbooleanintStringSplitter.findLineBreak(String pContent, int pMaxWidth, Style pStyle) private booleanStringSplitter.LineBreakFinder.finishIteration(int pLineBreak, Style pLineBreakStyle) floatStringSplitter.headByWidth(FormattedText pContent, int pMaxWidth, Style pStyle) StringSplitter.plainHeadByWidth(String pContent, int pMaxWidth, Style pStyle) intStringSplitter.plainIndexAtWidth(String pContent, int pMaxWidth, Style pStyle) StringSplitter.plainTailByWidth(String pContent, int pMaxWidth, Style pStyle) StringSplitter.splitLines(String pContent, int pMaxWidth, Style pStyle) voidStringSplitter.splitLines(String pContent, int pMaxWidth, Style pStyle, boolean pWithNewLines, StringSplitter.LinePosConsumer pLinePos) StringSplitter.splitLines(FormattedText pContent, int pMaxWidth, Style pStyle) voidStringSplitter.splitLines(FormattedText pContent, int pMaxWidth, Style pStyle, BiConsumer<FormattedText, Boolean> pSplitifier) <T> Optional<T> StringSplitter.LineComponent.visit(FormattedText.StyledContentConsumer<T> pAcceptor, Style pStyle) Constructors in net.minecraft.client with parameters of type Style -
Uses of Style in net.minecraft.client.gui
Fields in net.minecraft.client.gui declared as StyleModifier and TypeFieldDescription(package private) @Nullable StyleGuiGraphics.clickableTextStyle(package private) @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 pPositionInCurrentSequence, Style pStyle, BakedGlyph pGlyph) void(package private) BakedGlyphprivate intFont.PreparedTextBuilder.getShadowColor(Style pStyle, int pTextColor) voidGuiGraphics.renderComponentHoverEffect(Font pFont, @Nullable Style pStyle, int pMouseX, int pMouseY) 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 pRenderState, float pMouseX, float pMouseY, Consumer<Style> pStyleScanner) GuiGraphics.textRenderer(GuiGraphics.HoveredTextEffects pHoveredTextEffects, @Nullable Consumer<Style> pAdditionalConsumer) Constructor parameters in net.minecraft.client.gui with type arguments of type StyleModifierConstructorDescription(package private)RenderingTextCollector(ActiveTextCollector.Parameters pDefaultParameters, GuiGraphics.HoveredTextEffects pHoveredTextEffects, @Nullable Consumer<Style> pAdditionalConsumer) -
Uses of Style in net.minecraft.client.gui.components
Fields 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_STYLEFields 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 TypeMethodDescriptionvoidMethod parameters in net.minecraft.client.gui.components with type arguments of type StyleModifier and TypeMethodDescriptionAbstractStringWidget.setComponentClickHandler(@Nullable Consumer<Style> pComponentClickHandler) -
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.(package private)Instance(GlyphRenderTypes renderTypes, GpuTextureView textureView, TextureAtlasSprite sprite, float x, float y, int color, int shadowColor, float shadowOffset, Style style) Creates an instance of aInstancerecord class.(package private)Instance(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 pX, float pY, int pColor, int pShadowColor, Style pStyle, float pBoldOffset, float pShadowOffset) BakedSheetGlyph.createGlyph(float p_439638_, float p_439877_, int p_440324_, int p_439600_, Style p_440608_, float p_440490_, float p_440025_) Constructors in net.minecraft.client.gui.font.glyphs with parameters of type StyleModifierConstructorDescription(package private)GlyphInstance(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 pStyle, boolean pInsert) -
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 TypeMethodDescription(package private) static voidDialogBodyHandlers.runActionOnParent(DialogScreen<?> pScreen, @Nullable Style pStyle) -
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 pStyle) -
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
Methods in net.minecraft.commands.arguments that return StyleModifier and TypeMethodDescriptionstatic StyleStyleArgument.getStyle(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, String pName) -
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 pFormatting) Style.applyFormats(ChatFormatting... pFormats) Style.applyLegacyFormat(ChatFormatting pFormatting) Merges the style with another one.private static <T> StyleStyle.checkEmptyAfterChange(Style pStyle, @Nullable T pOldValue, @Nullable T pNewValue) private static StyleStyle.create(Optional<TextColor> pColor, Optional<Integer> pShadowColor, Optional<Boolean> pBold, Optional<Boolean> pItalic, Optional<Boolean> pUnderlined, Optional<Boolean> pStrikethrough, Optional<Boolean> pObfuscated, Optional<ClickEvent> pClickEvent, Optional<HoverEvent> pHoverEvent, Optional<String> pInsertion, Optional<FontDescription> pFont) Component.getStyle()MutableComponent.getStyle()private static StyleComponentUtils.resolveStyle(@Nullable CommandSourceStack pCommandSourceStack, Style pStyle, @Nullable Entity pEntity, int pRecursionDepth) ChatTypeDecoration.style()Returns the value of thestylerecord component.Style.withClickEvent(@Nullable ClickEvent pClickEvent) Style.withColor(int pColor) Style.withColor(@Nullable ChatFormatting pFormatting) Style.withFont(@Nullable FontDescription pFont) Style.withHoverEvent(@Nullable HoverEvent pHoverEvent) Style.withInsertion(@Nullable String pInsertion) Style.withItalic(@Nullable Boolean pItalic) Style.withObfuscated(@Nullable Boolean pObfuscated) Style.withoutShadow()Style.withShadowColor(int pColor) Style.withStrikethrough(@Nullable Boolean pStrikethrough) Style.withUnderlined(@Nullable Boolean pUnderlined) Methods in net.minecraft.network.chat with parameters of type StyleModifier and TypeMethodDescriptionMerges the style with another one.private static <T> StyleStyle.checkEmptyAfterChange(Style pStyle, @Nullable T pOldValue, @Nullable T pNewValue) static ComponentComponentUtils.mergeStyles(Component pComponent, Style pStyle) static MutableComponentComponentUtils.mergeStyles(MutableComponent pComponent, Style pStyle) Merge the component's styles with the given Style.static FormattedTextprivate static StyleComponentUtils.resolveStyle(@Nullable CommandSourceStack pCommandSourceStack, Style pStyle, @Nullable Entity pEntity, int pRecursionDepth) Sets the style for this component and returns the component itself.Component.toFlatList(Style pStyle) default <T> Optional<T> Component.visit(FormattedText.StyledContentConsumer<T> pAcceptor, Style pStyle) default <T> Optional<T> ComponentContents.visit(FormattedText.StyledContentConsumer<T> pStyledContentConsumer, Style pStyle) <T> Optional<T> FormattedText.visit(FormattedText.StyledContentConsumer<T> pAcceptor, Style pStyle) 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 pContents, List<Component> pSiblings, Style pStyle) Constructor parameters in net.minecraft.network.chat with type arguments of type StyleModifierConstructorDescriptionprivateSubStringSource(String pPlainText, List<Style> pCharStyles, it.unimi.dsi.fastutil.ints.Int2IntFunction pReverseCharModifier) -
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> p_237352_, Style p_237353_) <T> Optional<T> ObjectContents.visit(FormattedText.StyledContentConsumer<T> p_436739_, Style p_436641_) <T> Optional<T> PlainTextContents.LiteralContents.visit(FormattedText.StyledContentConsumer<T> p_304890_, Style p_304907_) <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.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 pText, Style pStyle, it.unimi.dsi.fastutil.ints.Int2IntFunction pCodePointMapper) static FormattedCharSequenceprivate static booleanStringDecomposer.feedChar(Style pStyle, FormattedCharSink pSink, int pPosition, char pCharacter) static FormattedCharSequencestatic FormattedCharSequenceFormattedCharSequence.forward(String pText, Style pStyle, it.unimi.dsi.fastutil.ints.Int2IntFunction pCodePointMapper) static booleanStringDecomposer.iterate(String pText, Style pStyle, FormattedCharSink pSink) static booleanStringDecomposer.iterateBackwards(String pText, Style pStyle, FormattedCharSink pSink) static booleanStringDecomposer.iterateFormatted(String pText, int pSkip, Style pCurrentStyle, Style pDefaultStyle, FormattedCharSink pSink) Iterate a String while applying legacy formatting codes starting with a§sign.static booleanStringDecomposer.iterateFormatted(String pText, int pSkip, Style pStyle, FormattedCharSink pSink) Iterate a String while applying legacy formatting codes starting with a§sign.static booleanStringDecomposer.iterateFormatted(String pText, Style pStyle, FormattedCharSink pSink) Iterate a String while applying legacy formatting codes starting with a§sign.static booleanStringDecomposer.iterateFormatted(FormattedText pText, Style pStyle, FormattedCharSink pSink) -
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> pContext, ResourceKey<TrimMaterial> pKey, Style pStyle, MaterialAssetGroup pAssets) -
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)