public void setOptionFloatValue(EnumOptions enumoptions, float f) {
        if (enumoptions == EnumOptions.MUSIC) {
            this.musicVolume = f;
            this.mc.sndManager.onSoundOptionsChanged();
        }

        if (enumoptions == EnumOptions.SOUND) {
            this.soundVolume = f;
            this.mc.sndManager.onSoundOptionsChanged();
        }

        if (enumoptions == EnumOptions.SENSITIVITY) {
            this.mouseSensitivity = f;
        }

        if (enumoptions == EnumOptions.BRIGHTNESS) {
            this.ofBrightness = f;
            this.updateWorldLightLevels();
        }

        if (enumoptions == EnumOptions.CLOUD_HEIGHT) {
            this.ofCloudsHeight = f;
        }

        if (enumoptions == EnumOptions.AO_LEVEL) {
            this.ofAoLevel = f;
            this.ambientOcclusion = this.ofAoLevel > 0.0F;
            this.mc.renderGlobal.loadRenderers();
        }

    }