    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        SHOW_CAPE("options.showCape", false, true);
    036        private final boolean enumFloat;
    037        private final boolean enumBoolean;
    038        private final String enumString;
    039
    040        public static EnumOptions getEnumOptions(int par0)
    041        {
    042            EnumOptions[] var1 = values();
    043            int var2 = var1.length;
    044
    045            for (int var3 = 0; var3 < var2; ++var3)
    046            {
    047                EnumOptions var4 = var1[var3];
    048
    049                if (var4.returnEnumOrdinal() == par0)
    050                {
    051                    return var4;
    052                }
    053            }
    054
    055            return null;
    056        }
    057
    058        private EnumOptions(String par3Str, boolean par4, boolean par5)
    059        {
    060            this.enumString = par3Str;
    061            this.enumFloat = par4;
    062            this.enumBoolean = par5;
    063        }
    064
    065        public boolean getEnumFloat()
    066        {
    067            return this.enumFloat;
    068        }
    069
    070        public boolean getEnumBoolean()
    071        {
    072            return this.enumBoolean;
    073        }
    074
    075        public int returnEnumOrdinal()
    076        {
    077            return this.ordinal();
    078        }
    079
    080        public String getEnumString()
    081        {
    082            return this.enumString;
    083        }
    084    }