Package org.kingdoms.locale.compiler
Class ColorAccessor
java.lang.Object
org.kingdoms.locale.compiler.ColorAccessor
"&l&n{#hex}" all indices give the same thing back.
"&c&l&n" all indices give the same thing back.
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<MessagePiece>of(MessagePiece[] pieces, int colorIndex, boolean backwards)
-
Method Details
-
of
- Parameters:
colorIndex- The index of color to get, this ignores formatting codes.backwards- Whether the index is searching from the end of the string or beginning.- Returns:
- One color with zero or more formatting codes.
-