Uses of Enum Class
net.kyori.adventure.text.format.TextDecoration
Packages that use TextDecoration
Package
Description
Data for controlling components, their styles, and events.
Formats which may be applied to components.
-
Uses of TextDecoration in net.kyori.adventure.text
Methods in net.kyori.adventure.text that return types with arguments of type TextDecorationModifier and TypeMethodDescriptiondefault Map<TextDecoration, TextDecoration.State> Component.decorations()Gets a map of decorations this component has.Methods in net.kyori.adventure.text with parameters of type TextDecorationModifier and TypeMethodDescriptiondefault ComponentComponent.decorate(TextDecoration decoration) Sets the state ofdecorationtoTextDecoration.State.TRUEon this component.default BComponentBuilder.decorate(TextDecoration decoration) Sets the state ofdecorationtoTextDecoration.State.TRUE.default BComponentBuilder.decorate(TextDecoration... decorations) SetsdecorationstoTextDecoration.State.TRUE.default CScopedComponent.decorate(TextDecoration decoration) default TextDecoration.StateComponent.decoration(TextDecoration decoration) Gets the state of a decoration on this component.default ComponentComponent.decoration(TextDecoration decoration, boolean flag) Sets the state of a decoration on this component.default ComponentComponent.decoration(TextDecoration decoration, TextDecoration.State state) Sets the value of a decoration on this component.default BComponentBuilder.decoration(TextDecoration decoration, boolean flag) Sets the state of a decoration on this component.ComponentBuilder.decoration(TextDecoration decoration, TextDecoration.State state) Sets the value of a decoration on this component.default CScopedComponent.decoration(TextDecoration decoration, boolean flag) default CScopedComponent.decoration(TextDecoration decoration, TextDecoration.State state) default ComponentComponent.decorationIfAbsent(TextDecoration decoration, TextDecoration.State state) Sets the state of a decoration on this component tostateif the current state of the decoration isTextDecoration.State.NOT_SET.ComponentBuilder.decorationIfAbsent(TextDecoration decoration, TextDecoration.State state) Sets the state of a decoration on this component tostateif the current state of the decoration isTextDecoration.State.NOT_SET.default CScopedComponent.decorationIfAbsent(TextDecoration decoration, TextDecoration.State state) default booleanComponent.hasDecoration(TextDecoration decoration) Tests if this component has a decoration.static KeybindComponentComponent.keybind(String keybind, @Nullable TextColor color, TextDecoration... decorations) Creates a keybind component with a keybind, and optional color and decorations.static KeybindComponentComponent.keybind(KeybindComponent.KeybindLike keybind, @Nullable TextColor color, TextDecoration... decorations) Creates a keybind component with a keybind, and optional color and decorations.static TextComponentComponent.text(boolean value, @Nullable TextColor color, TextDecoration... decorations) Creates a text component with the content ofString.valueOf(boolean), and optional color and decorations.static TextComponentComponent.text(char value, @Nullable TextColor color, TextDecoration... decorations) Creates a text component with the content ofString.valueOf(char), and optional color and decorations.static TextComponentComponent.text(double value, @Nullable TextColor color, TextDecoration... decorations) Creates a text component with the content ofString.valueOf(double), and optional color and decorations.static TextComponentComponent.text(float value, @Nullable TextColor color, TextDecoration... decorations) Creates a text component with the content ofString.valueOf(float), and optional color and decorations.static TextComponentComponent.text(int value, @Nullable TextColor color, TextDecoration... decorations) Creates a text component with the content ofString.valueOf(int), and optional color and decorations.static TextComponentComponent.text(long value, @Nullable TextColor color, TextDecoration... decorations) Creates a text component with the content ofString.valueOf(long), and optional color and decorations.static TextComponentComponent.text(String content, @Nullable TextColor color, TextDecoration... decorations) Creates a text component with content, and optional color and decorations.static TranslatableComponentComponent.translatable(String key, @Nullable TextColor color, TextDecoration... decorations) Creates a translatable component with a translation key, and optional color and decorations.static TranslatableComponentComponent.translatable(Translatable translatable, @Nullable TextColor color, TextDecoration... decorations) Creates a translatable component with a translation key, and optional color and decorations.Method parameters in net.kyori.adventure.text with type arguments of type TextDecorationModifier and TypeMethodDescriptiondefault ComponentComponent.decorations(Map<TextDecoration, TextDecoration.State> decorations) Sets decorations for this component's style using the specifieddecorationsmap.default BComponentBuilder.decorations(Map<TextDecoration, TextDecoration.State> decorations) Sets decorations for this component's style using the specifieddecorationsmap.default BComponentBuilder.decorations(Set<TextDecoration> decorations, boolean flag) Sets the state of a set of decorations toflagon this component.default CScopedComponent.decorations(Map<TextDecoration, TextDecoration.State> decorations) static KeybindComponentComponent.keybind(String keybind, @Nullable TextColor color, Set<TextDecoration> decorations) Creates a keybind component with a keybind, and optional color and decorations.static KeybindComponentComponent.keybind(KeybindComponent.KeybindLike keybind, @Nullable TextColor color, Set<TextDecoration> decorations) Creates a keybind component with a keybind, and optional color and decorations.static TextComponentComponent.text(boolean value, @Nullable TextColor color, Set<TextDecoration> decorations) Creates a text component with the content ofString.valueOf(boolean), and optional color and decorations.static TextComponentComponent.text(char value, @Nullable TextColor color, Set<TextDecoration> decorations) Creates a text component with the content ofString.valueOf(char), and optional color and decorations.static TextComponentComponent.text(double value, @Nullable TextColor color, Set<TextDecoration> decorations) Creates a text component with the content ofString.valueOf(double), and optional color and decorations.static TextComponentComponent.text(float value, @Nullable TextColor color, Set<TextDecoration> decorations) Creates a text component with the content ofString.valueOf(float), and optional color and decorations.static TextComponentComponent.text(int value, @Nullable TextColor color, Set<TextDecoration> decorations) Creates a text component with the content ofString.valueOf(int), and optional color and decorations.static TextComponentComponent.text(long value, @Nullable TextColor color, Set<TextDecoration> decorations) Creates a text component with the content ofString.valueOf(long), and optional color and decorations.static TextComponentComponent.text(String content, @Nullable TextColor color, Set<TextDecoration> decorations) Creates a text component with content, and optional color and decorations.static TranslatableComponentComponent.translatable(String key, @Nullable TextColor color, Set<TextDecoration> decorations) Creates a translatable component with a translation key, and optional color and decorations.static TranslatableComponentComponent.translatable(String key, @Nullable TextColor color, Set<TextDecoration> decorations, List<? extends ComponentLike> args) Creates a translatable component with a translation key, arguments, and optional color and decorations.static TranslatableComponentComponent.translatable(String key, @Nullable TextColor color, Set<TextDecoration> decorations, ComponentLike... args) Creates a translatable component with a translation key, arguments, and optional color and decorations.static TranslatableComponentComponent.translatable(Translatable translatable, @Nullable TextColor color, Set<TextDecoration> decorations) Creates a translatable component with a translation key, and optional color and decorations.static TranslatableComponentComponent.translatable(Translatable translatable, @Nullable TextColor color, Set<TextDecoration> decorations, List<? extends ComponentLike> args) Creates a translatable component with a translation key, arguments, and optional color and decorations.static TranslatableComponentComponent.translatable(Translatable translatable, @Nullable TextColor color, Set<TextDecoration> decorations, ComponentLike... args) Creates a translatable component with a translation key, arguments, and optional color and decorations. -
Uses of TextDecoration in net.kyori.adventure.text.format
Fields in net.kyori.adventure.text.format with type parameters of type TextDecorationModifier and TypeFieldDescriptionstatic final Index<String, TextDecoration> TextDecoration.NAMESThe name map.Methods in net.kyori.adventure.text.format that return TextDecorationModifier and TypeMethodDescriptionTextDecorationAndState.decoration()Gets the decoration.static TextDecorationReturns the enum constant of this class with the specified name.static TextDecoration[]TextDecoration.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in net.kyori.adventure.text.format that return types with arguments of type TextDecorationModifier and TypeMethodDescriptiondefault @Unmodifiable Map<TextDecoration, TextDecoration.State> Style.decorations()Gets a map of decorations this style has.default @Unmodifiable Map<TextDecoration, TextDecoration.State> StyleGetter.decorations()Gets a map of decorations this stylable has.Methods in net.kyori.adventure.text.format with parameters of type TextDecorationModifier and TypeMethodDescriptiondefault TMutableStyleSetter.decorate(TextDecoration... decorations) SetsdecorationstoTextDecoration.State.TRUE.default Style.BuilderStyle.Builder.decorate(TextDecoration decoration) SetsdecorationtoTextDecoration.State.TRUE.default Style.BuilderStyle.Builder.decorate(TextDecoration... decorations) SetsdecorationstoTextDecoration.State.TRUE.default StyleStyle.decorate(TextDecoration decoration) Sets the state ofdecorationtoTextDecoration.State.TRUEon this style.default TStyleSetter.decorate(TextDecoration decoration) Sets the state ofdecorationtoTextDecoration.State.TRUE.default TStyleSetter.decorate(TextDecoration... decorations) SetsdecorationstoTextDecoration.State.TRUE.default Style.BuilderStyle.Builder.decoration(TextDecoration decoration, boolean flag) Sets the state of a decoration on this style.Style.Builder.decoration(TextDecoration decoration, TextDecoration.State state) Sets the value of a decoration.Style.decoration(TextDecoration decoration) Gets the state of a decoration on 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.StyleGetter.decoration(TextDecoration decoration) Gets the state of a decoration on this stylable.default TStyleSetter.decoration(TextDecoration decoration, boolean flag) Sets the state of a decoration.StyleSetter.decoration(TextDecoration decoration, TextDecoration.State state) Sets the value of a decoration.Style.Builder.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.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.StyleSetter.decorationIfAbsent(TextDecoration decoration, TextDecoration.State state) Sets the state of a decoration tostateif the current state of the decoration isTextDecoration.State.NOT_SET.default booleanStyle.hasDecoration(TextDecoration decoration) Tests if this style has a decoration.default booleanStyleGetter.hasDecoration(TextDecoration decoration) Tests if this stylable has a decoration.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.Method parameters in net.kyori.adventure.text.format with type arguments of type TextDecorationModifier and TypeMethodDescriptiondefault TMutableStyleSetter.decorations(Map<TextDecoration, TextDecoration.State> decorations) Sets decorations using the specifieddecorationsmap.default TMutableStyleSetter.decorations(Set<TextDecoration> decorations, boolean flag) Sets the state of a set of decorations toflag.default Style.BuilderStyle.Builder.decorations(Map<TextDecoration, TextDecoration.State> decorations) Sets decorations for this style using the specifieddecorationsmap.Style.decorations(Map<TextDecoration, TextDecoration.State> decorations) Sets decorations for this style using the specifieddecorationsmap.StyleSetter.decorations(Map<TextDecoration, TextDecoration.State> decorations) Sets decorations using the specifieddecorationsmap.default TStyleSetter.decorations(Set<TextDecoration> decorations, boolean flag) Sets the state of a set of decorations toflag.static StyleStyle.style(@Nullable TextColor color, Set<TextDecoration> decorations) Creates a style with color and decorations.