    001    package net.minecraft.src;
    002
    003    import cpw.mods.fml.common.Side;
    004    import cpw.mods.fml.common.asm.SideOnly;
    005
    006    @SideOnly(Side.CLIENT)
    007    public 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        private final boolean enumFloat;
    036        private final boolean enumBoolean;
    037        private final String enumString;
    038
    039        public static EnumOptions getEnumOptions(int par0)
    040        {
    041            EnumOptions[] var1 = values();
    042            int var2 = var1.length;
    043
    044            for (int var3 = 0; var3 < var2; ++var3)
    045            {
    046                EnumOptions var4 = var1[var3];
    047
    048                if (var4.returnEnumOrdinal() == par0)
    049                {
    050                    return var4;
    051                }
    052            }
    053
    054            return null;
    055        }
    056
    057        private EnumOptions(String par3Str, boolean par4, boolean par5)
    058        {
    059            this.enumString = par3Str;
    060            this.enumFloat = par4;
    061            this.enumBoolean = par5;
    062        }
    063
    064        public boolean getEnumFloat()
    065        {
    066            return this.enumFloat;
    067        }
    068
    069        public boolean getEnumBoolean()
    070        {
    071            return this.enumBoolean;
    072        }
    073
    074        public int returnEnumOrdinal()
    075        {
    076            return this.ordinal();
    077        }
    078
    079        public String getEnumString()
    080        {
    081            return this.enumString;
    082        }
    083    }