| 54 | import org.lwjgl.opengl.DisplayMode; |
| 55 | |
| 56 | public class GameSettings |
| 57 | { |
| 58 | private static final Logger logger = LogManager.getLogger(); |
| 59 | private static final Gson gson = new Gson(); |
| 60 | private static final ParameterizedType typeListString = new ParameterizedType() |
| 61 | { |
| 62 | public Type[] getActualTypeArguments() |
| 63 | { |
| 64 | return new Type[] {String.class}; |
| 65 | } |
| 66 | public Type getRawType() |
| 67 | { |
| 68 | return List.class; |
| 69 | } |
| 70 | public Type getOwnerType() |
| 71 | { |
| 72 | return null; |
| 73 | } |
| 74 | }; |
| 75 | |
| 76 | /** GUI scale values */ |
| 77 | private static final String[] GUISCALES = new String[] {"options.guiScale.auto", "options.guiScale.small", "options.guiScale.normal", "options.guiScale.large"}; |
| 78 | private static final String[] PARTICLES = new String[] {"options.particles.all", "options.particles.decreased", "options.particles.minimal"}; |
| 79 | private static final String[] AMBIENT_OCCLUSIONS = new String[] {"options.ao.off", "options.ao.min", "options.ao.max"}; |
| 80 | private static final String[] field_181149_aW = new String[] {"options.off", "options.graphics.fast", "options.graphics.fancy"}; |
| 81 | public float mouseSensitivity = 0.5F; |
| 82 | public boolean invertMouse; |
| 83 | public int renderDistanceChunks = -1; |
| 84 | public boolean viewBobbing = true; |
| 85 | public boolean anaglyph; |
| 86 | public boolean fboEnable = true; |
| 87 | public int limitFramerate = 120; |
| 88 | |
| 89 | /** Clouds flag */ |
| 90 | public int clouds = 2; |
| 91 | public boolean fancyGraphics = true; |
| 92 | |
| 93 | /** Smooth Lighting */ |
| 94 | public int ambientOcclusion = 2; |
| 95 | public List<String> resourcePacks = Lists.<String>newArrayList(); |
| 96 | public List<String> field_183018_l = Lists.<String>newArrayList(); |
| 97 | public EntityPlayer.EnumChatVisibility chatVisibility = EntityPlayer.EnumChatVisibility.FULL; |
| 98 | public boolean chatColours = true; |
| 99 | public boolean chatLinks = true; |
| 100 | public boolean chatLinksPrompt = true; |
| 101 | public float chatOpacity = 1.0F; |
| 102 | public boolean snooperEnabled = true; |
| 103 | public boolean fullScreen; |
| 104 | public boolean enableVsync = true; |
| 105 | public boolean useVbo = false; |
| 106 | public boolean allowBlockAlternatives = true; |
| 107 | public boolean reducedDebugInfo = false; |
| 108 | public boolean hideServerAddress; |
| 109 | |
| 110 | /** |
| 111 | * Whether to show advanced information on item tooltips, toggled by F3+H |
| 112 | */ |
| 113 | public boolean advancedItemTooltips; |
nothing calls this directly
no test coverage detected