Package com.kamikazejam.kamicommon.util
Class LegacyChatColors
java.lang.Object
com.kamikazejam.kamicommon.util.LegacyChatColors
Legacy methods related to
ChatColor and legacy color codes.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull ChatColorgetChatColor(@NotNull DyeColor dyeColor) static @NotNull ChatColorgetNearestChatColor(@NotNull Color color) Map a hex string to the closest matchingChatColor.static @NotNull ChatColorgetNearestChatColor(@NotNull String hex) Map a hex string to the closest matchingChatColor.
-
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 matchingChatColor. -
getNearestChatColor
@Obsolete @NotNull public static @NotNull ChatColor getNearestChatColor(@NotNull @NotNull Color color) Map a hex string to the closest matchingChatColor. -
getChatColor
@Obsolete @Contract(pure=true) @NotNull public static @NotNull ChatColor getChatColor(@NotNull @NotNull DyeColor dyeColor) - Throws:
RuntimeException- if theDyeColoris unknown (should never happen)
-