private static void drawLeftToRight(Graphics g, LivingEntity e, int x, int y, int size) {
        float ratio = tex.bar[0].getWidth() / (float)e.getMaxHP();
        g.drawImage(tex.frame[0], x, y, tex.frame[0].getWidth() * size, tex.frame[0].getHeight() * size,null);
        int color;
        if (e.getHP() > e.getMaxHP() * 0.40) {
            color = 2;
        } else if (e.getHP() > e.getMaxHP() * 0.25) {
            color = 3;
        } else if (e.getHP() > e.getMaxHP() * 0.10) {
            color = 4;
        } else {
            color = 5;
        }
        if (e.getHP() > 0) g.drawImage(tex.bar[color], x + (43 * size), y + 10 * size, (int)(ratio * e.getHP()) * size, tex.bar[2].getHeight() * size, null);
        ratio = tex.bar[0].getWidth() / (float)e.getMaxAir();
        
        if (e.getAir() > 0) g.drawImage(tex.bar[0], x + (43 * size), y + 16 * size, (int)(ratio * e.getAir()) * size, tex.bar[2].getHeight() * size, null);
        
        g.drawImage(tex.frame[1], x, y, tex.frame[1].getWidth() * size, tex.frame[1].getHeight() * size,null);
        g.drawImage(tex.frame[2], x, y, tex.frame[2].getWidth() * size, tex.frame[2].getHeight() * size, null);

        e.getAvatar().drawAnimation(g, x, y, 32 * size, 32 * size);
    }