Uses of Interface
net.kyori.adventure.text.format.Style
Packages that use Style
Package
Description
Data for controlling components, their styles, and events.
Flatteners to convert component trees into linear strings.
Formats which may be applied to components.
-
Uses of Style in net.kyori.adventure.text
Methods in net.kyori.adventure.text that return StyleModifier and TypeMethodDescriptionJoinConfiguration.parentStyle()Gets the style of the parent component that contains the joined components.Component.style()Gets the style of this component.Methods in net.kyori.adventure.text with parameters of type StyleModifier and TypeMethodDescriptiondefault ComponentComponent.applyFallbackStyle(Style style) Apply a fallback style for this component and its children.default CScopedComponent.applyFallbackStyle(Style style) default ComponentCreate a new component with any redundant style elements or children removed.static KeybindComponentCreates a keybind component with a keybind and styling.static KeybindComponentComponent.keybind(KeybindComponent.KeybindLike keybind, Style style) Creates a keybind component with a keybind and styling.JoinConfiguration.Builder.parentStyle(Style parentStyle) Sets the style of the parent component that contains the joined components.Sets the style of this component.Sets the style.static TextComponentCreates a text component with the content ofString.valueOf(boolean)and styling.static TextComponentCreates a text component with the content ofString.valueOf(char)and styling.static TextComponentCreates a text component with the content ofString.valueOf(double)and styling.static TextComponentCreates a text component with the content ofString.valueOf(float)and styling.static TextComponentCreates a text component with the content ofString.valueOf(int)and styling.static TextComponentCreates a text component with the content ofString.valueOf(long)and styling.static TextComponentCreates a text component with content and styling.static TranslatableComponentComponent.translatable(String key, @Nullable String fallback, Style style) Creates a translatable component with a translation key, optional fallback string, and styling.static TranslatableComponentComponent.translatable(String key, @Nullable String fallback, Style style, List<? extends ComponentLike> args) Creates a translatable component with a translation key, optional fallback string, and arguments.static TranslatableComponentComponent.translatable(String key, @Nullable String fallback, Style style, ComponentLike... args) Creates a translatable component with a translation key, optional fallback string, and styling.static TranslatableComponentComponent.translatable(String key, Style style) Creates a translatable component with a translation key and styling.static TranslatableComponentComponent.translatable(String key, Style style, List<? extends ComponentLike> args) Creates a translatable component with a translation key and styling.static TranslatableComponentComponent.translatable(String key, Style style, ComponentLike... args) Creates a translatable component with a translation key and styling.static TranslatableComponentComponent.translatable(Translatable translatable, @Nullable String fallback, Style style) Creates a translatable component with a translation key, optional fallback string, and styling.static TranslatableComponentComponent.translatable(Translatable translatable, @Nullable String fallback, Style style, List<? extends ComponentLike> args) Creates a translatable component with a translation key, optional fallback string, and arguments.static TranslatableComponentComponent.translatable(Translatable translatable, @Nullable String fallback, Style style, ComponentLike... args) Creates a translatable component with a translation key, optional fallback string, and styling.static TranslatableComponentComponent.translatable(Translatable translatable, Style style) Creates a translatable component with a translation key and styling.static TranslatableComponentComponent.translatable(Translatable translatable, Style style, List<? extends ComponentLike> args) Creates a translatable component with a translation key and styling.static TranslatableComponentComponent.translatable(Translatable translatable, Style style, ComponentLike... args) Creates a translatable component with a translation key and styling.static <C> VirtualComponentComponent.virtual(Class<C> contextType, VirtualComponentRenderer<C> renderer, Style style) Creates a virtual component with a value. -
Uses of Style in net.kyori.adventure.text.flattener
Methods in net.kyori.adventure.text.flattener with parameters of type Style -
Uses of Style in net.kyori.adventure.text.format
Methods in net.kyori.adventure.text.format that return StyleModifier and TypeMethodDescriptionStyle.Builder.build()Builds the style.Style.clickEvent(@Nullable ClickEvent<?> event) Sets the click event.Sets the color.Style.colorIfAbsent(@Nullable TextColor color) Sets the color if there isn't one set already.default StyleStyle.decorate(TextDecoration decoration) Sets the state ofdecorationtoTextDecoration.State.TRUEon this style.default StyleStyle.decoration(TextDecoration decoration, boolean flag) Sets the state of a decoration on this style.Style.decoration(TextDecoration decoration, TextDecoration.State state) Sets the value of a decoration on this style.Style.decorationIfAbsent(TextDecoration decoration, TextDecoration.State state) Sets the state of a decoration on this style tostateif the current state of the decoration isTextDecoration.State.NOT_SET.Style.decorations(Map<TextDecoration, TextDecoration.State> decorations) Sets decorations for this style using the specifieddecorationsmap.default StyleStyle.edit(Consumer<Style.Builder> consumer) Edits this style.default StyleStyle.edit(Consumer<Style.Builder> consumer, Style.Merge.Strategy strategy) Edits this style.static StyleStyle.empty()Gets an empty style.Sets the font.Style.hoverEvent(@Nullable HoverEventSource<?> source) Sets the hover event.Sets the string to be inserted when this style is shift-clicked.default StyleMerges from another style into this style.default StyleStyle.merge(Style that, Set<Style.Merge> merges) Merges from another style into this style.default StyleStyle.merge(Style that, Style.Merge merge) Merges from another style into this style.default StyleStyle.merge(Style that, Style.Merge... merges) Merges from another style into this style.default StyleStyle.merge(Style that, Style.Merge.Strategy strategy) Merges from another style into this style.Style.merge(Style that, Style.Merge.Strategy strategy, Set<Style.Merge> merges) Merges from another style into this style.default StyleStyle.merge(Style that, Style.Merge.Strategy strategy, Style.Merge merge) Merges from another style into this style.default StyleStyle.merge(Style that, Style.Merge.Strategy strategy, Style.Merge... merges) Merges from another style into this style.static StyleStyle.style(Iterable<? extends StyleBuilderApplicable> applicables) Creates a style withapplicablesapplied.static StyleStyle.style(Consumer<Style.Builder> consumer) Creates a style.static StyleStyle.style(@Nullable StyleBuilderApplicable... applicables) Creates a style withapplicablesapplied.static StyleCreates a style with color.static StyleStyle.style(@Nullable TextColor color, Set<TextDecoration> decorations) Creates a style with color and decorations.static StyleStyle.style(@Nullable TextColor color, TextDecoration... decorations) Creates a style with color and decorations.static StyleStyle.style(TextDecoration decoration) Creates a style with decoration.Simplify this style to remove any information that is redundant.Methods in net.kyori.adventure.text.format with parameters of type StyleModifier and TypeMethodDescriptiondefault Style.BuilderMerges from another style into this style.default Style.BuilderStyle.Builder.merge(Style that, Set<Style.Merge> merges) Merges from another style into this style.default Style.BuilderStyle.Builder.merge(Style that, Style.Merge... merges) Merges from another style into this style.default Style.BuilderStyle.Builder.merge(Style that, Style.Merge.Strategy strategy) Merges from another style into this style.Style.Builder.merge(Style that, Style.Merge.Strategy strategy, Set<Style.Merge> merges) Merges from another style into this style.default Style.BuilderStyle.Builder.merge(Style that, Style.Merge.Strategy strategy, Style.Merge... merges) Merges from another style into this style.default StyleMerges from another style into this style.default StyleStyle.merge(Style that, Set<Style.Merge> merges) Merges from another style into this style.default StyleStyle.merge(Style that, Style.Merge merge) Merges from another style into this style.default StyleStyle.merge(Style that, Style.Merge... merges) Merges from another style into this style.default StyleStyle.merge(Style that, Style.Merge.Strategy strategy) Merges from another style into this style.Style.merge(Style that, Style.Merge.Strategy strategy, Set<Style.Merge> merges) Merges from another style into this style.default StyleStyle.merge(Style that, Style.Merge.Strategy strategy, Style.Merge merge) Merges from another style into this style.default StyleStyle.merge(Style that, Style.Merge.Strategy strategy, Style.Merge... merges) Merges from another style into this style.Simplify this style to remove any information that is redundant.