public boolean getOptionOrdinalValue(EnumOptions par1EnumOptions) {
    switch (EnumOptionsMappingHelper.enumOptionsMappingHelperArray[par1EnumOptions.ordinal()]) {
      case 1:
        return invertMouse;

      case 2:
        return viewBobbing;

      case 3:
        return anaglyph;

      case 4:
        return advancedOpengl;

      case 5:
        return ambientOcclusion;

      case 6:
        return clouds;
    }

    return false;
  }
  /** Gets a key binding. */
  public String getKeyBinding(EnumOptions par1EnumOptions) {
    StringTranslate stringtranslate = StringTranslate.getInstance();
    String s =
        (new StringBuilder())
            .append(stringtranslate.translateKey(par1EnumOptions.getEnumString()))
            .append(": ")
            .toString();

    if (par1EnumOptions.getEnumFloat()) {
      float f = getOptionFloatValue(par1EnumOptions);

      if (par1EnumOptions == EnumOptions.SENSITIVITY) {
        if (f == 0.0F) {
          return (new StringBuilder())
              .append(s)
              .append(stringtranslate.translateKey("options.sensitivity.min"))
              .toString();
        }

        if (f == 1.0F) {
          return (new StringBuilder())
              .append(s)
              .append(stringtranslate.translateKey("options.sensitivity.max"))
              .toString();
        } else {
          return (new StringBuilder()).append(s).append((int) (f * 200F)).append("%").toString();
        }
      }

      if (par1EnumOptions == EnumOptions.FOV) {
        if (f == 0.0F) {
          return (new StringBuilder())
              .append(s)
              .append(stringtranslate.translateKey("options.fov.min"))
              .toString();
        }

        if (f == 1.0F) {
          return (new StringBuilder())
              .append(s)
              .append(stringtranslate.translateKey("options.fov.max"))
              .toString();
        } else {
          return (new StringBuilder()).append(s).append((int) (70F + f * 40F)).toString();
        }
      }

      if (par1EnumOptions == EnumOptions.GAMMA) {
        if (f == 0.0F) {
          return (new StringBuilder())
              .append(s)
              .append(stringtranslate.translateKey("options.gamma.min"))
              .toString();
        }

        if (f == 1.0F) {
          return (new StringBuilder())
              .append(s)
              .append(stringtranslate.translateKey("options.gamma.max"))
              .toString();
        } else {
          return (new StringBuilder())
              .append(s)
              .append("+")
              .append((int) (f * 100F))
              .append("%")
              .toString();
        }
      }

      if (f == 0.0F) {
        return (new StringBuilder())
            .append(s)
            .append(stringtranslate.translateKey("options.off"))
            .toString();
      } else {
        return (new StringBuilder()).append(s).append((int) (f * 100F)).append("%").toString();
      }
    }

    if (par1EnumOptions.getEnumBoolean()) {
      boolean flag = getOptionOrdinalValue(par1EnumOptions);

      if (flag) {
        return (new StringBuilder())
            .append(s)
            .append(stringtranslate.translateKey("options.on"))
            .toString();
      } else {
        return (new StringBuilder())
            .append(s)
            .append(stringtranslate.translateKey("options.off"))
            .toString();
      }
    }

    if (par1EnumOptions == EnumOptions.RENDER_DISTANCE) {
      return (new StringBuilder())
          .append(s)
          .append(func_48571_a(RENDER_DISTANCES, renderDistance))
          .toString();
    }

    if (par1EnumOptions == EnumOptions.DIFFICULTY) {
      return (new StringBuilder())
          .append(s)
          .append(func_48571_a(DIFFICULTIES, difficulty))
          .toString();
    }

    if (par1EnumOptions == EnumOptions.GUI_SCALE) {
      return (new StringBuilder()).append(s).append(func_48571_a(GUISCALES, guiScale)).toString();
    }

    if (par1EnumOptions == EnumOptions.PARTICLES) {
      return (new StringBuilder())
          .append(s)
          .append(func_48571_a(PARTICLES, particleSetting))
          .toString();
    }

    if (par1EnumOptions == EnumOptions.FRAMERATE_LIMIT) {
      return (new StringBuilder())
          .append(s)
          .append(func_48571_a(LIMIT_FRAMERATES, limitFramerate))
          .toString();
    }

    if (par1EnumOptions == EnumOptions.GRAPHICS) {
      if (fancyGraphics) {
        return (new StringBuilder())
            .append(s)
            .append(stringtranslate.translateKey("options.graphics.fancy"))
            .toString();
      } else {
        return (new StringBuilder())
            .append(s)
            .append(stringtranslate.translateKey("options.graphics.fast"))
            .toString();
      }
    } else {
      return s;
    }
  }