private static void drawRightToLeft(Graphics g, LivingEntity e, int x, int y, int size) {
        float ratio = tex.bar[0].getWidth() / (float)e.getMaxHP();
        int sizeX = tex.frame[0].getWidth() * size;
        g.drawImage(tex.frame[3], x - sizeX, y, sizeX, 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;
        }
        int barX = x - sizeX + (28 * size); 
        if (e.getHP() > 0) g.drawImage(tex.bar[color], barX + (int)(ratio * (e.getMaxHP() - e.getHP())) * 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], barX + (int)(ratio * (e.getMaxAir() - e.getAir())) * size, y + 16 * size, (int)(ratio * e.getAir()) * size, tex.bar[2].getHeight() * size, null);
        
        g.drawImage(tex.frame[4], x - sizeX, y, sizeX, tex.frame[1].getHeight() * size,null);
        g.drawImage(tex.frame[5], x - sizeX, y, sizeX, tex.frame[2].getHeight() * size, null);
        
        e.getAvatar().drawAnimation(g, x - (30 * size), y, 32 * size, 32 * size);
    }