Package net.kyori.adventure.text
Interface ScoreComponent.Builder
- All Superinterfaces:
AbstractBuilder<ScoreComponent>,Buildable.Builder<ScoreComponent>,ComponentBuilder<ScoreComponent,,ScoreComponent.Builder> ComponentBuilderApplicable,ComponentLike,MutableStyleSetter<ScoreComponent.Builder>,StyleSetter<ScoreComponent.Builder>
- Enclosing interface:
- ScoreComponent
public static interface ScoreComponent.Builder
extends ComponentBuilder<ScoreComponent,ScoreComponent.Builder>
A score component builder.
- Since:
- 4.0.0
-
Method Summary
Modifier and TypeMethodDescription@NotNull ScoreComponent.BuilderSets the score name.@NotNull ScoreComponent.BuilderSets the score objective.@NotNull ScoreComponent.BuilderDeprecated.since 4.7.0, not for removal, with no replacement.Methods inherited from interface net.kyori.adventure.text.ComponentBuilder
append, append, append, append, append, append, appendNewline, appendSpace, applicableApply, apply, applyDeep, asComponent, build, children, clickEvent, color, colorIfAbsent, componentBuilderApply, decorate, decorate, decoration, decoration, decorationIfAbsent, decorations, decorations, font, hoverEvent, insertion, mapChildren, mapChildrenDeep, mergeStyle, mergeStyle, mergeStyle, resetStyle, style, styleMethods inherited from interface net.kyori.adventure.text.format.StyleSetter
shadowColor, shadowColorIfAbsent
-
Method Details
-
name
Sets the score name.- Parameters:
name- the score name- Returns:
- this builder
- Since:
- 4.0.0
-
objective
@Contract("_ -> this") @NotNull @NotNull ScoreComponent.Builder objective(@NotNull @NotNull String objective) Sets the score objective.- Parameters:
objective- the score objective- Returns:
- this builder
- Since:
- 4.0.0
-
value
@Deprecated @Contract("_ -> this") @NotNull @NotNull ScoreComponent.Builder value(@Nullable @Nullable String value) Deprecated.since 4.7.0, not for removal, with no replacement. This field is no longer supported in 1.16.5.Sets the value.- Parameters:
value- the value- Returns:
- this builder
- Since:
- 4.0.0
-