    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, false),
    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    CHAT_SCALE("options.chat.scale", true, false),
    038    CHAT_WIDTH("options.chat.width", true, false),
    039    CHAT_HEIGHT_FOCUSED("options.chat.height.focused", true, false),
    040    CHAT_HEIGHT_UNFOCUSED("options.chat.height.unfocused", true, false);
    041    private final boolean enumFloat;
    042    private final boolean enumBoolean;
    043    private final String enumString;
    044
    045    public static EnumOptions getEnumOptions(int par0)
    046    {
    047        EnumOptions[] aenumoptions = values();
    048        int j = aenumoptions.length;
    049
    050        for (int k = 0; k < j; ++k)
    051        {
    052            EnumOptions enumoptions = aenumoptions[k];
    053
    054            if (enumoptions.returnEnumOrdinal() == par0)
    055            {
    056                return enumoptions;
    057            }
    058        }
    059
    060        return null;
    061    }
    062
    063    private EnumOptions(String par3Str, boolean par4, boolean par5)
    064    {
    065        this.enumString = par3Str;
    066        this.enumFloat = par4;
    067        this.enumBoolean = par5;
    068    }
    069
    070    public boolean getEnumFloat()
    071    {
    072        return this.enumFloat;
    073    }
    074
    075    public boolean getEnumBoolean()
    076    {
    077        return this.enumBoolean;
    078    }
    079
    080    public int returnEnumOrdinal()
    081    {
    082        return this.ordinal();
    083    }
    084
    085    public String getEnumString()
    086    {
    087        return this.enumString;
    088    }
    089}