This commit is contained in:
GlodBlock committed 2023-01-30 18:07:57 +08:00
1 parent 99f8e98017
commit 482298021e
25 files changed
+1010 -174

No files matched your search

@@ -72,4 +72,11 @@ public final class RenderUtil {
public static List<String> listFormattedStringToWidth(String str) {
return Minecraft.getMinecraft().fontRenderer.listFormattedStringToWidth(str, 150);
}
public static void setGLColorFromInt(int color) {
float red = (color >> 16 & 255) / 255.0F;
float green = (color >> 8 & 255) / 255.0F;
float blue = (color & 255) / 255.0F;
GL11.glColor4f(red, green, blue, 1.0F);
}
}