Package com.djrapitops.plan.commands.use
Class ColorScheme
java.lang.Object
com.djrapitops.plan.commands.use.ColorScheme
- Direct Known Subclasses:
PlanColorScheme
Class that contains ChatColors for plugins.
Colors should be defined in MineCraft format, eg. "§1" "§a" "§o§3"
-
Constructor Summary
ConstructorDescriptionColorScheme
(String... colors) Create a new ColorScheme.ColorScheme
(List<String> colors) Create a new ColorScheme. -
Method Summary
Modifier and TypeMethodDescriptiongetColor
(int i) Get a color with a particular index.Retrieve the fourth defined color.Retrieve the first defined color.Retrieve the second defined color.Retrieve the third defined color.
-
Constructor Details
-
ColorScheme
Create a new ColorScheme.- Parameters:
colors
- colors in MineCraft format, eg. "§1" "§a" "§o§3"
-
ColorScheme
Create a new ColorScheme.- Parameters:
colors
- colors in MineCraft format, eg. "§1" "§a" "§o§3"
-
-
Method Details
-
getColor
Get a color with a particular index.- Parameters:
i
- Index of the color.- Returns:
- a color code, eg "§1" or empty string if index is out of bounds.
-
getMainColor
Retrieve the first defined color.- Returns:
- a color code, eg "§1" or empty string if index is out of bounds.
-
getSecondaryColor
Retrieve the second defined color.- Returns:
- a color code, eg "§1" or empty string if index is out of bounds.
-
getTertiaryColor
Retrieve the third defined color.- Returns:
- a color code, eg "§1" or empty string if index is out of bounds.
-
getExtraColor
Retrieve the fourth defined color.- Returns:
- a color code, eg "§1" or empty string if index is out of bounds.
-