Follow along with the video below to see how to install our site as a web app on your home screen.
Примечание: This feature may not be available in some browsers.
public static void drawTexture(int x, int y, int w, int h, int xPos, int yPos, float scale, float r, float g, float b, float a, ResourceLocation resourceLocation) {
GlStateManager.pushMatrix();
GlStateManager.disableAlpha();
GlStateManager.enableBlend();
OpenGlHelper.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA, 1, 0);
GlStateManager.color(r, g, b, a); // default: 1.0F, 1.0F, 1.0F, 0.65F
GlStateManager.translate(x, y, 0);
GlStateManager.translate(0, 0 , 0);
GlStateManager.scale(scale, scale, scale);
Minecraft.getMinecraft().getTextureManager().bindTexture(resourceLocation);
Gui.drawModalRectWithCustomSizedTexture(xPos, yPos, 0.0F, 0.0F...
public static void drawTexture(int x, int y, int w, int h, int xPos, int yPos, float scale, float r, float g, float b, float a, ResourceLocation resourceLocation) {
GlStateManager.pushMatrix();
GlStateManager.disableAlpha();
GlStateManager.enableBlend();
OpenGlHelper.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA, 1, 0);
GlStateManager.color(r, g, b, a); // default: 1.0F, 1.0F, 1.0F, 0.65F
GlStateManager.translate(x, y, 0);
GlStateManager.translate(0, 0 , 0);
GlStateManager.scale(scale, scale, scale);
Minecraft.getMinecraft().getTextureManager().bindTexture(resourceLocation);
Gui.drawModalRectWithCustomSizedTexture(xPos, yPos, 0.0F, 0.0F, w, h, w, h);
GlStateManager.scale(-scale, -scale, scale);
GlStateManager.translate(-x, -y, 0);
GlStateManager.disableBlend();
GlStateManager.enableAlpha();
GlStateManager.popMatrix();
}
Ошибки всегда стоит переводить (сказано, что метода Gui#drawModalRect... не найдено). Данный метод присутствует (не помню начиная с какой версии) в 1.12.2, но на 1.7.10 его название - обфусцировано. Данный метод может нести подобное название@tox1cozZ я нашел вот такое в интернете, но мне какая то бредовая ошибка лезет
func_.....