Package net.kyori.adventure.text.format
Interface StyleBuilderApplicable
- All Superinterfaces:
ComponentBuilderApplicable
- All Known Subinterfaces:
ShadowColor
,TextColor
,TextDecorationAndState
- All Known Implementing Classes:
ClickEvent
,HoverEvent
,NamedTextColor
,TextDecoration
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Something that can be applied to a
Style
.- Since:
- 4.0.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
componentBuilderApply
(@NotNull ComponentBuilder<?, ?> component) Applies tocomponent
.void
styleApply
(@NotNull Style.Builder style) Applies tostyle
.
-
Method Details
-
styleApply
Applies tostyle
.- Parameters:
style
- the style builder- Since:
- 4.0.0
-
componentBuilderApply
Description copied from interface:ComponentBuilderApplicable
Applies tocomponent
.- Specified by:
componentBuilderApply
in interfaceComponentBuilderApplicable
- Parameters:
component
- the component builder
-