(GameConfiguration gameConfig)
| 355 | private String debugProfilerName = "root"; |
| 356 | |
| 357 | public Minecraft(GameConfiguration gameConfig) |
| 358 | { |
| 359 | theMinecraft = this; |
| 360 | this.mcDataDir = gameConfig.folderInfo.mcDataDir; |
| 361 | this.fileAssets = gameConfig.folderInfo.assetsDir; |
| 362 | this.fileResourcepacks = gameConfig.folderInfo.resourcePacksDir; |
| 363 | this.launchedVersion = gameConfig.gameInfo.version; |
| 364 | this.field_181038_N = gameConfig.userInfo.field_181172_c; |
| 365 | this.mcDefaultResourcePack = new DefaultResourcePack((new ResourceIndex(gameConfig.folderInfo.assetsDir, gameConfig.folderInfo.assetIndex)).getResourceMap()); |
| 366 | this.proxy = gameConfig.userInfo.proxy == null ? Proxy.NO_PROXY : gameConfig.userInfo.proxy; |
| 367 | this.sessionService = (new YggdrasilAuthenticationService(gameConfig.userInfo.proxy, UUID.randomUUID().toString())).createMinecraftSessionService(); |
| 368 | this.session = gameConfig.userInfo.session; |
| 369 | logger.info("Setting user: " + this.session.getUsername()); |
| 370 | logger.info("(Session ID is " + this.session.getSessionID() + ")"); |
| 371 | this.displayWidth = gameConfig.displayInfo.width > 0 ? gameConfig.displayInfo.width : 1; |
| 372 | this.displayHeight = gameConfig.displayInfo.height > 0 ? gameConfig.displayInfo.height : 1; |
| 373 | this.tempDisplayWidth = gameConfig.displayInfo.width; |
| 374 | this.tempDisplayHeight = gameConfig.displayInfo.height; |
| 375 | this.fullscreen = gameConfig.displayInfo.fullscreen; |
| 376 | this.jvm64bit = isJvm64bit(); |
| 377 | this.theIntegratedServer = new IntegratedServer(this); |
| 378 | |
| 379 | if (gameConfig.serverInfo.serverName != null) |
| 380 | { |
| 381 | this.serverName = gameConfig.serverInfo.serverName; |
| 382 | this.serverPort = gameConfig.serverInfo.serverPort; |
| 383 | } |
| 384 | |
| 385 | ImageIO.setUseCache(false); |
| 386 | Bootstrap.register(); |
| 387 | } |
| 388 | |
| 389 | public void run() |
| 390 | { |
nothing calls this directly
no test coverage detected