- All Superinterfaces:
AbstractBuilder<ScoreComponent>,ComponentBuilder<ScoreComponent,,ScoreComponent.Builder> ComponentBuilderApplicable,ComponentLike,MutableStyleSetter<ScoreComponent.Builder>,StyleSetter<ScoreComponent.Builder>
- Enclosing interface:
ScoreComponent
public static sealed interface ScoreComponent.Builder
extends ComponentBuilder<ScoreComponent,ScoreComponent.Builder>
A score component builder.
- Since:
- 4.0.0
-
Method Summary
Modifier and TypeMethodDescriptionSets the score name.Sets the score objective.Sets the value.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
Sets the score objective.- Parameters:
objective- the score objective- Returns:
- this builder
- Since:
- 4.0.0
-
value
Sets the value.- Parameters:
value- the value- Returns:
- this builder
- Since:
- 4.0.0
- Obsolete since Minecraft
- 1.16.5, no longer supported
-