MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / Minecraft

Method Minecraft

src/main/java/net/minecraft/client/Minecraft.java:357–387  ·  view source on GitHub ↗
(GameConfiguration gameConfig)

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 7

isJvm64bitMethod · 0.95
registerMethod · 0.95
getResourceMapMethod · 0.80
infoMethod · 0.80
getSessionIDMethod · 0.80
toStringMethod · 0.45
getUsernameMethod · 0.45

Tested by

no test coverage detected