private final void method114(int i) {
	anInt5188++;
	if (Class240.anInt4674 != 14) {
	    Class367_Sub11.logicCycle++;
	    if (Class367_Sub11.logicCycle % 1000 == 1) {
		GregorianCalendar gregoriancalendar = new GregorianCalendar();
		HashTable.calendarTime = (gregoriancalendar.get(11) * 600
				      + gregoriancalendar.get(12) * 10
				      + gregoriancalendar.get(13) / 6);
		OutputStream_Sub1.random.setSeed((long) HashTable.calendarTime);
	    }
	    if (Class367_Sub11.logicCycle % 50 == 0) {
		Class348_Sub48.anInt7134 = Class81.anInt1433;
		Class81.anInt1433 = 0;
		Class264.anInt3372 = Class13.anInt221;
		Class13.anInt221 = 0;
	    }
	    processOndemandWorker();
	    if (Class175.aClass340_2327 != null)
		Class175.aClass340_2327.method2670(0);
	    Huffman.method2228(0);
	    OndemandFileRequest.method3260(66);
	    Class182.keyboardListener.process(67);
	    Class258_Sub4.mouseMovementListener.process(0);
	    if (Class348_Sub8.currentToolkit != null)
		Class348_Sub8.currentToolkit.method3646((int) Class62.getCurrentTimeMillis());
	    VarpHandler.method1315(93);
	    Class253.anInt3246 = 0;
	    ClientScript.anInt9699 = 0;
	    for (KeyboardEvent interface6 = Class182.keyboardListener.method2697(0);
		 interface6 != null;
		 interface6 = Class182.keyboardListener.method2697(0)) {
		int i_109_ = interface6.method27(26276);
		if (i_109_ != 2 && (i_109_ ^ 0xffffffff) != -4) {
		    if (i_109_ == 0
			&& (Class253.anInt3246 ^ 0xffffffff) > -76) {
			Class308.anInterface6Array3884[Class253.anInt3246]
			    = interface6;
			Class253.anInt3246++;
		    }
		} else {
		    int i_110_ = interface6.getCharacter((byte) 96);
		    if (!Class275.method2066((byte) 116)
			|| ((i_110_ ^ 0xffffffff) != -97
			    && (i_110_ ^ 0xffffffff) != -168
			    && i_110_ != 178)) {
			if (ClientScript.anInt9699 < 128) {
			    Class348_Sub42_Sub5.anInterface6Array9534
				[ClientScript.anInt9699]
				= interface6;
			    ClientScript.anInt9699++;
			}
		    } else if (!FileIndexRequest.isConsoleActive())
			BitmapTable.method2363(-84);
		    else
			Class367_Sub4.method3543((byte) -89);
		}
	    }
	    Class98.anInt1565 = 0;
	    for (AbstractMouseEvent mouseEvent
		     = Class258_Sub4.mouseMovementListener.getFirstEvent(0);
		 mouseEvent != null;
		 mouseEvent = Class258_Sub4.mouseMovementListener.getFirstEvent(0)) {
		int type = mouseEvent.getType(86);
		if (type != -1) {
		    if ((type ^ 0xffffffff) != -7) {
			if (Class371.method3584(type, 1)) {
			    Entity.aClass262_8744.addToFront(mouseEvent, -20180);
			    if ((Entity.aClass262_8744.getSize(0)
				 ^ 0xffffffff)
				< -11)
				Entity.aClass262_8744
				    .removeFirst(8);
			}
		    } else
			Class98.anInt1565 += mouseEvent.getClickCount(0);
		} else
		    r_Sub1.aClass262_10479.addToFront(mouseEvent, -20180);
	    }
	    if (FileIndexRequest.isConsoleActive())
		Class38.method363(125);
	    if (Class139.method1167(Class240.anInt4674, (byte) -51)) {
		ColorNode.method493(true);
		Class94.method867(true);
	    } else if (Class318_Sub1_Sub1_Sub2.method2402(Class240.anInt4674,
							  (byte) -120))
		Canvas_Sub1.rebuildMap(0);
	    if (i < 32)
		aClass262_5185 = null;
	    if (Class348_Sub42_Sub8.method3196(Class240.anInt4674, -74)
		&& !Class318_Sub1_Sub1_Sub2.method2402(Class240.anInt4674,
						       (byte) -55)) {
		method113((byte) 112);
		Class348_Sub5.method2757(110);
		Class88.method843((byte) 102);
	    } else if (!ArchiveFetcher.method2672(Class240.anInt4674, -123)
		       || Class318_Sub1_Sub1_Sub2
			      .method2402(Class240.anInt4674, (byte) -115)) {
		if ((Class240.anInt4674 ^ 0xffffffff) == -13)
		    Class88.method843((byte) 113);
		else if (Class334.method2653(true, Class240.anInt4674)
			 && !Class318_Sub1_Sub1_Sub2
				 .method2402(Class240.anInt4674, (byte) -86))
		    Class348_Sub24.method2991(11432);
		else if (Class240.anInt4674 == 13) {
		    Class88.method843((byte) -75);
		    if (Class348_Sub6.anInt6634 != -3
			&& (Class348_Sub6.anInt6634 ^ 0xffffffff) != -3
			&& Class348_Sub6.anInt6634 != 15)
			Class348_Sub40_Sub34.method3141(false, (byte) 11);
		}
	    } else {
		method113((byte) 112);
		Class88.method843((byte) 67);
	    }
	    Class22.method294(Class348_Sub8.currentToolkit, 0);
	    Entity.aClass262_8744.removeFirst(8);
	}
    }