Package net.kyori.adventure.text
Interface SelectorComponent.Builder
-
- All Superinterfaces:
AbstractBuilder<SelectorComponent>
,Buildable.Builder<SelectorComponent>
,ComponentBuilder<SelectorComponent,SelectorComponent.Builder>
,ComponentBuilderApplicable
,ComponentLike
,MutableStyleSetter<SelectorComponent.Builder>
,StyleSetter<SelectorComponent.Builder>
- Enclosing interface:
- SelectorComponent
public static interface SelectorComponent.Builder extends ComponentBuilder<SelectorComponent,SelectorComponent.Builder>
A selector component builder.- Since:
- 4.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull SelectorComponent.Builder
pattern(@NotNull String pattern)
Sets the selector pattern.@NotNull SelectorComponent.Builder
separator(@Nullable ComponentLike separator)
Sets the separator.-
Methods inherited from interface net.kyori.adventure.text.ComponentBuilder
append, append, append, append, append, append, applicableApply, apply, applyDeep, asComponent, build, children, clickEvent, color, colorIfAbsent, componentBuilderApply, decorate, decorate, decoration, decoration, decorations, decorations, font, hoverEvent, insertion, mapChildren, mapChildrenDeep, mergeStyle, mergeStyle, mergeStyle, resetStyle, style, style
-
-
-
-
Method Detail
-
pattern
@Contract("_ -> this") @NotNull @NotNull SelectorComponent.Builder pattern(@NotNull @NotNull String pattern)
Sets the selector pattern.- Parameters:
pattern
- the selector pattern- Returns:
- this builder
- Since:
- 4.0.0
-
separator
@Contract("_ -> this") @NotNull @NotNull SelectorComponent.Builder separator(@Nullable @Nullable ComponentLike separator)
Sets the separator.- Parameters:
separator
- the separator- Returns:
- this builder
- Since:
- 4.8.0
-
-