resent-1.8/src/main/java/dev/resent/module/Theme.java

34 lines
689 B
Java
Raw Normal View History

2023-01-19 07:46:26 -08:00
package dev.resent.module;
import dev.resent.module.impl.misc.HUD;
import dev.resent.util.render.RainbowUtil;
public class Theme {
public static int getFontColor(int id){
return getFontColor(id, 255);
}
public static int getFontColor(int id, int opacity){
switch(id){
case 1:
2023-01-19 18:43:42 -08:00
return -1;
2023-01-19 07:46:26 -08:00
case 50:
return RainbowUtil.getRainbow(4f, 0.8f, 0.85f);
}
return -1;
}
public static int getId(){
switch(HUD.theme.getValue()){
case "Classic":
return 1;
case "Rainbow":
return 50;
}
return -1;
}
}