public final class ScoreComponent extends BaseComponent
| Constructor and Description |
|---|
ScoreComponent(ScoreComponent original)
Creates a score component from the original to clone it.
|
ScoreComponent(java.lang.String name,
java.lang.String objective)
Creates a new score component with the specified name and objective.
If not specifically set, value will default to an empty string; signifying that the scoreboard value should take precedence. |
| Modifier and Type | Method and Description |
|---|---|
ScoreComponent |
duplicate()
Clones the BaseComponent and returns the clone.
|
protected void |
toLegacyText(java.lang.StringBuilder builder) |
addExtra, addExtra, copyFormatting, copyFormatting, copyFormatting, duplicateWithoutFormatting, getColor, getColorRaw, hasFormatting, isBold, isBoldRaw, isItalic, isItalicRaw, isObfuscated, isObfuscatedRaw, isStrikethrough, isStrikethroughRaw, isUnderlined, isUnderlinedRaw, retain, setExtra, toLegacyText, toLegacyText, toPlainText, toPlainTextpublic ScoreComponent(java.lang.String name,
java.lang.String objective)
value will override any value found in the
scoreboard.name - the name of the entity, or an entity selector, whose score
should be displayedobjective - the internal name of the objective the entity's score is
attached topublic ScoreComponent(ScoreComponent original)
original - the original for the new score componentpublic ScoreComponent duplicate()
BaseComponentduplicate in class BaseComponentprotected void toLegacyText(java.lang.StringBuilder builder)
Copyright © 2015-2018 WaterfallMC. All Rights Reserved.