Uses of Interface
net.kyori.adventure.text.format.Style.Builder
Packages that use Style.Builder
Package
Description
Data for controlling components, their styles, and events.
Events that occur when players interact with components.
Formats which may be applied to components.
-
Uses of Style.Builder in net.kyori.adventure.text
Methods in net.kyori.adventure.text with parameters of type Style.BuilderModifier and TypeMethodDescriptiondefault ComponentComponent.style(Style.Builder style) Sets the style of this component.default CScopedComponent.style(Style.Builder style) Method parameters in net.kyori.adventure.text with type arguments of type Style.BuilderModifier and TypeMethodDescriptiondefault ComponentComponent.style(Consumer<Style.Builder> consumer) Sets the style of this component.default ComponentComponent.style(Consumer<Style.Builder> consumer, Style.Merge.Strategy strategy) Sets the style of this component.ComponentBuilder.style(Consumer<Style.Builder> consumer) Configures the style.default CScopedComponent.style(Consumer<Style.Builder> style) default CScopedComponent.style(Consumer<Style.Builder> consumer, Style.Merge.Strategy strategy) -
Uses of Style.Builder in net.kyori.adventure.text.event
Methods in net.kyori.adventure.text.event with parameters of type Style.BuilderModifier and TypeMethodDescriptionvoidClickEvent.styleApply(Style.Builder style) voidHoverEvent.styleApply(Style.Builder style) -
Uses of Style.Builder in net.kyori.adventure.text.format
Methods in net.kyori.adventure.text.format that return Style.BuilderModifier and TypeMethodDescriptiondefault Style.BuilderStyle.Builder.apply(StyleBuilderApplicable applicable) Appliesapplicableto this builder.Style.Builder.clickEvent(@Nullable ClickEvent<?> event) Sets the click event.Sets the color.Style.Builder.colorIfAbsent(@Nullable TextColor color) Sets the color if there isn't one set already.default Style.BuilderStyle.Builder.decorate(TextDecoration decoration) SetsdecorationtoTextDecoration.State.TRUE.default Style.BuilderStyle.Builder.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.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.default Style.BuilderStyle.Builder.decorations(Map<TextDecoration, TextDecoration.State> decorations) Sets decorations for this style using the specifieddecorationsmap.Sets the font.Style.Builder.hoverEvent(@Nullable HoverEventSource<?> source) Sets the hover event.Sets the string to be inserted.default 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.static Style.BuilderStyle.style()Creates a builder.Style.toBuilder()Create a builder from this style.Methods in net.kyori.adventure.text.format with parameters of type Style.BuilderModifier and TypeMethodDescriptiondefault voidShadowColor.styleApply(Style.Builder style) voidStyleBuilderApplicable.styleApply(Style.Builder style) Applies tostyle.default voidTextColor.styleApply(Style.Builder style) voidTextDecoration.styleApply(Style.Builder style) default voidTextDecorationAndState.styleApply(Style.Builder style) Method parameters in net.kyori.adventure.text.format with type arguments of type Style.BuilderModifier and TypeMethodDescriptiondefault 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.style(Consumer<Style.Builder> consumer) Creates a style.