|
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.