mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 21:17:32 +00:00
Primitive type class color
This commit is contained in:
1 parent
662d843147
commit
d9d89a2f23
1 file changed
+1
@@ -601,6 +601,7 @@ public class TokenHoverInfo {
|
||||
* Get the appropriate color for a Class<?> based on its type.
|
||||
*/
|
||||
private int getColorForClass(Class<?> clazz) {
|
||||
if(clazz.isPrimitive()) return TokenType.KEYWORD.getHexColor();
|
||||
if (clazz.isInterface()) return TokenType.INTERFACE_DECL.getHexColor();
|
||||
if (clazz.isEnum()) return TokenType.ENUM_DECL.getHexColor();
|
||||
return TokenType.IMPORTED_CLASS.getHexColor();
|
||||
|
||||
Reference in new issue
Block a user