src/main/java/codes/biscuit/skyblockaddons/listeners/RenderListener.java
/**
     * This renders all the title/subtitle warnings from features.
     */
This renders all the title/subtitle warnings from features.
This renders all the title / subtitle warnings from features .
private void renderWarnings(ScaledResolution scaledResolution) {
        Minecraft mc = Minecraft.getMinecraft();
        int i = scaledResolution.getScaledWidth();
        if (titleFeature != null) {
            int j = scaledResolution.getScaledHeight();
            GlStateManager.pushMatrix();
            GlStateManager.translate((float) (i / 2), (float) (j / 2), 0.0F);
            GlStateManager.pushMatrix();
            GlStateManager.scale(4.0F, 4.0F, 4.0F);
            Message message = null;
            switch (titleFeature) {
                case MAGMA_WARNING:
                    message = Message.MESSAGE_MAGMA_BOSS_WARNING;
                    break;
                case FULL_INVENTORY_WARNING:
                    message = Message.MESSAGE_FULL_INVENTORY;
                    break;
                case SUMMONING_EYE_ALERT:
                    message = Message.MESSAGE_SUMMONING_EYE_FOUND;
                    break;
                case SPECIAL_ZEALOT_ALERT:
                    message = Message.MESSAGE_SPECIAL_ZEALOT_FOUND;
                    break;
            }
            if (message != null) {
                String text = message.getMessage();
                MinecraftReflection.FontRenderer.drawString(text, (float) (-MinecraftReflection.FontRenderer.getStringWidth(text) / 2), -20.0F,
                        main.getConfigValues().getColor(titleFeature).getRGB(), true);
            }
            GlStateManager.popMatrix();
            GlStateManager.popMatrix();
        }
        if (subtitleFeature != null) {
            int j = scaledResolution.getScaledHeight();
            GlStateManager.pushMatrix();
            GlStateManager.translate((float) (i / 2), (float) (j / 2), 0.0F);
            GlStateManager.pushMatrix();
            GlStateManager.scale(2.0F, 2.0F, 2.0F);
            Message message = null;
            switch (subtitleFeature) {
                case MINION_STOP_WARNING:
                    message = Message.MESSAGE_MINION_CANNOT_REACH;
                    break;
                case MINION_FULL_WARNING:
                    message = Message.MESSAGE_MINION_IS_FULL;
                    break;
                case NO_ARROWS_LEFT_ALERT:
                    message = Message.MESSAGE_NO_ARROWS_LEFT;
                    break;
            }
            if (message != null) {
                String text;
                if (message == Message.MESSAGE_MINION_CANNOT_REACH) {
                    text = message.getMessage(cannotReachMobName);
                } else if (subtitleFeature == Feature.NO_ARROWS_LEFT_ALERT && arrowsLeft != -1) {
                    text = Message.MESSAGE_ONLY_FEW_ARROWS_LEFT.getMessage(Integer.toString(arrowsLeft));
                } else {
                    text = message.getMessage();
                }
                MinecraftReflection.FontRenderer.drawString(text, (float) (-MinecraftReflection.FontRenderer.getStringWidth(text) / 2), -23.0F,
                        main.getConfigValues().getColor(subtitleFeature).getRGB(), true);
            }
            GlStateManager.popMatrix();
            GlStateManager.popMatrix();
        }
    }
private void renderWarnings ( ScaledResolution scaledResolution ) { Minecraft mc = Minecraft . getMinecraft ( ) ; int i = scaledResolution . getScaledWidth ( ) ; if ( titleFeature != null ) { int j = scaledResolution . getScaledHeight ( ) ; GlStateManager . pushMatrix ( ) ; GlStateManager . translate ( ( float ) ( i / 2 ) , ( float ) ( j / 2 ) , 0.0F ) ; GlStateManager . pushMatrix ( ) ; GlStateManager . scale ( 4.0F , 4.0F , 4.0F ) ; Message message = null ; switch ( titleFeature ) { case MAGMA_WARNING : message = Message . MESSAGE_MAGMA_BOSS_WARNING ; break ; case FULL_INVENTORY_WARNING : message = Message . MESSAGE_FULL_INVENTORY ; break ; case SUMMONING_EYE_ALERT : message = Message . MESSAGE_SUMMONING_EYE_FOUND ; break ; case SPECIAL_ZEALOT_ALERT : message = Message . MESSAGE_SPECIAL_ZEALOT_FOUND ; break ; } if ( message != null ) { String text = message . getMessage ( ) ; MinecraftReflection . FontRenderer . drawString ( text , ( float ) ( - MinecraftReflection . FontRenderer . getStringWidth ( text ) / 2 ) , - 20.0F , main . getConfigValues ( ) . getColor ( titleFeature ) . getRGB ( ) , true ) ; } GlStateManager . popMatrix ( ) ; GlStateManager . popMatrix ( ) ; } if ( subtitleFeature != null ) { int j = scaledResolution . getScaledHeight ( ) ; GlStateManager . pushMatrix ( ) ; GlStateManager . translate ( ( float ) ( i / 2 ) , ( float ) ( j / 2 ) , 0.0F ) ; GlStateManager . pushMatrix ( ) ; GlStateManager . scale ( 2.0F , 2.0F , 2.0F ) ; Message message = null ; switch ( subtitleFeature ) { case MINION_STOP_WARNING : message = Message . MESSAGE_MINION_CANNOT_REACH ; break ; case MINION_FULL_WARNING : message = Message . MESSAGE_MINION_IS_FULL ; break ; case NO_ARROWS_LEFT_ALERT : message = Message . MESSAGE_NO_ARROWS_LEFT ; break ; } if ( message != null ) { String text ; if ( message == Message . MESSAGE_MINION_CANNOT_REACH ) { text = message . getMessage ( cannotReachMobName ) ; } else if ( subtitleFeature == Feature . NO_ARROWS_LEFT_ALERT && arrowsLeft != - 1 ) { text = Message . MESSAGE_ONLY_FEW_ARROWS_LEFT . getMessage ( Integer . toString ( arrowsLeft ) ) ; } else { text = message . getMessage ( ) ; } MinecraftReflection . FontRenderer . drawString ( text , ( float ) ( - MinecraftReflection . FontRenderer . getStringWidth ( text ) / 2 ) , - 23.0F , main . getConfigValues ( ) . getColor ( subtitleFeature ) . getRGB ( ) , true ) ; } GlStateManager . popMatrix ( ) ; GlStateManager . popMatrix ( ) ; } }
This renders all the title/subtitle warnings from features.
This renders all the title / subtitle warnings from features .
//            GlStateManager.enableBlend(); //            GlStateManager.tryBlendFuncSeparate(770, 771, 1, 0);