src/main/java/codes/biscuit/skyblockaddons/gui/SkyblockAddonsGui.java
/**
     * Draws a centered string at the middle of the screen on the x axis, with a specified scale and location.
     *
     * @param text The text to draw.
     * @param y The y level to draw the text/
     * @param color The text color.
     * @param scale The scale to draw the text.
     * @param xOffset The offset from the center x that the text should be drawn at.
     */
Draws a centered string at the middle of the screen on the x axis, with a specified scale and location.
@param text The text to draw.
@param y The y level to draw the text
@param color The text color.
@param scale The scale to draw the text.
@param xOffset The offset from the center x that the text should be drawn at.
Draws a centered string at the middle of the screen on the x axis with a specified scale and location . @param text The text to draw . @param y The y level to draw the text @param color The text color . @param scale The scale to draw the text . @param xOffset The offset from the center x that the text should be drawn at .
static void drawScaledString(GuiScreen guiScreen, String text, int y, int color, double scale, int xOffset) {
        GlStateManager.pushMatrix();
        GlStateManager.scale(scale, scale, 1);
        MinecraftReflection.FontRenderer.drawCenteredString(text, Math.round((float)guiScreen.width/2/scale)+xOffset,
                Math.round((float)y/scale), color);
        GlStateManager.popMatrix();
    }
static void drawScaledString ( GuiScreen guiScreen , String text , int y , int color , double scale , int xOffset ) { GlStateManager . pushMatrix ( ) ; GlStateManager . scale ( scale , scale , 1 ) ; MinecraftReflection . FontRenderer . drawCenteredString ( text , Math . round ( ( float ) guiScreen . width / 2 / scale ) + xOffset , Math . round ( ( float ) y / scale ) , color ) ; GlStateManager . popMatrix ( ) ; }
Draws a centered string at the middle of the screen on the x axis, with a specified scale and location.
Draws a centered string at the middle of the screen on the x axis with a specified scale and location .