Class ColorAccessor

java.lang.Object
org.kingdoms.locale.compiler.ColorAccessor

public final class ColorAccessor extends Object
"&l&n{#hex}" all indices give the same thing back. "&c&l&n" all indices give the same thing back.
  • Method Details

    • of

      public static List<MessagePiece> of(MessagePiece[] pieces, int colorIndex, boolean backwards)
      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.