| 1 | package net.minecraft.client.main;
|
| 2 |
|
| 3 | import com.mojang.authlib.properties.PropertyMap;
|
| 4 | import java.io.File;
|
| 5 | import java.net.Proxy;
|
| 6 | import net.minecraft.util.Session;
|
| 7 |
|
| 8 | public class GameConfiguration
|
| 9 | {
|
| 10 | public final GameConfiguration.UserInformation userInfo;
|
| 11 | public final GameConfiguration.DisplayInformation displayInfo;
|
| 12 | public final GameConfiguration.FolderInformation folderInfo;
|
| 13 | public final GameConfiguration.GameInformation gameInfo;
|
| 14 | public final GameConfiguration.ServerInformation serverInfo;
|
| 15 |
|
| 16 | public GameConfiguration(GameConfiguration.UserInformation userInfoIn, GameConfiguration.DisplayInformation displayInfoIn, GameConfiguration.FolderInformation folderInfoIn, GameConfiguration.GameInformation gameInfoIn, GameConfiguration.ServerInformation serverInfoIn)
|
| 17 | {
|
| 18 | this.userInfo = userInfoIn;
|
| 19 | this.displayInfo = displayInfoIn;
|
| 20 | this.folderInfo = folderInfoIn;
|
| 21 | this.gameInfo = gameInfoIn;
|
| 22 | this.serverInfo = serverInfoIn;
|
| 23 | }
|
| 24 |
|
| 25 | public static class DisplayInformation
|
| 26 | {
|
| 27 | public final int width;
|
| 28 | public final int height;
|
| 29 | public final boolean fullscreen;
|
| 30 | public final boolean checkGlErrors;
|
| 31 |
|
| 32 | public DisplayInformation(int widthIn, int heightIn, boolean fullscreenIn, boolean checkGlErrorsIn)
|
| 33 | {
|
| 34 | this.width = widthIn;
|
| 35 | this.height = heightIn;
|
| 36 | this.fullscreen = fullscreenIn;
|
| 37 | this.checkGlErrors = checkGlErrorsIn;
|
| 38 | }
|
| 39 | }
|
| 40 |
|
| 41 | public static class FolderInformation
|
| 42 | {
|
| 43 | public final File mcDataDir;
|
| 44 | public final File resourcePacksDir;
|
| 45 | public final File assetsDir;
|
| 46 | public final String assetIndex;
|
| 47 |
|
| 48 | public FolderInformation(File mcDataDirIn, File resourcePacksDirIn, File assetsDirIn, String assetIndexIn)
|
| 49 | {
|
| 50 | this.mcDataDir = mcDataDirIn;
|
| 51 | this.resourcePacksDir = resourcePacksDirIn;
|
| 52 | this.assetsDir = assetsDirIn;
|
| 53 | this.assetIndex = assetIndexIn;
|
| 54 | }
|
| 55 | }
|
| 56 |
|
| 57 | public static class GameInformation
|
| 58 | {
|
| 59 | public final boolean isDemo;
|
| 60 | public final String version;
|
| 61 |
|
| 62 | public GameInformation(boolean isDemoIn, String versionIn)
|
| 63 | {
|
| 64 | this.isDemo = isDemoIn;
|
| 65 | this.version = versionIn;
|
| 66 | }
|
| 67 | }
|
| 68 |
|
| 69 | public static class ServerInformation
|
| 70 | {
|
| 71 | public final String serverName;
|
| 72 | public final int serverPort;
|
| 73 |
|
| 74 | public ServerInformation(String serverNameIn, int serverPortIn)
|
| 75 | {
|
| 76 | this.serverName = serverNameIn;
|
| 77 | this.serverPort = serverPortIn;
|
| 78 | }
|
| 79 | }
|
| 80 |
|
| 81 | public static class UserInformation
|
| 82 | {
|
| 83 | public final Session session;
|
| 84 | public final PropertyMap userProperties;
|
| 85 | public final PropertyMap profileProperties;
|
| 86 | public final Proxy proxy;
|
| 87 |
|
| 88 | public UserInformation(Session sessionIn, PropertyMap userPropertiesIn, PropertyMap profilePropertiesIn, Proxy proxyIn)
|
| 89 | {
|
| 90 | this.session = sessionIn;
|
| 91 | this.userProperties = userPropertiesIn;
|
| 92 | this.profileProperties = profilePropertiesIn;
|
| 93 | this.proxy = proxyIn;
|
| 94 | }
|
| 95 | }
|
| 96 | }
|
| 97 |
|