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