protected void loadAllWorlds( String par1Str, String par2Str, long par3, WorldType par5WorldType, String par6Str) { this.convertMapIfNeeded(par1Str); ISaveHandler var7 = this.getActiveAnvilConverter().getSaveLoader(par1Str, true); if (Reflector.DimensionManager.exists()) { Object var8 = this.isDemo() ? new DemoWorldServer(this, var7, par2Str, 0, this.theProfiler) : new WorldServerOF(this, var7, par2Str, 0, this.theWorldSettings, this.theProfiler); Integer[] var9 = (Integer[]) ((Integer[]) Reflector.call(Reflector.DimensionManager_getStaticDimensionIDs, new Object[0])); Integer[] arr$ = var9; int len$ = var9.length; for (int i$ = 0; i$ < len$; ++i$) { int dim = arr$[i$].intValue(); Object world = dim == 0 ? var8 : new WorldServerMultiOF( this, var7, par2Str, dim, this.theWorldSettings, (WorldServer) var8, this.theProfiler); ((WorldServer) world).addWorldAccess(new WorldManager(this, (WorldServer) world)); if (!this.isSinglePlayer()) { ((WorldServer) world).getWorldInfo().setGameType(this.getGameType()); } if (Reflector.EventBus.exists()) { Reflector.postForgeBusEvent(Reflector.WorldEvent_Load_Constructor, new Object[] {world}); } } this.getConfigurationManager().setPlayerManager(new WorldServer[] {(WorldServer) var8}); } else { this.worldServers = new WorldServer[3]; this.timeOfLastDimensionTick = new long[this.worldServers.length][100]; for (int var15 = 0; var15 < this.worldServers.length; ++var15) { byte var16 = 0; if (var15 == 1) { var16 = -1; } if (var15 == 2) { var16 = 1; } if (var15 == 0) { if (this.isDemo()) { this.worldServers[var15] = new DemoWorldServer(this, var7, par2Str, var16, this.theProfiler); } else { this.worldServers[var15] = new WorldServerOF( this, var7, par2Str, var16, this.theWorldSettings, this.theProfiler); } } else { this.worldServers[var15] = new WorldServerMultiOF( this, var7, par2Str, var16, this.theWorldSettings, this.worldServers[0], this.theProfiler); } this.worldServers[var15].addWorldAccess(new WorldManager(this, this.worldServers[var15])); this.getConfigurationManager().setPlayerManager(this.worldServers); } } this.func_147139_a(this.func_147135_j()); this.initialWorldChunkLoad(); }