Gets the color represented by the specified color code @param code Code to check @return Associative org.bukkit.ChatColor with the given code, or null if it doesn't exist
(char code)
| 329 | * if it doesn't exist |
| 330 | */ |
| 331 | public static C getByChar(char code) { |
| 332 | try { |
| 333 | return BY_CHAR.get(code); |
| 334 | } catch (Exception e) { |
| 335 | return C.WHITE; |
| 336 | } |
| 337 | } |
| 338 | |
| 339 | /** |
| 340 | * Gets the color represented by the specified color code |
no test coverage detected