aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kubatech/api/utils/StringUtils.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/kubatech/api/utils/StringUtils.java')
-rw-r--r--src/main/java/kubatech/api/utils/StringUtils.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/kubatech/api/utils/StringUtils.java b/src/main/java/kubatech/api/utils/StringUtils.java
index c60da71b14..68f6c8249f 100644
--- a/src/main/java/kubatech/api/utils/StringUtils.java
+++ b/src/main/java/kubatech/api/utils/StringUtils.java
@@ -22,6 +22,8 @@ package kubatech.api.utils;
import net.minecraft.util.EnumChatFormatting;
+import gregtech.api.enums.GT_Values;
+
public class StringUtils {
private static final String[] rainbow = new String[] { EnumChatFormatting.DARK_RED.toString(),
@@ -49,4 +51,8 @@ public class StringUtils {
public static String applyRainbow(String str) {
return applyRainbow(str, 0, "");
}
+
+ public static String voltageTooltipFormatted(int tier) {
+ return GT_Values.TIER_COLORS[tier] + GT_Values.VN[tier] + EnumChatFormatting.GRAY;
+ }
}