Universal Mod Core

Universal Mod Core

2M Downloads

[1.7.10-1.11.2; 1.16.5 +] Missing drawString(String, int, int, int) method

poizzy opened this issue ยท 1 comments

commented

public static void drawString(String text, int x, int y, int color) {
drawString(text, x, y, color, new Matrix4());
}
public static void drawString(String text, int x, int y, int color, Matrix4 matrix) {
RenderState state = new RenderState().color(1, 1, 1, 1).alpha_test(true);
state.model_view().multiply(matrix);
try (With ctx = RenderContext.apply(state)) {
GlStateManager.color(1, 1, 1, 0);
Minecraft.getMinecraft().fontRenderer.drawString(text, x, y, color);
}
}

These Methods only exist in the versions 1.12.2 to 1.15.2. In every other version they are non existent.

commented

Fixed with PR #145 #146 #147 #148