public Minecraft(Session p_i1103_1_, int p_i1103_2_, int p_i1103_3_, boolean p_i1103_4_, boolean p_i1103_5_, File p_i1103_6_, File p_i1103_7_, File p_i1103_8_, Proxy p_i1103_9_, String p_i1103_10_, Multimap p_i1103_11_, String p_i1103_12_) { theMinecraft = this; this.mcDataDir = p_i1103_6_; this.fileAssets = p_i1103_7_; this.fileResourcepacks = p_i1103_8_; this.launchedVersion = p_i1103_10_; this.field_152356_J = p_i1103_11_; this.mcDefaultResourcePack = new DefaultResourcePack((new ResourceIndex(p_i1103_7_, p_i1103_12_)).func_152782_a()); this.addDefaultResourcePack(); this.proxy = p_i1103_9_ == null ? Proxy.NO_PROXY : p_i1103_9_; this.field_152355_az = (new YggdrasilAuthenticationService(p_i1103_9_, UUID.randomUUID().toString())).createMinecraftSessionService(); this.startTimerHackThread(); this.session = p_i1103_1_; logger.info("Setting user: " + p_i1103_1_.getUsername()); this.isDemo = p_i1103_5_; this.displayWidth = p_i1103_2_; this.displayHeight = p_i1103_3_; this.tempDisplayWidth = p_i1103_2_; this.tempDisplayHeight = p_i1103_3_; this.fullscreen = p_i1103_4_; this.jvm64bit = isJvm64bit(); ImageIO.setUseCache(false); Bootstrap.func_151354_b(); }
public Minecraft(GameConfiguration gameConfig) { theMinecraft = this; this.mcDataDir = gameConfig.folderInfo.mcDataDir; this.fileAssets = gameConfig.folderInfo.assetsDir; this.fileResourcepacks = gameConfig.folderInfo.resourcePacksDir; this.launchedVersion = gameConfig.gameInfo.version; this.twitchDetails = gameConfig.userInfo.userProperties; this.field_181038_N = gameConfig.userInfo.field_181172_c; this.mcDefaultResourcePack = new DefaultResourcePack((new ResourceIndex(gameConfig.folderInfo.assetsDir, gameConfig.folderInfo.assetIndex)).getResourceMap()); this.proxy = gameConfig.userInfo.proxy == null ? Proxy.NO_PROXY : gameConfig.userInfo.proxy; this.sessionService = (new YggdrasilAuthenticationService(gameConfig.userInfo.proxy, UUID.randomUUID().toString())).createMinecraftSessionService(); this.session = gameConfig.userInfo.session; logger.info("Setting user: " + this.session.getUsername()); logger.info("(Session ID is " + this.session.getSessionID() + ")"); this.isDemo = gameConfig.gameInfo.isDemo; this.displayWidth = gameConfig.displayInfo.width > 0 ? gameConfig.displayInfo.width : 1; this.displayHeight = gameConfig.displayInfo.height > 0 ? gameConfig.displayInfo.height : 1; this.tempDisplayWidth = gameConfig.displayInfo.width; this.tempDisplayHeight = gameConfig.displayInfo.height; this.fullscreen = gameConfig.displayInfo.fullscreen; this.jvm64bit = isJvm64bit(); this.theIntegratedServer = new IntegratedServer(this); if (gameConfig.serverInfo.serverName != null) { this.serverName = gameConfig.serverInfo.serverName; this.serverPort = gameConfig.serverInfo.serverPort; } ImageIO.setUseCache(false); Bootstrap.register(); }
public Minecraft(GameConfiguration gameConfig) { theMinecraft = this; this.mcDataDir = gameConfig.folderInfo.mcDataDir; this.fileAssets = gameConfig.folderInfo.assetsDir; this.fileResourcepacks = gameConfig.folderInfo.resourcePacksDir; this.launchedVersion = gameConfig.gameInfo.version; this.twitchDetails = gameConfig.userInfo.userProperties; this.field_181038_N = gameConfig.userInfo.field_181172_c; this.mcDefaultResourcePack = new DefaultResourcePack( (new ResourceIndex(gameConfig.folderInfo.assetsDir, gameConfig.folderInfo.assetIndex)) .getResourceMap()); this.proxy = gameConfig.userInfo.proxy == null ? Proxy.NO_PROXY : gameConfig.userInfo.proxy; this.sessionService = (new YggdrasilAuthenticationService(gameConfig.userInfo.proxy, UUID.randomUUID().toString())).createMinecraftSessionService(); this.session = gameConfig.userInfo.session; logger.info("Setting user: " + this.session.getUsername()); logger.info("(Session ID is " + this.session.getSessionID() + ")"); this.isDemo = gameConfig.gameInfo.isDemo; this.displayWidth = gameConfig.displayInfo.width > 0 ? gameConfig.displayInfo.width : 1; this.displayHeight = gameConfig.displayInfo.height > 0 ? gameConfig.displayInfo.height : 1; this.tempDisplayWidth = gameConfig.displayInfo.width; this.tempDisplayHeight = gameConfig.displayInfo.height; this.fullscreen = gameConfig.displayInfo.fullscreen; this.jvm64bit = isJvm64bit(); this.theIntegratedServer = new IntegratedServer(this); if (gameConfig.serverInfo.serverName != null) { this.serverName = gameConfig.serverInfo.serverName; this.serverPort = gameConfig.serverInfo.serverPort; } ImageIO.setUseCache(false); Bootstrap.register(); }
public ResourceIndex getAssetsIndex() { return (ResourceIndex)(this.assetIndex == null ? new ResourceIndexFolder(this.assetsDir) : new ResourceIndex(this.assetsDir, this.assetIndex)); }