    001package net.minecraft.client.settings;
    002
    003import cpw.mods.fml.relauncher.Side;
    004import cpw.mods.fml.relauncher.SideOnly;
    005
    006@SideOnly(Side.CLIENT)
    007public enum EnumOptions
    008{
    009    MUSIC("options.music", true, false),
    010    SOUND("options.sound", true, false),
    011    INVERT_MOUSE("options.invertMouse", false, true),
    012    SENSITIVITY("options.sensitivity", true, false),
    013    FOV("options.fov", true, false),
    014    GAMMA("options.gamma", true, false),
    015    RENDER_DISTANCE("options.renderDistance", false, false),
    016    VIEW_BOBBING("options.viewBobbing", false, true),
    017    ANAGLYPH("options.anaglyph", false, true),
    018    ADVANCED_OPENGL("options.advancedOpengl", false, true),
    019    FRAMERATE_LIMIT("options.framerateLimit", false, false),
    020    DIFFICULTY("options.difficulty", false, false),
    021    GRAPHICS("options.graphics", false, false),
    022    AMBIENT_OCCLUSION("options.ao", false, true),
    023    GUI_SCALE("options.guiScale", false, false),
    024    RENDER_CLOUDS("options.renderClouds", false, true),
    025    PARTICLES("options.particles", false, false),
    026    CHAT_VISIBILITY("options.chat.visibility", false, false),
    027    CHAT_COLOR("options.chat.color", false, true),
    028    CHAT_LINKS("options.chat.links", false, true),
    029    CHAT_OPACITY("options.chat.opacity", true, false),
    030    CHAT_LINKS_PROMPT("options.chat.links.prompt", false, true),
    031    USE_SERVER_TEXTURES("options.serverTextures", false, true),
    032    SNOOPER_ENABLED("options.snooper", false, true),
    033    USE_FULLSCREEN("options.fullscreen", false, true),
    034    ENABLE_VSYNC("options.vsync", false, true),
    035    SHOW_CAPE("options.showCape", false, true),
    036    TOUCHSCREEN("options.touchscreen", false, true);
    037    private final boolean enumFloat;
    038    private final boolean enumBoolean;
    039    private final String enumString;
    040
    041    public static EnumOptions getEnumOptions(int par0)
    042    {
    043        EnumOptions[] var1 = values();
    044        int var2 = var1.length;
    045
    046        for (int var3 = 0; var3 < var2; ++var3)
    047        {
    048            EnumOptions var4 = var1[var3];
    049
    050            if (var4.returnEnumOrdinal() == par0)
    051            {
    052                return var4;
    053            }
    054        }
    055
    056        return null;
    057    }
    058
    059    private EnumOptions(String par3Str, boolean par4, boolean par5)
    060    {
    061        this.enumString = par3Str;
    062        this.enumFloat = par4;
    063        this.enumBoolean = par5;
    064    }
    065
    066    public boolean getEnumFloat()
    067    {
    068        return this.enumFloat;
    069    }
    070
    071    public boolean getEnumBoolean()
    072    {
    073        return this.enumBoolean;
    074    }
    075
    076    public int returnEnumOrdinal()
    077    {
    078        return this.ordinal();
    079    }
    080
    081    public String getEnumString()
    082    {
    083        return this.enumString;
    084    }
    085}