Class ScoreboardNumbers
java.lang.Object
java.util.TimerTask
me.remigio07.chatplugin.api.server.scoreboard.ScoreboardNumbers
- All Implemented Interfaces:
Runnable
Represents a
Scoreboard
's numbers.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
Gets the timeout between color cycles, in milliseconds.Gets the colors used to create the gradient.Gets the colors interpolated using variants of the original colors.int
Gets the amount of interpolations (or variations) between each color ofcustomTextColorsGradient
.Gets these numbers' custom text's value.Gets these numbers' display mode.Gets the scoreboard associated with these numbers.int
Gets therun()
's timer's index ofgetCustomTextColorsInterpolated()
.abstract void
run()
Automatic color updater, called once everygetCustomTextColorsCycleTimeout()
ms.Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
-
Constructor Details
-
ScoreboardNumbers
public ScoreboardNumbers()
-
-
Method Details
-
getScoreboard
Gets the scoreboard associated with these numbers.- Returns:
- Associated scoreboard
-
getDisplayMode
Gets these numbers' display mode.Found at: "settings.numbers.display-mode" in
Scoreboard.getConfiguration()
- Returns:
- Numbers' display mode
-
getCustomTextValue
Gets these numbers' custom text's value.Found at: "settings.numbers.custom-text.value" in
Scoreboard.getConfiguration()
- Returns:
- Numbers' custom text's value
-
getCustomTextColorsCycleTimeout
public long getCustomTextColorsCycleTimeout()Gets the timeout between color cycles, in milliseconds.Found at: "settings.numbers.custom-text.colors.cycle-timeout" in
Scoreboard.getConfiguration()
- Returns:
- Time between color cycles
-
getCustomTextColorsInterpolations
public int getCustomTextColorsInterpolations()Gets the amount of interpolations (or variations) between each color ofcustomTextColorsGradient
.Found at: "settings.numbers.custom-text.colors.interpolations" in
Scoreboard.getConfiguration()
- Returns:
- Interpolations between provided colors
-
getCustomTextColorsGradient
Gets the colors used to create the gradient.Do not modify the returned list.
Found at: "settings.numbers.custom-text.colors.gradient" in
Scoreboard.getConfiguration()
- Returns:
- Colors to cycle through
-
getCustomTextColorsInterpolated
Gets the colors interpolated using variants of the original colors.Do not modify the returned list.
- Returns:
- Interpolated colors
-
getTimerIndex
public int getTimerIndex()Gets therun()
's timer's index ofgetCustomTextColorsInterpolated()
.- Returns:
- Numbers' timer's index
-
run
public abstract void run()Automatic color updater, called once everygetCustomTextColorsCycleTimeout()
ms.
-