Class LegacyChatColors

java.lang.Object
com.kamikazejam.kamicommon.util.LegacyChatColors

@Obsolete public class LegacyChatColors extends Object
Legacy methods related to ChatColor and legacy color codes.
  • Constructor Details

    • LegacyChatColors

      public LegacyChatColors()
  • Method Details

    • getNearestChatColor

      @Obsolete @NotNull public static @NotNull ChatColor getNearestChatColor(@NotNull @NotNull String hex)
      Map a hex string to the closest matching ChatColor.
    • getNearestChatColor

      @Obsolete @NotNull public static @NotNull ChatColor getNearestChatColor(@NotNull @NotNull Color color)
      Map a hex string to the closest matching ChatColor.
    • getChatColor

      @Obsolete @Contract(pure=true) @NotNull public static @NotNull ChatColor getChatColor(@NotNull @NotNull DyeColor dyeColor)
      Map a DyeColor to the closest matching ChatColor.
      Throws:
      RuntimeException - if the DyeColor is unknown (should never happen)