diff --git a/.classpath b/.classpath
index 511b8b1..b66031a 100644
--- a/.classpath
+++ b/.classpath
@@ -6,13 +6,7 @@
-
-
-
-
-
-
-
+
diff --git a/.project b/.project
index 1e7ca72..9b202fe 100644
--- a/.project
+++ b/.project
@@ -20,11 +20,4 @@
org.eclipse.jdt.core.javanature
org.eclipse.buildship.core.gradleprojectnature
-
-
- src_minecraft
- 2
- S:/Misc Minecraft/minecraft html5/minecrafthtml5mcp/src_minecraft
-
-
diff --git a/build.gradle b/build.gradle
index 5b0a1bd..3a8a8ff 100644
--- a/build.gradle
+++ b/build.gradle
@@ -19,7 +19,8 @@ targetCompatibility = 1.8
sourceSets {
main {
java {
- srcDir '../minecrafthtml5mcp/src_minecraft'
+ srcDir 'src/main/java'
+ srcDir 'src/teavm/java'
}
}
}
diff --git a/javascript/assets.epk b/javascript/assets.epk
new file mode 100644
index 0000000..50403d0
Binary files /dev/null and b/javascript/assets.epk differ
diff --git a/javascript/classes.js b/javascript/classes.js
new file mode 100644
index 0000000..d45dadf
--- /dev/null
+++ b/javascript/classes.js
@@ -0,0 +1,229770 @@
+"use strict";
+var main;
+(function() {
+var $rt_seed = 2463534242;
+function $rt_nextId() {
+ var x = $rt_seed;
+ x ^= x << 13;
+ x ^= x >> 17;
+ x ^= x << 5;
+ $rt_seed = x;
+ return x;
+}
+function $rt_compare(a, b) {
+ return a > b ? 1 : a < b ? -1 : a === b ? 0 : 1;
+}
+function $rt_isInstance(obj, cls) {
+ return obj !== null && !!obj.constructor.$meta && $rt_isAssignable(obj.constructor, cls);
+}
+function $rt_isAssignable(from, to) {
+ if (from === to) {
+ return true;
+ }
+ if (to.$meta.item !== null) {
+ return from.$meta.item !== null && $rt_isAssignable(from.$meta.item, to.$meta.item);
+ }
+ var supertypes = from.$meta.supertypes;
+ for (var i = 0;i < supertypes.length;i = i + 1 | 0) {
+ if ($rt_isAssignable(supertypes[i], to)) {
+ return true;
+ }
+ }
+ return false;
+}
+function $rt_createArray(cls, sz) {
+ var data = new Array(sz);
+ var arr = new $rt_array(cls, data);
+ if (sz > 0) {
+ var i = 0;
+ do {
+ data[i] = null;
+ i = i + 1 | 0;
+ }while (i < sz);
+ }
+ return arr;
+}
+function $rt_wrapArray(cls, data) {
+ return new $rt_array(cls, data);
+}
+function $rt_createUnfilledArray(cls, sz) {
+ return new $rt_array(cls, new Array(sz));
+}
+function $rt_createLongArray(sz) {
+ var data = new Array(sz);
+ var arr = new $rt_array($rt_longcls(), data);
+ for (var i = 0;i < sz;i = i + 1 | 0) {
+ data[i] = Long_ZERO;
+ }
+ return arr;
+}
+function $rt_createNumericArray(cls, nativeArray) {
+ return new $rt_array(cls, nativeArray);
+}
+function $rt_createCharArray(sz) {
+ return $rt_createNumericArray($rt_charcls(), new Uint16Array(sz));
+}
+function $rt_createByteArray(sz) {
+ return $rt_createNumericArray($rt_bytecls(), new Int8Array(sz));
+}
+function $rt_createShortArray(sz) {
+ return $rt_createNumericArray($rt_shortcls(), new Int16Array(sz));
+}
+function $rt_createIntArray(sz) {
+ return $rt_createNumericArray($rt_intcls(), new Int32Array(sz));
+}
+function $rt_createBooleanArray(sz) {
+ return $rt_createNumericArray($rt_booleancls(), new Int8Array(sz));
+}
+function $rt_createFloatArray(sz) {
+ return $rt_createNumericArray($rt_floatcls(), new Float32Array(sz));
+}
+function $rt_createDoubleArray(sz) {
+ return $rt_createNumericArray($rt_doublecls(), new Float64Array(sz));
+}
+function $rt_arraycls(cls) {
+ var result = cls.$array;
+ if (result === null) {
+ var arraycls = { };
+ var name = "[" + cls.$meta.binaryName;
+ arraycls.$meta = { item : cls, supertypes : [$rt_objcls()], primitive : false, superclass : $rt_objcls(), name : name, binaryName : name, enum : false };
+ arraycls.classObject = null;
+ arraycls.$array = null;
+ result = arraycls;
+ cls.$array = arraycls;
+ }
+ return result;
+}
+function $rt_createcls() {
+ return { $array : null, classObject : null, $meta : { supertypes : [], superclass : null } };
+}
+function $rt_createPrimitiveCls(name, binaryName) {
+ var cls = $rt_createcls();
+ cls.$meta.primitive = true;
+ cls.$meta.name = name;
+ cls.$meta.binaryName = binaryName;
+ cls.$meta.enum = false;
+ cls.$meta.item = null;
+ return cls;
+}
+var $rt_booleanclsCache = null;
+function $rt_booleancls() {
+ if ($rt_booleanclsCache === null) {
+ $rt_booleanclsCache = $rt_createPrimitiveCls("boolean", "Z");
+ }
+ return $rt_booleanclsCache;
+}
+var $rt_charclsCache = null;
+function $rt_charcls() {
+ if ($rt_charclsCache === null) {
+ $rt_charclsCache = $rt_createPrimitiveCls("char", "C");
+ }
+ return $rt_charclsCache;
+}
+var $rt_byteclsCache = null;
+function $rt_bytecls() {
+ if ($rt_byteclsCache === null) {
+ $rt_byteclsCache = $rt_createPrimitiveCls("byte", "B");
+ }
+ return $rt_byteclsCache;
+}
+var $rt_shortclsCache = null;
+function $rt_shortcls() {
+ if ($rt_shortclsCache === null) {
+ $rt_shortclsCache = $rt_createPrimitiveCls("short", "S");
+ }
+ return $rt_shortclsCache;
+}
+var $rt_intclsCache = null;
+function $rt_intcls() {
+ if ($rt_intclsCache === null) {
+ $rt_intclsCache = $rt_createPrimitiveCls("int", "I");
+ }
+ return $rt_intclsCache;
+}
+var $rt_longclsCache = null;
+function $rt_longcls() {
+ if ($rt_longclsCache === null) {
+ $rt_longclsCache = $rt_createPrimitiveCls("long", "J");
+ }
+ return $rt_longclsCache;
+}
+var $rt_floatclsCache = null;
+function $rt_floatcls() {
+ if ($rt_floatclsCache === null) {
+ $rt_floatclsCache = $rt_createPrimitiveCls("float", "F");
+ }
+ return $rt_floatclsCache;
+}
+var $rt_doubleclsCache = null;
+function $rt_doublecls() {
+ if ($rt_doubleclsCache === null) {
+ $rt_doubleclsCache = $rt_createPrimitiveCls("double", "D");
+ }
+ return $rt_doubleclsCache;
+}
+var $rt_voidclsCache = null;
+function $rt_voidcls() {
+ if ($rt_voidclsCache === null) {
+ $rt_voidclsCache = $rt_createPrimitiveCls("void", "V");
+ }
+ return $rt_voidclsCache;
+}
+function $rt_throw(ex) {
+ throw $rt_exception(ex);
+}
+function $rt_exception(ex) {
+ var err = ex.$jsException;
+ if (!err) {
+ err = new Error("Java exception thrown");
+ if (typeof Error.captureStackTrace === "function") {
+ Error.captureStackTrace(err);
+ }
+ err.$javaException = ex;
+ ex.$jsException = err;
+ $rt_fillStack(err, ex);
+ }
+ return err;
+}
+function $rt_fillStack(err, ex) {
+ if (typeof $rt_decodeStack === "function" && err.stack) {
+ var stack = $rt_decodeStack(err.stack);
+ var javaStack = $rt_createArray($rt_objcls(), stack.length);
+ var elem;
+ var noStack = false;
+ for (var i = 0;i < stack.length;++i) {
+ var element = stack[i];
+ elem = $rt_createStackElement($rt_str(element.className), $rt_str(element.methodName), $rt_str(element.fileName), element.lineNumber);
+ if (elem == null) {
+ noStack = true;
+ break;
+ }
+ javaStack.data[i] = elem;
+ }
+ if (!noStack) {
+ $rt_setStack(ex, javaStack);
+ }
+ }
+}
+function $rt_createMultiArray(cls, dimensions) {
+ var first = 0;
+ for (var i = dimensions.length - 1;i >= 0;i = i - 1 | 0) {
+ if (dimensions[i] === 0) {
+ first = i;
+ break;
+ }
+ }
+ if (first > 0) {
+ for (i = 0;i < first;i = i + 1 | 0) {
+ cls = $rt_arraycls(cls);
+ }
+ if (first === dimensions.length - 1) {
+ return $rt_createArray(cls, dimensions[first]);
+ }
+ }
+ var arrays = new Array($rt_primitiveArrayCount(dimensions, first));
+ var firstDim = dimensions[first] | 0;
+ for (i = 0;i < arrays.length;i = i + 1 | 0) {
+ arrays[i] = $rt_createArray(cls, firstDim);
+ }
+ return $rt_createMultiArrayImpl(cls, arrays, dimensions, first);
+}
+function $rt_createByteMultiArray(dimensions) {
+ var arrays = new Array($rt_primitiveArrayCount(dimensions, 0));
+ if (arrays.length === 0) {
+ return $rt_createMultiArray($rt_bytecls(), dimensions);
+ }
+ var firstDim = dimensions[0] | 0;
+ for (var i = 0;i < arrays.length;i = i + 1 | 0) {
+ arrays[i] = $rt_createByteArray(firstDim);
+ }
+ return $rt_createMultiArrayImpl($rt_bytecls(), arrays, dimensions);
+}
+function $rt_createCharMultiArray(dimensions) {
+ var arrays = new Array($rt_primitiveArrayCount(dimensions, 0));
+ if (arrays.length === 0) {
+ return $rt_createMultiArray($rt_charcls(), dimensions);
+ }
+ var firstDim = dimensions[0] | 0;
+ for (var i = 0;i < arrays.length;i = i + 1 | 0) {
+ arrays[i] = $rt_createCharArray(firstDim);
+ }
+ return $rt_createMultiArrayImpl($rt_charcls(), arrays, dimensions, 0);
+}
+function $rt_createBooleanMultiArray(dimensions) {
+ var arrays = new Array($rt_primitiveArrayCount(dimensions, 0));
+ if (arrays.length === 0) {
+ return $rt_createMultiArray($rt_booleancls(), dimensions);
+ }
+ var firstDim = dimensions[0] | 0;
+ for (var i = 0;i < arrays.length;i = i + 1 | 0) {
+ arrays[i] = $rt_createBooleanArray(firstDim);
+ }
+ return $rt_createMultiArrayImpl($rt_booleancls(), arrays, dimensions, 0);
+}
+function $rt_createShortMultiArray(dimensions) {
+ var arrays = new Array($rt_primitiveArrayCount(dimensions, 0));
+ if (arrays.length === 0) {
+ return $rt_createMultiArray($rt_shortcls(), dimensions);
+ }
+ var firstDim = dimensions[0] | 0;
+ for (var i = 0;i < arrays.length;i = i + 1 | 0) {
+ arrays[i] = $rt_createShortArray(firstDim);
+ }
+ return $rt_createMultiArrayImpl($rt_shortcls(), arrays, dimensions, 0);
+}
+function $rt_createIntMultiArray(dimensions) {
+ var arrays = new Array($rt_primitiveArrayCount(dimensions, 0));
+ if (arrays.length === 0) {
+ return $rt_createMultiArray($rt_intcls(), dimensions);
+ }
+ var firstDim = dimensions[0] | 0;
+ for (var i = 0;i < arrays.length;i = i + 1 | 0) {
+ arrays[i] = $rt_createIntArray(firstDim);
+ }
+ return $rt_createMultiArrayImpl($rt_intcls(), arrays, dimensions, 0);
+}
+function $rt_createLongMultiArray(dimensions) {
+ var arrays = new Array($rt_primitiveArrayCount(dimensions, 0));
+ if (arrays.length === 0) {
+ return $rt_createMultiArray($rt_longcls(), dimensions);
+ }
+ var firstDim = dimensions[0] | 0;
+ for (var i = 0;i < arrays.length;i = i + 1 | 0) {
+ arrays[i] = $rt_createLongArray(firstDim);
+ }
+ return $rt_createMultiArrayImpl($rt_longcls(), arrays, dimensions, 0);
+}
+function $rt_createFloatMultiArray(dimensions) {
+ var arrays = new Array($rt_primitiveArrayCount(dimensions, 0));
+ if (arrays.length === 0) {
+ return $rt_createMultiArray($rt_floatcls(), dimensions);
+ }
+ var firstDim = dimensions[0] | 0;
+ for (var i = 0;i < arrays.length;i = i + 1 | 0) {
+ arrays[i] = $rt_createFloatArray(firstDim);
+ }
+ return $rt_createMultiArrayImpl($rt_floatcls(), arrays, dimensions, 0);
+}
+function $rt_createDoubleMultiArray(dimensions) {
+ var arrays = new Array($rt_primitiveArrayCount(dimensions, 0));
+ if (arrays.length === 0) {
+ return $rt_createMultiArray($rt_doublecls(), dimensions);
+ }
+ var firstDim = dimensions[0] | 0;
+ for (var i = 0;i < arrays.length;i = i + 1 | 0) {
+ arrays[i] = $rt_createDoubleArray(firstDim);
+ }
+ return $rt_createMultiArrayImpl($rt_doublecls(), arrays, dimensions, 0);
+}
+function $rt_primitiveArrayCount(dimensions, start) {
+ var val = dimensions[start + 1] | 0;
+ for (var i = start + 2;i < dimensions.length;i = i + 1 | 0) {
+ val = val * (dimensions[i] | 0) | 0;
+ if (val === 0) {
+ break;
+ }
+ }
+ return val;
+}
+function $rt_createMultiArrayImpl(cls, arrays, dimensions, start) {
+ var limit = arrays.length;
+ for (var i = start + 1 | 0;i < dimensions.length;i = i + 1 | 0) {
+ cls = $rt_arraycls(cls);
+ var dim = dimensions[i];
+ var index = 0;
+ var packedIndex = 0;
+ while (index < limit) {
+ var arr = $rt_createUnfilledArray(cls, dim);
+ for (var j = 0;j < dim;j = j + 1 | 0) {
+ arr.data[j] = arrays[index];
+ index = index + 1 | 0;
+ }
+ arrays[packedIndex] = arr;
+ packedIndex = packedIndex + 1 | 0;
+ }
+ limit = packedIndex;
+ }
+ return arrays[0];
+}
+function $rt_assertNotNaN(value) {
+ if (typeof value === 'number' && isNaN(value)) {
+ throw "NaN";
+ }
+ return value;
+}
+var $rt_stdoutBuffer = "";
+var $rt_putStdout = typeof $rt_putStdoutCustom === "function" ? $rt_putStdoutCustom : function(ch) {
+ if (ch === 0xA) {
+ if (console) {
+ console.info($rt_stdoutBuffer);
+ }
+ $rt_stdoutBuffer = "";
+ } else {
+ $rt_stdoutBuffer += String.fromCharCode(ch);
+ }
+};
+var $rt_stderrBuffer = "";
+var $rt_putStderr = typeof $rt_putStderrCustom === "function" ? $rt_putStderrCustom : function(ch) {
+ if (ch === 0xA) {
+ if (console) {
+ console.error($rt_stderrBuffer);
+ }
+ $rt_stderrBuffer = "";
+ } else {
+ $rt_stderrBuffer += String.fromCharCode(ch);
+ }
+};
+var $rt_packageData = null;
+function $rt_packages(data) {
+ var i = 0;
+ var packages = new Array(data.length);
+ for (var j = 0;j < data.length;++j) {
+ var prefixIndex = data[i++];
+ var prefix = prefixIndex >= 0 ? packages[prefixIndex] : "";
+ packages[j] = prefix + data[i++] + ".";
+ }
+ $rt_packageData = packages;
+}
+function $rt_metadata(data) {
+ var packages = $rt_packageData;
+ var i = 0;
+ while (i < data.length) {
+ var cls = data[i++];
+ cls.$meta = { };
+ var m = cls.$meta;
+ var className = data[i++];
+ m.name = className !== 0 ? className : null;
+ if (m.name !== null) {
+ var packageIndex = data[i++];
+ if (packageIndex >= 0) {
+ m.name = packages[packageIndex] + m.name;
+ }
+ }
+ m.binaryName = "L" + m.name + ";";
+ var superclass = data[i++];
+ m.superclass = superclass !== 0 ? superclass : null;
+ m.supertypes = data[i++];
+ if (m.superclass) {
+ m.supertypes.push(m.superclass);
+ cls.prototype = Object.create(m.superclass.prototype);
+ } else {
+ cls.prototype = { };
+ }
+ var flags = data[i++];
+ m.enum = (flags & 8) !== 0;
+ m.flags = flags;
+ m.primitive = false;
+ m.item = null;
+ cls.prototype.constructor = cls;
+ cls.classObject = null;
+ m.accessLevel = data[i++];
+ var clinit = data[i++];
+ cls.$clinit = clinit !== 0 ? clinit : function() {
+ };
+ var virtualMethods = data[i++];
+ if (virtualMethods !== 0) {
+ for (var j = 0;j < virtualMethods.length;j += 2) {
+ var name = virtualMethods[j];
+ var func = virtualMethods[j + 1];
+ if (typeof name === 'string') {
+ name = [name];
+ }
+ for (var k = 0;k < name.length;++k) {
+ cls.prototype[name[k]] = func;
+ }
+ }
+ }
+ cls.$array = null;
+ }
+}
+function $rt_threadStarter(f) {
+ return function() {
+ var args = Array.prototype.slice.apply(arguments);
+ $rt_startThread(function() {
+ f.apply(this, args);
+ });
+ };
+}
+function $rt_mainStarter(f) {
+ return function(args, callback) {
+ if (!args) {
+ args = [];
+ }
+ var javaArgs = $rt_createArray($rt_objcls(), args.length);
+ for (var i = 0;i < args.length;++i) {
+ javaArgs.data[i] = $rt_str(args[i]);
+ }
+ $rt_startThread(function() {
+ f.call(null, javaArgs);
+ }, callback);
+ };
+}
+var $rt_stringPool_instance;
+function $rt_stringPool(strings) {
+ $rt_stringPool_instance = new Array(strings.length);
+ for (var i = 0;i < strings.length;++i) {
+ $rt_stringPool_instance[i] = $rt_intern($rt_str(strings[i]));
+ }
+}
+function $rt_s(index) {
+ return $rt_stringPool_instance[index];
+}
+function $rt_eraseClinit(target) {
+ return target.$clinit = function() {
+ };
+}
+var $rt_numberConversionView = new DataView(new ArrayBuffer(8));
+function $rt_doubleToLongBits(n) {
+ $rt_numberConversionView.setFloat64(0, n, true);
+ return new Long($rt_numberConversionView.getInt32(0, true), $rt_numberConversionView.getInt32(4, true));
+}
+function $rt_longBitsToDouble(n) {
+ $rt_numberConversionView.setInt32(0, n.lo, true);
+ $rt_numberConversionView.setInt32(4, n.hi, true);
+ return $rt_numberConversionView.getFloat64(0, true);
+}
+function $rt_floatToIntBits(n) {
+ $rt_numberConversionView.setFloat32(0, n);
+ return $rt_numberConversionView.getInt32(0);
+}
+function $rt_intBitsToFloat(n) {
+ $rt_numberConversionView.setInt32(0, n);
+ return $rt_numberConversionView.getFloat32(0);
+}
+function $rt_javaException(e) {
+ return e instanceof Error && typeof e.$javaException === 'object' ? e.$javaException : null;
+}
+function $rt_jsException(e) {
+ return typeof e.$jsException === 'object' ? e.$jsException : null;
+}
+function $rt_wrapException(err) {
+ var ex = err.$javaException;
+ if (!ex) {
+ ex = $rt_createException($rt_str("(JavaScript) " + err.toString()));
+ err.$javaException = ex;
+ ex.$jsException = err;
+ $rt_fillStack(err, ex);
+ }
+ return ex;
+}
+function $dbg_class(obj) {
+ var cls = obj.constructor;
+ var arrayDegree = 0;
+ while (cls.$meta && cls.$meta.item) {
+ ++arrayDegree;
+ cls = cls.$meta.item;
+ }
+ var clsName = "";
+ if (cls === $rt_booleancls()) {
+ clsName = "boolean";
+ } else if (cls === $rt_bytecls()) {
+ clsName = "byte";
+ } else if (cls === $rt_shortcls()) {
+ clsName = "short";
+ } else if (cls === $rt_charcls()) {
+ clsName = "char";
+ } else if (cls === $rt_intcls()) {
+ clsName = "int";
+ } else if (cls === $rt_longcls()) {
+ clsName = "long";
+ } else if (cls === $rt_floatcls()) {
+ clsName = "float";
+ } else if (cls === $rt_doublecls()) {
+ clsName = "double";
+ } else {
+ clsName = cls.$meta ? cls.$meta.name || "a/" + cls.name : "@" + cls.name;
+ }
+ while (arrayDegree-- > 0) {
+ clsName += "[]";
+ }
+ return clsName;
+}
+function Long(lo, hi) {
+ this.lo = lo | 0;
+ this.hi = hi | 0;
+}
+Long.prototype.__teavm_class__ = function() {
+ return "long";
+};
+Long.prototype.toString = function() {
+ var result = [];
+ var n = this;
+ var positive = Long_isPositive(n);
+ if (!positive) {
+ n = Long_neg(n);
+ }
+ var radix = new Long(10, 0);
+ do {
+ var divRem = Long_divRem(n, radix);
+ result.push(String.fromCharCode(48 + divRem[1].lo));
+ n = divRem[0];
+ }while (n.lo !== 0 || n.hi !== 0);
+ result = (result.reverse()).join('');
+ return positive ? result : "-" + result;
+};
+Long.prototype.valueOf = function() {
+ return Long_toNumber(this);
+};
+var Long_ZERO = new Long(0, 0);
+var Long_MAX_NORMAL = 1 << 18;
+function Long_fromInt(val) {
+ return val >= 0 ? new Long(val, 0) : new Long(val, -1);
+}
+function Long_fromNumber(val) {
+ if (val >= 0) {
+ return new Long(val | 0, val / 0x100000000 | 0);
+ } else {
+ return Long_neg(new Long( -val | 0, -val / 0x100000000 | 0));
+ }
+}
+function Long_toNumber(val) {
+ var lo = val.lo;
+ var hi = val.hi;
+ if (lo < 0) {
+ lo += 0x100000000;
+ }
+ return 0x100000000 * hi + lo;
+}
+var $rt_imul = Math.imul || function(a, b) {
+ var ah = a >>> 16 & 0xFFFF;
+ var al = a & 0xFFFF;
+ var bh = b >>> 16 & 0xFFFF;
+ var bl = b & 0xFFFF;
+ return al * bl + (ah * bl + al * bh << 16 >>> 0) | 0;
+};
+var $rt_udiv = function(a, b) {
+ if (a < 0) {
+ a += 0x100000000;
+ }
+ if (b < 0) {
+ b += 0x100000000;
+ }
+ return a / b | 0;
+};
+var $rt_umod = function(a, b) {
+ if (a < 0) {
+ a += 0x100000000;
+ }
+ if (b < 0) {
+ b += 0x100000000;
+ }
+ return a % b | 0;
+};
+function $rt_setCloneMethod(target, f) {
+ target.$clone = f;
+}
+function $rt_cls(cls) {
+ return jl_Class_getClass(cls);
+}
+function $rt_str(str) {
+ if (str === null) {
+ return null;
+ }
+ var characters = $rt_createCharArray(str.length);
+ var charsBuffer = characters.data;
+ for (var i = 0; i < str.length; i = (i + 1) | 0) {
+ charsBuffer[i] = str.charCodeAt(i) & 0xFFFF;
+ }
+ return jl_String__init_(characters);
+}
+function $rt_ustr(str) {
+ if (str === null) {
+ return null;
+ }
+ var data = str.$characters.data;
+ var result = "";
+ for (var i = 0; i < data.length; i = (i + 1) | 0) {
+ result += String.fromCharCode(data[i]);
+ }
+ return result;
+}
+function $rt_objcls() { return jl_Object; }
+function $rt_nullCheck(val) {
+ if (val === null) {
+ $rt_throw(jl_NullPointerException__init_());
+ }
+ return val;
+}
+function $rt_intern(str) {
+ return str;
+}
+function $rt_getThread() {
+ return jl_Thread_currentThread();
+}
+function $rt_setThread(t) {
+ return jl_Thread_setCurrentThread(t);
+}
+function $rt_createException(message) {
+ return jl_RuntimeException__init_(message);
+}
+function $rt_createStackElement(className, methodName, fileName, lineNumber) {
+ return null;
+}
+function $rt_setStack(e, stack) {
+}
+var $java = Object.create(null);
+function jl_Object() {
+ this.$monitor = null;
+ this.$id$ = 0;
+}
+function jl_Object__init_() {
+ var var_0 = new jl_Object();
+ jl_Object__init_0(var_0);
+ return var_0;
+}
+function jl_Object_monitorEnterSync($o) {
+ var var$2;
+ if ($o.$monitor === null) {
+ var$2 = new jl_Object$Monitor;
+ var$2.$owner = jl_Thread_currentThread0;
+ $o.$monitor = var$2;
+ }
+ if ($o.$monitor.$owner === null)
+ $o.$monitor.$owner = jl_Thread_currentThread0;
+ else if ($o.$monitor.$owner !== jl_Thread_currentThread0) {
+ var$2 = new jl_IllegalStateException;
+ var$2.$suppressionEnabled = 1;
+ var$2.$writableStackTrace = 1;
+ var$2.$message = $rt_s(0);
+ $rt_throw(var$2);
+ }
+ $o = $o.$monitor;
+ $o.$count = $o.$count + 1 | 0;
+}
+function jl_Object_monitorExitSync($o) {
+ var var$2, var$3;
+ if (!jl_Object_isEmptyMonitor($o) && $o.$monitor.$owner === jl_Thread_currentThread0) {
+ var$2 = $o.$monitor;
+ var$3 = var$2.$count - 1 | 0;
+ var$2.$count = var$3;
+ if (!var$3)
+ $o.$monitor.$owner = null;
+ jl_Object_isEmptyMonitor($o);
+ return;
+ }
+ $o = new jl_IllegalMonitorStateException;
+ $o.$suppressionEnabled = 1;
+ $o.$writableStackTrace = 1;
+ $rt_throw($o);
+}
+function jl_Object_monitorEnter($o) {
+ jl_Object_monitorEnter0($o, 1);
+}
+function jl_Object_monitorEnter0($o, $count) {
+ var var$3, $ptr, $tmp;
+ $ptr = 0;
+ if ($rt_resuming()) {
+ var $thread = $rt_nativeThread();
+ $ptr = $thread.pop();var$3 = $thread.pop();$count = $thread.pop();$o = $thread.pop();
+ }
+ main: while (true) { switch ($ptr) {
+ case 0:
+ if ($o.$monitor === null) {
+ var$3 = new jl_Object$Monitor;
+ var$3.$owner = jl_Thread_currentThread0;
+ $o.$monitor = var$3;
+ }
+ if ($o.$monitor.$owner === null)
+ $o.$monitor.$owner = jl_Thread_currentThread0;
+ if ($o.$monitor.$owner === jl_Thread_currentThread0) {
+ $o = $o.$monitor;
+ $o.$count = $o.$count + $count | 0;
+ return;
+ }
+ $ptr = 1;
+ case 1:
+ jl_Object_monitorEnterWait($o, $count);
+ if ($rt_suspending()) {
+ break main;
+ }
+ return;
+ default: $rt_invalidPointer();
+ }}
+ $rt_nativeThread().push($o, $count, var$3, $ptr);
+}
+function jl_Object_monitorEnterWait(var$1, var$2) {
+ var thread = $rt_nativeThread();
+ var javaThread = $rt_getThread();
+ if (thread.isResuming()) {
+ thread.status = 0;
+ var result = thread.attribute;
+ if (result instanceof Error) {
+ throw result;
+ }
+ return result;
+ }
+ var callback = function() {};
+ callback.$complete = function(val) {
+ thread.attribute = val;
+ $rt_setThread(javaThread);
+ thread.resume();
+ };
+ callback.$error = function(e) {
+ thread.attribute = $rt_exception(e);
+ $rt_setThread(javaThread);
+ thread.resume();
+ };
+ callback = otpp_AsyncCallbackWrapper_create(callback);
+ return thread.suspend(function() {
+ try {
+ jl_Object_monitorEnterWait0(var$1, var$2, callback);
+ } catch($e) {
+ callback.$error($rt_exception($e));
+ }
+ });
+}
+function jl_Object_monitorEnterWait0($o, $count, $callback) {
+ var $thread_0, $monitor, var$6;
+ $thread_0 = jl_Thread_currentThread0;
+ if ($o.$monitor === null) {
+ $monitor = new jl_Object$Monitor;
+ $monitor.$owner = jl_Thread_currentThread0;
+ $o.$monitor = $monitor;
+ if (jl_Thread_currentThread0 !== $thread_0)
+ jl_Thread_currentThread0 = $thread_0;
+ jl_Thread_currentThread0.$timeSliceStart = jl_System_currentTimeMillis();
+ $o = $o.$monitor;
+ $o.$count = $o.$count + $count | 0;
+ $o = null;
+ $callback.$realAsyncCallback.$complete($o);
+ return;
+ }
+ if ($o.$monitor.$owner === null) {
+ $o.$monitor.$owner = $thread_0;
+ if (jl_Thread_currentThread0 !== $thread_0)
+ jl_Thread_currentThread0 = $thread_0;
+ jl_Thread_currentThread0.$timeSliceStart = jl_System_currentTimeMillis();
+ $o = $o.$monitor;
+ $o.$count = $o.$count + $count | 0;
+ $o = null;
+ $callback.$realAsyncCallback.$complete($o);
+ return;
+ }
+ $monitor = $o.$monitor;
+ if ($monitor.$enteringThreads === null)
+ $monitor.$enteringThreads = otp_Platform_createQueueJs$js_body$_30();
+ $monitor = $monitor.$enteringThreads;
+ var$6 = new jl_Object$monitorEnterWait$lambda$_6_0;
+ var$6.$_0 = $thread_0;
+ var$6.$_1 = $o;
+ var$6.$_2 = $count;
+ var$6.$_3 = $callback;
+ $callback = var$6;
+ $monitor.push($callback);
+}
+function jl_Object_monitorExit($o) {
+ jl_Object_monitorExit0($o, 1);
+}
+function jl_Object_monitorExit0($o, $count) {
+ var $monitor;
+ if (!jl_Object_isEmptyMonitor($o) && $o.$monitor.$owner === jl_Thread_currentThread0) {
+ $monitor = $o.$monitor;
+ $monitor.$count = $monitor.$count - $count | 0;
+ if ($monitor.$count > 0)
+ return;
+ $monitor.$owner = null;
+ if ($monitor.$enteringThreads !== null && !($monitor.$enteringThreads.length ? 0 : 1)) {
+ $monitor = new jl_Object$monitorExit$lambda$_8_0;
+ $monitor.$_00 = $o;
+ otp_Platform_schedule($monitor, 0);
+ } else
+ jl_Object_isEmptyMonitor($o);
+ return;
+ }
+ $o = new jl_IllegalMonitorStateException;
+ $o.$suppressionEnabled = 1;
+ $o.$writableStackTrace = 1;
+ $rt_throw($o);
+}
+function jl_Object_waitForOtherThreads($o) {
+ var $monitor, $enteringThreads, $r;
+ if (!jl_Object_isEmptyMonitor($o) && $o.$monitor.$owner === null) {
+ $monitor = $o.$monitor;
+ if ($monitor.$enteringThreads !== null && !($monitor.$enteringThreads.length ? 0 : 1)) {
+ $enteringThreads = $monitor.$enteringThreads;
+ $r = $enteringThreads.shift();
+ if ($enteringThreads === null)
+ $monitor.$enteringThreads = null;
+ jl_Object$monitorEnterWait$lambda$_6_0_run($r);
+ }
+ return;
+ }
+}
+function jl_Object_isEmptyMonitor($this) {
+ var $monitor;
+ $monitor = $this.$monitor;
+ if ($monitor === null)
+ return 1;
+ a: {
+ if ($monitor.$owner === null && !($monitor.$enteringThreads !== null && !($monitor.$enteringThreads.length ? 0 : 1))) {
+ if ($monitor.$notifyListeners === null)
+ break a;
+ if ($monitor.$notifyListeners.length ? 0 : 1)
+ break a;
+ }
+ return 0;
+ }
+ $this.$monitor = null;
+ return 1;
+}
+function jl_Object__init_0($this) {
+ return;
+}
+function jl_Object_getClass($this) {
+ return jl_Class_getClass($this.constructor);
+}
+function jl_Object_hashCode($this) {
+ return jl_Object_identity($this);
+}
+function jl_Object_equals($this, $other) {
+ return $this !== $other ? 0 : 1;
+}
+function jl_Object_toString($this) {
+ var var$1, var$2;
+ var$1 = new jl_StringBuilder;
+ var$1.$buffer = $rt_createCharArray(16);
+ var$2 = jl_Class_getName(jl_Class_getClass($this.constructor));
+ jl_AbstractStringBuilder_insert(var$1, var$1.$length, var$2);
+ jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(1));
+ var$2 = otci_IntegerUtil_toUnsignedLogRadixString(jl_Object_identity($this), 4);
+ jl_AbstractStringBuilder_insert(var$1, var$1.$length, var$2);
+ return jl_String__init_0(var$1.$buffer, 0, var$1.$length);
+}
+function jl_Object_identity($this) {
+ var $platformThis, var$2;
+ $platformThis = $this;
+ if (!$platformThis.$id$) {
+ var$2 = $rt_nextId();
+ $platformThis.$id$ = var$2;
+ }
+ return $this.$id$;
+}
+function jl_Object_clone($this) {
+ var $result, var$2, var$3;
+ if (!$rt_isInstance($this, jl_Cloneable) && $this.constructor.$meta.item === null) {
+ $result = new jl_CloneNotSupportedException;
+ $result.$suppressionEnabled = 1;
+ $result.$writableStackTrace = 1;
+ $rt_throw($result);
+ }
+ $result = otp_Platform_clone($this);
+ var$2 = $result;
+ var$3 = $rt_nextId();
+ var$2.$id$ = var$3;
+ return $result;
+}
+function nle_Client() {
+ jl_Object.call(this);
+}
+var nle_Client_rootElement = null;
+var nle_Client_instance = null;
+var nle_Client_isCrashed = 0;
+function nle_Client__init_() {
+ var var_0 = new nle_Client();
+ nle_Client__init_0(var_0);
+ return var_0;
+}
+function nle_Client__init_0($this) {
+ return;
+}
+function nle_Client_main($args) {
+ var var$2, var$3, $ptr, $tmp;
+ $ptr = 0;
+ if ($rt_resuming()) {
+ var $thread = $rt_nativeThread();
+ $ptr = $thread.pop();var$3 = $thread.pop();var$2 = $thread.pop();$args = $thread.pop();
+ }
+ main: while (true) { switch ($ptr) {
+ case 0:
+ nle_Client_rootElement = null;
+ nle_Client_instance = null;
+ nle_Client_isCrashed = 0;
+ jl_String_CASE_INSENSITIVE_ORDER = new jl_String$_clinit_$lambda$_81_0;
+ jl_Integer_TYPE = $rt_cls($rt_intcls());
+ nle_LocalStorageManager__clinit_();
+ nms_ServerList__clinit_();
+ nle_EarlyLoadScreen__clinit_();
+ jl_Thread__clinit_();
+ nle_AssetRepository__clinit_();
+ nms_NBTBase__clinit_();
+ nmc_Minecraft_debugChunkUpdates = 0;
+ nle_Base64__clinit_();
+ nle_BaseNCodec__clinit_();
+ jl_Character__clinit_();
+ nms_GLAllocation__clinit_();
+ jl_Float__clinit_();
+ nms_Packet3Chat__clinit_();
+ jl_Double__clinit_();
+ jl_Long__clinit_();
+ jl_Byte__clinit_();
+ jl_AbstractStringBuilder$Constants__clinit_();
+ otcit_FloatAnalyzer__clinit_();
+ otcit_DoubleAnalyzer__clinit_();
+ nms_EntityLiving__clinit_();
+ nms_DataWatcher__clinit_();
+ nms_Entity__clinit_();
+ nms_EntityList__clinit_();
+ ju_Hashtable__clinit_();
+ nms_StringTranslate__clinit_();
+ nms_StatCollector__clinit_();
+ nms_MapColor__clinit_();
+ nms_CreativeTabs__clinit_();
+ nms_BlockWood__clinit_();
+ nms_BlockSapling__clinit_();
+ nms_BlockSand__clinit_();
+ nms_BlockLog__clinit_();
+ nms_BlockLeaves__clinit_();
+ nms_BlockSandStone__clinit_();
+ nms_BlockBed__clinit_();
+ nms_BlockTallGrass__clinit_();
+ nms_BlockStep__clinit_();
+ nms_BlockStairs__clinit_();
+ nms_BlockFurnace__clinit_();
+ nms_BlockDoor__clinit_();
+ nms_EnumMobType__clinit_();
+ nms_BlockRedstoneTorch__clinit_();
+ nms_BlockRedstoneRepeater__clinit_();
+ nms_BlockSilverfish__clinit_();
+ nms_BlockStoneBrick__clinit_();
+ nms_BlockMushroomCap__clinit_();
+ nms_BlockNetherStalk__clinit_();
+ nms_BlockEndPortal__clinit_();
+ nms_BlockWoodSlab__clinit_();
+ nms_BlockCocoa__clinit_();
+ nms_BlockWall__clinit_();
+ nms_BlockAnvil__clinit_();
+ nms_BlockQuartz__clinit_();
+ nms_EnumToolMaterial__clinit_();
+ jn_ByteOrder__clinit_();
+ jnc_CodingErrorAction__clinit_();
+ jnc_CoderResult__clinit_();
+ cjj_Deflate__clinit_();
+ cjj_CRC32__clinit_();
+ cjj_Tree__clinit_();
+ nms_ItemBow__clinit_();
+ nms_Potion__clinit_();
+ nms_ItemArmor__clinit_();
+ nms_EnumArmorMaterial__clinit_();
+ nms_ItemDye__clinit_();
+ nms_ItemPotion__clinit_();
+ nms_ItemSkull__clinit_();
+ nms_ItemRecord__clinit_();
+ nms_MathHelper__clinit_();
+ ju_Locale__clinit_();
+ jl_Boolean__clinit_();
+ jt_DecimalFormat__clinit_();
+ jm_RoundingMode__clinit_();
+ jur_AbstractSet__clinit_();
+ jl_Short__clinit_();
+ nle_TextureLocation__clinit_();
+ nle_GuiScreenEditProfile__clinit_();
+ cbpd_Decoder__clinit_();
+ jnc_Charset$Charsets__clinit_();
+ cbpc_IHDR__clinit_();
+ nms_EnumOS__clinit_();
+ nle_BaseNCodec$CodecPolicy__clinit_();
+ cjj_Inflate__clinit_();
+ nms_AxisAlignedBB__clinit_();
+ nms_GameSettings__clinit_();
+ nms_RenderBlocks__clinit_();
+ nms_EntityRenderer__clinit_();
+ cbpc_ChunkType__clinit_();
+ nms_GuiAchievement__clinit_();
+ nms_GuiMainMenu__clinit_();
+ cbpu_CRC__clinit_();
+ nms_TexturePackImplementation__clinit_();
+ cjj_InfBlocks__clinit_();
+ cjj_InfCodes__clinit_();
+ cjj_InfTree__clinit_();
+ nms_ChatAllowedCharacters__clinit_();
+ nms_ColorizerGrass__clinit_();
+ nms_ColorizerFoliage__clinit_();
+ nms_RenderManager__clinit_();
+ nms_ItemRenderer__clinit_();
+ jur_AbstractCharClass$PredefinedCharacterClasses__clinit_();
+ jur_AbstractCharClass__clinit_();
+ jur_FSet__clinit_();
+ nms_RenderGlobal__clinit_();
+ nms_EffectRenderer__clinit_();
+ nleg_EffectPipeline__clinit_();
+ nms_GuiIngame__clinit_();
+ nms_LoadingScreenRenderer__clinit_();
+ nle_DefaultSkinRenderer__clinit_();
+ nle_GuiScreenVoiceChannel__clinit_();
+ nms_KeyBinding__clinit_();
+ nleg_FixedFunctionShader__clinit_();
+ nms_EnumOptions__clinit_();
+ nms_GuiInventory__clinit_();
+ nms_InventoryEffectRenderer__clinit_();
+ nms_GuiContainer__clinit_();
+ ju_Collections__clinit_();
+ nms_RenderSpider__clinit_();
+ nms_RenderLiving__clinit_();
+ nms_Render__clinit_();
+ nms_RenderPig__clinit_();
+ nms_EntitySheep__clinit_();
+ nms_RenderSheep__clinit_();
+ nms_RenderCow__clinit_();
+ nms_RenderMooshroom__clinit_();
+ nms_RenderWolf__clinit_();
+ nms_RenderChicken__clinit_();
+ nms_RenderOcelot__clinit_();
+ nms_RenderSilverfish__clinit_();
+ nms_RenderCreeper__clinit_();
+ nms_RenderEnderman__clinit_();
+ nms_RenderSnowMan__clinit_();
+ nms_RenderSkeleton__clinit_();
+ nms_RenderBiped__clinit_();
+ nms_RenderWitch__clinit_();
+ nms_RenderBlaze__clinit_();
+ nms_RenderZombie__clinit_();
+ nms_EntitySlime__clinit_();
+ nms_RenderSlime__clinit_();
+ nms_RenderMagmaCube__clinit_();
+ nms_RenderPlayer__clinit_();
+ nms_RenderGhast__clinit_();
+ nms_RenderSquid__clinit_();
+ nms_RenderVillager__clinit_();
+ nms_RenderIronGolem__clinit_();
+ nms_RenderBat__clinit_();
+ nms_RenderDragon__clinit_();
+ nms_RenderEnderCrystal__clinit_();
+ nms_EntityWither__clinit_();
+ nms_RenderWither__clinit_();
+ nms_RenderPainting__clinit_();
+ nms_RenderItemFrame__clinit_();
+ nms_RenderArrow__clinit_();
+ nms_RenderSnowball__clinit_();
+ nms_RenderFireball__clinit_();
+ nms_RenderWitherSkull__clinit_();
+ nms_RenderItem__clinit_();
+ nms_RenderXPOrb__clinit_();
+ nms_RenderTNTPrimed__clinit_();
+ nms_RenderFallingSand__clinit_();
+ nms_EntityMinecart__clinit_();
+ nms_RenderMinecart__clinit_();
+ nms_RenderBoat__clinit_();
+ nms_RenderFish__clinit_();
+ nms_MapItemRenderer__clinit_();
+ nms_EnumChatFormatting__clinit_();
+ nms_GuiParticle__clinit_();
+ nms_EnumMovingObjectType__clinit_();
+ nms_ModelSilverfish__clinit_();
+ nms_TileEntity__clinit_();
+ nms_GuiButton__clinit_();
+ nms_Vec3__clinit_();
+ jm_BigInteger__clinit_();
+ nms_BiomeGenBase__clinit_();
+ nms_EnumEntitySize__clinit_();
+ nms_Particle__clinit_();
+ nleg_EffectPipelineFXAA__clinit_();
+ nms_ActiveRenderInfo__clinit_();
+ nms_ClippingHelperImpl__clinit_();
+ nms_StringUtils__clinit_();
+ nms_Direction__clinit_();
+ ju_Calendar__clinit_();
+ nms_GuiButtonLanguage__clinit_();
+ nms_Facing__clinit_();
+ nms_Score__clinit_();
+ ju_GregorianCalendar__clinit_();
+ nms_ChatClickData__clinit_();
+ nms_TextureClock__clinit_();
+ nms_EnchantmentProtection__clinit_();
+ nms_EnumEnchantmentType__clinit_();
+ nms_EnchantmentDamage__clinit_();
+ otcit_CachedDateTimeZone__clinit_();
+ otcit_DateTimeZoneProvider__clinit_();
+ ju_TimeZone__clinit_();
+ nms_Packet51MapChunk__clinit_();
+ nms_Packet52MultiBlockChange__clinit_();
+ nms_Packet56MapChunks__clinit_();
+ nms_Packet70GameEvent__clinit_();
+ nms_EnumRarity__clinit_();
+ jm_Conversion__clinit_();
+ nms_TileEntitySignRenderer__clinit_();
+ nms_TileEntityRendererPiston__clinit_();
+ nms_TileEntityChestRenderer__clinit_();
+ nms_TileEntityEnderChestRenderer__clinit_();
+ nms_RenderEnchantmentTable__clinit_();
+ nms_RenderEndPortal__clinit_();
+ nms_TileEntityBeaconRenderer__clinit_();
+ nms_TileEntitySkullRenderer__clinit_();
+ nms_GuiMultiplayer__clinit_();
+ nms_EnumAction__clinit_();
+ nms_TileEntityEnchantmentTable__clinit_();
+ nms_ChestItemRenderHelper__clinit_();
+ nms_GuiSlot__clinit_();
+ nms_GuiSlotServer__clinit_();
+ nms_TileEntityFurnace__clinit_();
+ nms_TileEntityBrewingStand__clinit_();
+ nms_DamageSource__clinit_();
+ nms_EnchantmentHelper__clinit_();
+ nms_EnumSkyBlock__clinit_();
+ nms_EnumArt__clinit_();
+ nms_PacketCount__clinit_();
+ nms_IEntitySelector__clinit_();
+ nms_WorldType__clinit_();
+ nms_EnumGameType__clinit_();
+ nms_GuiWinGame__clinit_();
+ nms_GuiMerchant__clinit_();
+ nms_ScoreObjectiveCriteria__clinit_();
+ nms_GuiChest__clinit_();
+ nms_GuiCrafting__clinit_();
+ nms_GuiBeacon__clinit_();
+ nms_GuiRepair__clinit_();
+ nms_GuiDispenser__clinit_();
+ nms_GuiHopper__clinit_();
+ nms_GuiBrewingStand__clinit_();
+ nms_GuiEnchantment__clinit_();
+ nms_GuiFurnace__clinit_();
+ nms_EnumStatus__clinit_();
+ nms_FurnaceRecipes__clinit_();
+ nms_EnumCreatureAttribute__clinit_();
+ nms_EntityFootStepFX__clinit_();
+ nms_EntityLargeExplodeFX__clinit_();
+ nms_EnchantmentNameParts__clinit_();
+ nms_GuiButtonMerchant__clinit_();
+ nms_GuiBeaconButton__clinit_();
+ nms_GuiScreenBook__clinit_();
+ nms_GuiButtonNextPage__clinit_();
+ nle_Client_registerErrorHandler$js_body$_5();
+ $args = otji_JS_unwrapStringArray(window.minecraftOpts).data;
+ var$2 = window.document;
+ var$3 = $args[0];
+ var$3 = var$2.getElementById($rt_ustr(var$3));
+ nle_Client_rootElement = var$3;
+ var$2 = $args[1];
+ $ptr = 1;
+ case 1:
+ nlea_EaglerAdapterImpl2_initializeContext(var$3, var$2);
+ if ($rt_suspending()) {
+ break main;
+ }
+ nle_LocalStorageManager_loadStorage();
+ if ($args.length > 2)
+ nms_ServerList_loadDefaultServers($args[2]);
+ $ptr = 2;
+ case 2:
+ nle_Client_run0();
+ if ($rt_suspending()) {
+ break main;
+ }
+ return;
+ default: $rt_invalidPointer();
+ }}
+ $rt_nativeThread().push($args, var$2, var$3, $ptr);
+}
+function nle_Client_run0() {
+ var var$1, var$2, var$3, var$4, $ptr, $tmp;
+ $ptr = 0;
+ if ($rt_resuming()) {
+ var $thread = $rt_nativeThread();
+ $ptr = $thread.pop();var$4 = $thread.pop();var$3 = $thread.pop();var$2 = $thread.pop();var$1 = $thread.pop();
+ }
+ main: while (true) { switch ($ptr) {
+ case 0:
+ if (jl_System_outCache === null) {
+ var$1 = new ji_PrintStream;
+ var$1.$out = new jl_ConsoleOutputStreamStdout;
+ var$2 = new jl_StringBuilder;
+ var$2.$buffer = $rt_createCharArray(16);
+ var$1.$sb = var$2;
+ var$1.$buffer0 = $rt_createCharArray(32);
+ var$1.$autoFlush = 0;
+ var$2 = new jnci_UTF8Charset;
+ jnc_Charset__init_(var$2, $rt_s(2), $rt_createArray(jl_String, 0));
+ var$1.$charset = var$2;
+ jl_System_outCache = var$1;
+ }
+ var$3 = jl_System_outCache;
+ var$1 = var$3.$sb;
+ jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(3));
+ var$4 = var$1.$length;
+ jl_AbstractStringBuilder_insertSpace(var$1, var$4, var$4 + 1 | 0);
+ var$1.$buffer.data[var$4] = 10;
+ ji_PrintStream_printSB(var$3);
+ nle_Client_instance = nmc_Minecraft__init_();
+ var$2 = nle_Client_instance;
+ $ptr = 1;
+ case 1:
+ nmc_Minecraft_run(var$2);
+ if ($rt_suspending()) {
+ break main;
+ }
+ return;
+ default: $rt_invalidPointer();
+ }}
+ $rt_nativeThread().push(var$1, var$2, var$3, var$4, $ptr);
+}
+function nle_Client_handleNativeError() {
+ var $e, $str, var$3, var$4;
+ $e = window.minecraftError;
+ $str = new jl_StringBuilder;
+ $str.$buffer = $rt_createCharArray(16);
+ jl_AbstractStringBuilder_insert($str, $str.$length, $rt_s(4));
+ jl_AbstractStringBuilder_insert($str, $str.$length, $rt_s(5));
+ jl_AbstractStringBuilder_insert($str, $str.$length, $rt_s(6));
+ var$3 = $rt_str(window.minecraftErrorL);
+ jl_AbstractStringBuilder_insert($str, $str.$length, var$3);
+ var$4 = $str.$length;
+ jl_AbstractStringBuilder_insertSpace($str, var$4, var$4 + 1 | 0);
+ $str.$buffer.data[var$4] = 10;
+ jl_AbstractStringBuilder_insert($str, $str.$length, $rt_s(7));
+ var$3 = $rt_str($e.name);
+ jl_AbstractStringBuilder_insert($str, $str.$length, var$3);
+ var$4 = $str.$length;
+ jl_AbstractStringBuilder_insertSpace($str, var$4, var$4 + 1 | 0);
+ $str.$buffer.data[var$4] = 10;
+ jl_AbstractStringBuilder_insert($str, $str.$length, $rt_s(8));
+ var$3 = $rt_str($e.message);
+ jl_AbstractStringBuilder_insert($str, $str.$length, var$3);
+ var$4 = $str.$length;
+ jl_AbstractStringBuilder_insertSpace($str, var$4, var$4 + 1 | 0);
+ $str.$buffer.data[var$4] = 10;
+ jl_AbstractStringBuilder_insert($str, $str.$length, $rt_s(9));
+ var$3 = $rt_str($e.stack);
+ jl_AbstractStringBuilder_insert($str, $str.$length, var$3);
+ var$4 = $str.$length;
+ jl_AbstractStringBuilder_insertSpace($str, var$4, var$4 + 1 | 0);
+ $str.$buffer.data[var$4] = 10;
+ nle_Client_showCrashScreen(jl_String__init_0($str.$buffer, 0, $str.$length));
+}
+function nle_Client_showCrashScreen($t) {
+ var $str, var$3, $s, var$5, $doc, $img, $div;
+ if (!nle_Client_isCrashed) {
+ nle_Client_isCrashed = 1;
+ nlea_EaglerAdapterImpl2_removeEventHandlers();
+ $str = new jl_StringBuilder;
+ $str.$buffer = $rt_createCharArray(16);
+ jl_AbstractStringBuilder_insert($str, $str.$length, $rt_s(10));
+ jl_AbstractStringBuilder_insert($str, $str.$length, $t);
+ var$3 = $str.$length;
+ jl_AbstractStringBuilder_insertSpace($str, var$3, var$3 + 1 | 0);
+ $str.$buffer.data[var$3] = 10;
+ var$3 = $str.$length;
+ jl_AbstractStringBuilder_insertSpace($str, var$3, var$3 + 1 | 0);
+ $str.$buffer.data[var$3] = 10;
+ jl_AbstractStringBuilder_insert($str, $str.$length, $rt_s(11));
+ jl_AbstractStringBuilder_insert($str, $str.$length, $rt_s(12));
+ jl_AbstractStringBuilder_insert($str, $str.$length, $rt_s(13));
+ jl_AbstractStringBuilder_insert($str, $str.$length, $rt_s(14));
+ jl_AbstractStringBuilder_insert($str, $str.$length, $rt_s(15));
+ jl_AbstractStringBuilder_insert($str, $str.$length, $rt_s(16));
+ nle_EaglerProfile_$callClinit();
+ $t = nle_EaglerProfile_username;
+ jl_AbstractStringBuilder_insert($str, $str.$length, $t);
+ jl_AbstractStringBuilder_insert($str, $str.$length, $rt_s(13));
+ jl_AbstractStringBuilder_insert($str, $str.$length, $rt_s(17));
+ $t = nle_EaglerProfile_myChannel;
+ jl_AbstractStringBuilder_insert($str, $str.$length, $t);
+ jl_AbstractStringBuilder_insert($str, $str.$length, $rt_s(13));
+ var$3 = $str.$length;
+ jl_AbstractStringBuilder_insertSpace($str, var$3, var$3 + 1 | 0);
+ $str.$buffer.data[var$3] = 10;
+ jl_AbstractStringBuilder_insert($str, $str.$length, $rt_s(18));
+ jl_AbstractStringBuilder_insert($str, $str.$length, $rt_s(19));
+ $t = $rt_str(nle_Client_getArray$js_body$_13("window.minecraftOpts"));
+ jl_AbstractStringBuilder_insert($str, $str.$length, $t);
+ var$3 = $str.$length;
+ jl_AbstractStringBuilder_insertSpace($str, var$3, var$3 + 1 | 0);
+ $str.$buffer.data[var$3] = 10;
+ var$3 = $str.$length;
+ jl_AbstractStringBuilder_insertSpace($str, var$3, var$3 + 1 | 0);
+ $str.$buffer.data[var$3] = 10;
+ jl_AbstractStringBuilder_insert($str, $str.$length, $rt_s(20));
+ jl_AbstractStringBuilder_insert($str, $str.$length, $rt_s(19));
+ jl_StringBuilder_append(jl_StringBuilder_append0($str, $rt_str(nle_Client_getString$js_body$_10("window.navigator.userAgent"))), 10);
+ nle_Client_addDebug($str, $rt_s(21));
+ nle_Client_addDebug($str, $rt_s(22));
+ nle_Client_addDebug($str, $rt_s(23));
+ nle_Client_addDebug($str, $rt_s(24));
+ nle_Client_addDebug($str, $rt_s(25));
+ nle_Client_addDebug($str, $rt_s(26));
+ jl_StringBuilder_append($str, 10);
+ jl_StringBuilder_append(jl_StringBuilder_append1(jl_StringBuilder_append0($str, $rt_s(27)), nle_Client_rootElement.clientWidth), 10);
+ jl_StringBuilder_append(jl_StringBuilder_append1(jl_StringBuilder_append0($str, $rt_s(28)), nle_Client_rootElement.clientHeight), 10);
+ nle_Client_addDebug($str, $rt_s(29));
+ nle_Client_addDebug($str, $rt_s(30));
+ nle_Client_addDebug($str, $rt_s(31));
+ nle_Client_addDebug($str, $rt_s(32));
+ nle_Client_addDebug($str, $rt_s(33));
+ nle_Client_addDebug($str, $rt_s(34));
+ nle_Client_addDebug($str, $rt_s(35));
+ nle_Client_addDebug($str, $rt_s(36));
+ nle_Client_addDebug($str, $rt_s(37));
+ jl_StringBuilder_append($str, 10);
+ nle_Client_addDebug($str, $rt_s(38));
+ jl_StringBuilder_append($str, 10);
+ nle_Client_addDebug($str, $rt_s(39));
+ nle_Client_addArray($str, $rt_s(40));
+ jl_StringBuilder_append0($str, $rt_s(41));
+ jl_StringBuilder_append0($str, nle_LocalStorageManager_dumpConfiguration());
+ jl_StringBuilder_append0($str, $rt_s(42));
+ nle_Client_addDebug($str, $rt_s(43));
+ $s = $rt_str(nle_Client_rootElement.getAttribute("style"));
+ var$5 = nle_Client_rootElement;
+ $t = jl_StringBuilder__init_();
+ if ($s === null)
+ $s = $rt_s(44);
+ $t = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0($t, $s), $rt_s(45)));
+ var$5.setAttribute("style", $rt_ustr($t));
+ $doc = window.document;
+ $img = $doc.createElement("img");
+ $div = $doc.createElement("div");
+ $img.setAttribute("style", "z-index:100;position:absolute;top:10px;left:calc(50% - 151px);");
+ $img.setAttribute("src", "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAATEAAABxCAAAAACYIctsAAAACXBIWXMAAAsTAAALEwEAmpwYAAASEUlEQVR42u1d23fbRn7+BqBIidDNkka2Y8dAncTdgGk2267dbtvT9ekj3/1P9Ll/Rp73n/A7n5PTdk8btSfdzQH2kmQN2HFsa6ToQg1JicT8+jC4EQQoWV3tyhYHh8e4cQB8+H63b4YyI8zaazVjBsEMsRliM8RmiM0Qm7UZYjPELqBJyDOeyejKQ9UDmj0AaMKS1oxjFTAl/waWgEDY9IRohhCWLwUEZG5BgX1Xj2MSPXC9KrjPIQXg+hqW+wLggiNmWinjrhrHpOz1wIMYsC1X8kBKV7jC6Tm9+587Pf45Dy1f88sqY9mV45jsQcIBAAGvJZ3AhwsewgNaAFwfXgs2rAqGXT2OCYADAQDJvYdwAsDdcoTtAW3Phuu7aHt2aPkVDLviHAMP4AMunKDnAS3YoQ1LhvrfmR+L/T4HHEBCcnDh+C5+Didw0EYbbuiGlm/BDqew7CpzjAOB04HLBRc8BGxYvg1LItRcs2RZfnYF/RicmGMCwum04QhHOKENN7R8N7R8K4y55lsZy2YcQ8oyLrhwIDWrAN+FDF2J0AV8t4xldMXaEW0/IaIjOqJt2qYn8eJVLEd0RERHuQ6uHsfQSzmmWab9lUToSiTeK1tmfgzglvZjEBA8gLQCK7B8K3R9K7R8S8afeHkL/dj/Jk+g/uasZaV0dK4luOAApHAkQhv6o5kG7ctKWPbmc6wn43Z0tvMtnY9ZEoILHiCAcAIIN0Roh0iYFrr6409Ey6voxyAdrUxojkkIAD07BAA7zC0oY9ml4NjhthDih3N+eUfsCLGzI3bEWZUx7gQApLXFBRcILOGAb9mh7cGzOzFYHTu0Qyt0dU52qfzY8Q/7P0QA0Pjb83Xwb8kTjP75rAkZdIREjwseOAEXAHoAvJbXgh0CdgivBcAGcNk4Ntxn1967d+/evXt3z9nDBx/c0+3Ds3HMAngAWNLyueDCCRzBtzhcD17La8MObc/u2F7bg2d3EMae7Ar7McgeIOFIzSud9QNO0PNamlchvFa6tLWKcYkQO/STtcZPztfDf6XZxd+fBS9LcAjpBI60thxoswScwHncevzIa3faof3pI6/daXntDtDy2qHru3nD/HMj1v1NitiPz9fDVorY352ZY5AAB/z7ABBg636ikHktwAOAltfy4LtAyy6w7KpZpbQEwIWE49t+zLGOCyfgndgMO63Hj7x2aHc0ZO1OO7xUHDveTdZqm+fr4UX6BO+8BsccyFBDJn0XABc9rwXEHGvBDjXXAKA9xrE/d6wcfJO0J+fsIe3gt2dMYDkHnAAxYPDbPuAIjjZstD14LR8eOjbagA8faHcuVawcHiZr5ur5etgFI/0Y62cqxZt5PybinFYAjrR8O/QAwHcBJB7tsnFsbj1p5wQM6+tr6+tr6+vrZwJM8h44OOCE8O8LDu7D54LD8S24oY2WD9/14cNLWNYOrdfhGAEAm34GMWKnnkUA2OQ5B7/WDGHUeIDTboXKevgPBd1B9PD1OBbaPS7g9QIHLuJxcN8DfDfmmCvRAYBHY1l/bUrno5PBMFIRY0at0aibZQ9x0h8MRioiMMNsLC7MV3Qku/1hpAyjVl9aHD/HXE7W6tMjRLd7PFLMMOeXFhtjR5bS7OJsHBPggks4viv5lvvYCRyvtfVQONocvZb3L7+II6Tv+u1PXbTPmo/1jo4powdYc6X+9uQXEuCwBDygFziQuK912Uwn05yTHaA1no9Vcexkd5iCCgJAUjbX0rPpcETaTkDEiBjpDQDm9bzhRC/PHVpuJ6+uTNVYXUzWnicXoHfz7H+eW3/HzOHV62mOSUvyrZb38BcOfi54wjHflZZ0kyERaaH1uHWWfIz2D8f8hdLAsY3km71nCoqIoIAIRICKEjYufJSZTffX0bnJ8E/6n+/+UHr07i02Rbugr/az9fdvFTkmkUn9CHjCqDJGdoAW3NM8P20fF3cpMAaFayvx5nESFigJEFlH83OZ+zk5v/ks6Z6rpFUrDvPdwhcmvhWtFvDiggdwNIsED5zAyTjku1rQTj4+Hj96/K84jWMvS56TGACoteV0U+8BMQKL1/VuYll4i7eJ5Q5mG7ntQq8TV856ByuelnRY/Fr+VnJyj+BBjmITbm6CY2i5p/gxUUYMfWljrz4PAP3nBCIibZpEpEAREMWB4r2bAEBf5t60OcdoGL2uVf7u1ZQT7t2osMqjLzMeLP6EjScXVixXlLc4tYih892w/ekj7zQ/dnCQHZ1fqIFGvZyRGrcB4GSPCEQYmfWaaTBFx11ipJ0/EebeA4D+k4wd11dMRtHhS3Z2xD4EBrnSKVq2TBrs5ROyvzQA/DbNLlrJ/q9HWWLTMoplJQ+Aao4VGedjzIuVITZ8ka421mKPNNw9YYmjWlx7k3OLmGOlE518V8fKhGW+Ky3f7jw6LR97lRKquZHbe2JA2xR7F8DoyFiezEh2ktQc8xvA8GVCsOWc7+3vJHvvAMAgHc8wbk10+H1qxY2csLGf+frrdeBZGpzsOLjmHun2pB/r8cAJem4Jn0LAaxUYJcMixyb82MkguUg9Bxg2nwOmIgDUXQIwX5Lezx1IggJIYWEDePZ97NXMf8idNJ8a2uoygON0szGBWPRNepd5sXDld+k7lT8CgtSPacTCMHP+n7BJjungOMmxxy3voYftzYxRvuu74ekcE/30/Yx5gN4eACgC6jcqy6oojVMNYJC+/ObYW0vSyVoNgMqizMQ7qDp2ktZDRj13mfik4+yJIqtMHpNw/EmK+R5aHrgYD4wlfqzIMdVLXsvSuMtc2AMAQxGGlU6iZiRhHQDmkoxjvCK1xuo/Vh+r+cdbcoyNU6Ue5beTy+gOIsxN1WVEUwOmc7EcYLbX7rS8lrepczL98V3fDt38eZMcO0pKErpVAHM3fpkU3awsML9kpEAEwgOoXxpxRfpgbiyy/DJ+ROMfARz8KrXK4nil/J9k7aNCsMlyjns3CtnFFxnlbn5QXlVyvzDWER/QcxNDNx8KsjBQybE0g6oVjzTje2FmvxKxTV1R6SzjFiNGBFa4hnE7n+HVU+81oY0cpIeK0pmT9hgBtyjHsRc5kax0AFT0eKBTLj0RKqM+rCRWJlEzWTAtu6A08izwor68k9B//kza3WVVLoLEKM/ZCkwapWXFBI+YMqs9TlJeaTEDhNtAyHRpTptjt7dzCEZgIMMB0H8RK4ow7EJnf0i0xrl3i9d5QgwERqD38ATxBr33sseS6msy8sZUEo7vSv++4MnU4cyfaSOUVpaXaYaNw1vgWG+n0irVCYtdaT1PPzVQURRFEYFAElFcPP01sEUEUgCWP8qz+N+TK84/mOrHBl+kt7JUfHmp/hM9ZJkf+8RLH6b203o1x7bggJcdC9P5Pemc2MzLWeWIHe5PI6ShCTiXpJN03OsprfVAwaDrtEhZfBwZVOai0qyUaoCGNNvMQ3smTdXM+oOh8vsrWuBAT7VLGAbEbLI7re1Nrx1ywcWYH5NW0Gs6FRzblafcX45jo6Nugg8pgBjjqpmIP3UAJ6kRmykauQq1AQBqOL6di6lnQqyB45K99aryVfZ4SS4mEdqh67s+4PqaZTnjlAi30Wpa5X7slLuMjPRW1GEeXEOBQb0AERSIiP4KQNCluAZovK91NXr5bXqF5k8BoFtplU9engGw6CH7osSt8qp5PpaQGjCti2mW6azrs4e+67s+F/wzrfFni73tSF7BsVfHp9yiwYDGBjDcUUkNoGEm0puE+hybo00Aw504ShAxdq1hqP6+0nsYARtNXVdSMeuI2/agrOotxnYbT7ND2cHrjUqOlehhvh3aoWaXnjem01fAlSFcAeEG3DovYjAYGhs4FizzNpSNoCgy1ZJlNC9tctHTk4WhldfACZzAiZnEP0smQOX49bgF13fzKm0Bse3B6VdlzfWTVHEgonS4CQoAUc2EGc+BeD4ifQYBimXSNmEhziVkmgDW3h+/zLOz/NSdPkQ6eUC5Yjfzgh/WpiusAfx25val5SdxMpF67ND17dDjouUKLjPdutBvWorR+nw1zWgn1rABArPqc4l7+06BYTiMAcThLhGUdm3agpMjSz9KUoLt1I8VEBukR+wbUxWvNLtwN77NavetB2Xh0pIWEDjSCvjnrmZZGhHdfP4V7wUXcH1XcFnlF/YS7Yk2F6ZwO3uXbHklH7o1zRTwwbgCX6a4F1X8c7a0A2Kv01sAH64D+PFvkErkRQAB4HAueI6ctYoSgI2mXC0HGJ8v8o/ATC0u9GMLrI3iABCH/nxyOUrFJaNQuES9NKeZ6hYl5caS2BGhbGxpIosNnC0OHjiBqz8Tx93ADZzPmrgvuOBT9LH+dvKSrOricfh9+iZXVgovLnFqd4Hu9/HIiR3tdSM9LkDG8upSHprqnP/kP1M952fTEBvXLn6VDVLgxytTWeYDFb+iTEJCgGSQrrquzDb71ZcaZdRfKYn9jOlo8IKB0apaMFewRoPBKDKMeqOYWzbuVqlZ9TNOvr6b1y7wcW4s/GClimOAtKQr0OMJYPG+ZHHipQTQYsbznTrdkaUa2oQc+zROgQl/gcEzELGb0SoubZM4h4QxoYIlAhk7qEQsc3Fswr8Z8bQn4MAkxWhXHd6Zdv3B1+kr+7gohKTBkj6e4tC/SkffPtHB62l2sulOjQTnknwmEOsm1zg5XK5KyCar6qwojW0SOAYzFYY0HM5Nu/5hWpn1C6+If51o4Oyrj6t7OKA4QMY3cy08SAbrQc/u/NGJOVGHPM1W1xbLv5NJQvRu5n1op59mtYCDp1Gcg5l38Ta1icx4LZt79MPJ6sTgguqnU0QAMHE9DW07qbFqmhmKKRhQFP1hY7F68uh+VvxTMTznp0EtTDiJYRdrYyetlfSJ5vxFI7Z4kJnakVy2shMo6qsjRZY1l+WJx6/WawCgDrpjzGXAQhcGFAyi6NUrA8wwDAMGIwPzCzk7DY7SjAT27SRPj7rdvY/xbS5gs+ubK+llo8Fhf/dYzf0MgDc572I/ZyhzD8wLtkocj08OqTUMxohUlEwzsdbxLP+lRgM4OS52cwfRU5aUmnp8ibBETSKAmLmUYtY7yOUGxuK8CaUGJ0MFvJOb7K8f3pozDYpGo+NYOzNuAPg+faOZUP0idzvLixeNWFYpVQSY9Zwjq2x3gFf9MRWICDdp9S30Y8C1rD6paAtVs2fn64fZxubzUeLUDFKMKQi1qwgEIkUg9e4aAPR/A8XK9Mz7AF4+m3Yfc58A+O80u8gVDYOvcoXn3Y0LRgwbp2jXYHy7gn6H+bNuvTpOagBmKjIowpBIGcSIEIFCYxXAwsKRFiYz1ShrN/rTlFgGAKOyudbzqzkz+Ga5frFWCaB7oKZZZcUIyrWlTNW4AwAnL2MMiOI/RQIivBOtvWVWCWBpYX+6ZS4be0Wo59brhSJA7gIMoJhmjBQjMJLYj9VFgrYXtZubR5v2m1RgardqaqPJAbya+EKsm+W+RTfYBSOG2sZQHpZYQX2+oRX0xflxTOtakcjnXd292HKILREQEdFIDRW66oD08Amp4U0dIr/bodQi49kaLAHAWHrxnCYF//q6npb2+zS7GEeM/T6fu925YKuMy5bhYEggYmBg5tyc2RjDd9Trj4iIMVazEs0rGqQlWyY7ss1GXvY6PCJCVFtkFoElwTP6gdLhTRCU2VzIoU97JwbL5hWTMuvp1CORlFLqeqHKVanSSPXVPwliAKAUEYNhVLA6UsSM0hRxlOZJxs3CCf2nIKqv4dob6ccu7NeC2ajUzYlKvP8UUIyICB+9cYhd1K8FU/NEbVK6mGcMhnZxb96PrmsX1G+m09ZLEylGABlEbIZYUi5mhJo8SCYixhSjN/EPLV3ULWcTUEpG2XcBk8FgzKjNEEvz2czNT2YtkgGGwRgrncZ1RRHL9D9VrEG7r8AMBmYYzFx5W6qk/3+rZz598N1Ss5ZMbIl6R0Od0isw802cUHth+dj4Lw5N02QARlGE3Fyg5o0ZYrn04sWUnjVm9ZtshliuDbanHSVCcxOYIZZvx2LaHFFjZQkzxIo82j+q6t1YWjQxQ6xE+TiSZb/7ml9YZMAMsQqiSTWIFCV/QsaoLRjNNxcu/Mn+NpRSRGTAMPHGNzb7P1IvSZU0Q2zWZojNEJshNkNshtgMsVmbITZDbIbYDLEZYrM2Q+yP0f4PMIqEwFSs+lYAAAAASUVORK5CYII=");
+ $div.setAttribute("style", "z-index:100;position:absolute;top:135px;left:10%;right:10%;bottom:30px;background-color:white;border:1px solid #cccccc;overflow-x:hidden;overflow-y:scroll;overflow-wrap:break-word;white-space:pre-wrap;font: 14px monospace;padding:10px;");
+ nle_Client_rootElement.appendChild($img);
+ nle_Client_rootElement.appendChild($div);
+ $t = jl_StringBuilder_toString($str);
+ $t = $doc.createTextNode($rt_ustr($t));
+ $div.appendChild($t);
+ }
+}
+function nle_Client_addDebug($str, $var) {
+ var var$3;
+ jl_AbstractStringBuilder_insert($str, $str.$length, $var);
+ jl_AbstractStringBuilder_insert($str, $str.$length, $rt_s(19));
+ $var = $rt_str(nle_Client_getString$js_body$_10($rt_ustr($var)));
+ jl_AbstractStringBuilder_insert($str, $str.$length, $var);
+ var$3 = $str.$length;
+ jl_AbstractStringBuilder_insertSpace($str, var$3, var$3 + 1 | 0);
+ $str.$buffer.data[var$3] = 10;
+}
+function nle_Client_addArray($str, $var) {
+ var var$3;
+ jl_AbstractStringBuilder_insert($str, $str.$length, $var);
+ jl_AbstractStringBuilder_insert($str, $str.$length, $rt_s(19));
+ $var = $rt_str(nle_Client_getArray$js_body$_13($rt_ustr($var)));
+ jl_AbstractStringBuilder_insert($str, $str.$length, $var);
+ var$3 = $str.$length;
+ jl_AbstractStringBuilder_insertSpace($str, var$3, var$3 + 1 | 0);
+ $str.$buffer.data[var$3] = 10;
+}
+function nle_Client__clinit_() {
+ nle_Client_rootElement = null;
+ nle_Client_instance = null;
+ nle_Client_isCrashed = 0;
+}
+function nle_Client_registerErrorHandler$js_body$_5() {
+ window.minecraftError = null;
+ window.onerror = function(message, file, line, column, errorObj) {
+ if (errorObj) {
+ window.minecraftError = errorObj;
+ window.minecraftErrorL = "" + line + ":" + column;
+ nle_Client_handleNativeError$jsocb$_0();
+ } else {
+ alert("a native browser exception was thrown but your browser does not support fith argument in onerror");
+ }
+ };
+}
+function nle_Client_handleNativeError$jsocb$_0() {
+ nle_Client_handleNativeError();
+}
+function nle_Client_getString$js_body$_10(var$1) {
+ try {
+ return "" + window.eval(var$1);
+ } catch (e){
+ return "";
+ }
+}
+function nle_Client_getArray$js_body$_13(var$1) {
+ try {
+ return JSON.stringify(window.eval(var$1));
+ } catch (e){
+ return "[\"\"]";
+ }
+}
+function jlr_AnnotatedElement() {
+}
+function jl_Class() {
+ var a = this; jl_Object.call(a);
+ a.$name = null;
+ a.$simpleName = null;
+ a.$platformClass = null;
+}
+function jl_Class_getClass($cls) {
+ var $result, var$3;
+ if ($cls === null)
+ return null;
+ $result = $cls.classObject;
+ if ($result === null) {
+ $result = new jl_Class;
+ $result.$platformClass = $cls;
+ var$3 = $result;
+ $cls.classObject = var$3;
+ }
+ return $result;
+}
+function jl_Class_getPlatformClass($this) {
+ return $this.$platformClass;
+}
+function jl_Class_isInstance($this, $obj) {
+ return otp_Platform_isInstance($obj, $this.$platformClass);
+}
+function jl_Class_isAssignableFrom($this, $obj) {
+ return otp_Platform_isAssignable($obj.$platformClass, $this.$platformClass);
+}
+function jl_Class_getName($this) {
+ if ($this.$name === null)
+ $this.$name = $rt_str($this.$platformClass.$meta.name);
+ return $this.$name;
+}
+function jl_Class_getSimpleName($this) {
+ var $simpleName, var$2, $lastDollar, $lastDot;
+ $simpleName = $this.$simpleName;
+ if ($simpleName === null) {
+ if (jl_Class_isArray($this)) {
+ $simpleName = new jl_StringBuilder;
+ $simpleName.$buffer = $rt_createCharArray(16);
+ var$2 = jl_Class_getSimpleName(jl_Class_getClass($this.$platformClass.$meta.item));
+ jl_AbstractStringBuilder_insert($simpleName, $simpleName.$length, var$2);
+ jl_AbstractStringBuilder_insert($simpleName, $simpleName.$length, $rt_s(46));
+ var$2 = jl_String__init_0($simpleName.$buffer, 0, $simpleName.$length);
+ $this.$simpleName = var$2;
+ return var$2;
+ }
+ $simpleName = $rt_str($this.$platformClass.$meta.name);
+ $lastDollar = jl_String_lastIndexOf($simpleName, 36, $simpleName.$characters.data.length - 1 | 0);
+ if ($lastDollar == (-1)) {
+ $lastDot = jl_String_lastIndexOf($simpleName, 46, $simpleName.$characters.data.length - 1 | 0);
+ if ($lastDot != (-1))
+ $simpleName = jl_String_substring($simpleName, $lastDot + 1 | 0);
+ } else {
+ $simpleName = jl_String_substring($simpleName, $lastDollar + 1 | 0);
+ if (jl_String_charAt($simpleName, 0) >= 48 && jl_String_charAt($simpleName, 0) <= 57)
+ $simpleName = $rt_s(44);
+ }
+ $this.$simpleName = $simpleName;
+ }
+ return $simpleName;
+}
+function jl_Class_isPrimitive($this) {
+ return $this.$platformClass.$meta.primitive ? 1 : 0;
+}
+function jl_Class_isArray($this) {
+ return $this.$platformClass.$meta.item === null ? 0 : 1;
+}
+function jl_Class_getComponentType($this) {
+ return jl_Class_getClass($this.$platformClass.$meta.item);
+}
+function jl_Class_getSuperclass($this) {
+ return jl_Class_getClass($this.$platformClass.$meta.superclass);
+}
+function jl_Class_newInstance($this) {
+ var $instance;
+ $instance = $this.$platformClass;
+ if (!otp_Platform_newInstancePrepared) {
+ otp_Platform_prepareNewInstance();
+ otp_Platform_newInstancePrepared = 1;
+ }
+ $instance = otp_Platform_newInstanceImpl($instance);
+ if ($instance !== null)
+ return $instance;
+ $instance = new jl_InstantiationException;
+ $instance.$suppressionEnabled = 1;
+ $instance.$writableStackTrace = 1;
+ $rt_throw($instance);
+}
+function otji_JS() {
+ jl_Object.call(this);
+}
+function otji_JS__init_() {
+ var var_0 = new otji_JS();
+ otji_JS__init_0(var_0);
+ return var_0;
+}
+function otji_JS__init_0($this) {
+ return;
+}
+function otji_JS_wrap($array) {
+ var var$2, $result, $i, var$5;
+ if ($array === null)
+ return null;
+ $array = $array.data;
+ var$2 = $array.length;
+ $result = new Array(var$2);
+ $i = 0;
+ while ($i < var$2) {
+ var$5 = $array[$i];
+ $result[$i] = var$5;
+ $i = $i + 1 | 0;
+ }
+ return $result;
+}
+function otji_JS_unwrapStringArray($array) {
+ var $result, var$3, $i, var$5;
+ if ($array === null)
+ return null;
+ $result = $rt_createArray(jl_String, $array.length);
+ var$3 = $result.data;
+ $i = 0;
+ var$5 = var$3.length;
+ while ($i < var$5) {
+ var$3[$i] = $rt_str($array[$i]);
+ $i = $i + 1 | 0;
+ }
+ return $result;
+}
+function otji_JS_function(var$1, var$2) {
+ var name = 'jso$functor$' + var$2;
+ if (!var$1[name]) {
+ var fn = function() {
+ return var$1[var$2].apply(var$1, arguments);
+ };
+ var$1[name] = function() {
+ return fn;
+ };
+ }
+ return var$1[name]();
+}
+function otji_JS_functionAsObject(var$1, var$2) {
+ if (typeof var$1 !== "function") return var$1;
+ var result = {};
+ result[var$2] = var$1;
+ return result;
+}
+function otp_Platform() {
+ jl_Object.call(this);
+}
+var otp_Platform_newInstancePrepared = 0;
+function otp_Platform__init_() {
+ var var_0 = new otp_Platform();
+ otp_Platform__init_0(var_0);
+ return var_0;
+}
+function otp_Platform__init_0($this) {
+ return;
+}
+function otp_Platform_clone(var$1) {
+ var copy = new var$1.constructor();
+ for (var field in var$1) {
+ if (!var$1.hasOwnProperty(field)) {
+ continue;
+ }
+ copy[field] = var$1[field];
+ }
+ return copy;
+}
+function otp_Platform_isInstance($obj, $cls) {
+ return $obj !== null && !(typeof $obj.constructor.$meta === 'undefined' ? 1 : 0) && otp_Platform_isAssignable($obj.constructor, $cls) ? 1 : 0;
+}
+function otp_Platform_isAssignable($from, $to) {
+ var $supertypes, $i;
+ if ($from === $to)
+ return 1;
+ $supertypes = $from.$meta.supertypes;
+ $i = 0;
+ while ($i < $supertypes.length) {
+ if (otp_Platform_isAssignable($supertypes[$i], $to))
+ return 1;
+ $i = $i + 1 | 0;
+ }
+ return 0;
+}
+function otp_Platform_prepareNewInstance() {
+ var c = '$$constructor$$';
+ jl_String[c] = jl_String__init_1;
+ jl_Object[c] = jl_Object__init_0;
+ jl_NoClassDefFoundError[c] = jl_NoClassDefFoundError__init_;
+ jl_LinkageError[c] = jl_LinkageError__init_;
+ jl_Error[c] = jl_Error__init_;
+ jl_Throwable[c] = jl_Throwable__init_;
+ jl_NoSuchFieldError[c] = jl_NoSuchFieldError__init_;
+ jl_IncompatibleClassChangeError[c] = jl_IncompatibleClassChangeError__init_;
+ jl_NoSuchMethodError[c] = jl_NoSuchMethodError__init_;
+ jl_RuntimeException[c] = jl_RuntimeException__init_0;
+ jl_Exception[c] = jl_Exception__init_;
+ jl_StringBuilder[c] = jl_StringBuilder__init_0;
+ jl_AbstractStringBuilder[c] = jl_AbstractStringBuilder__init_;
+ nle_Client[c] = nle_Client__init_0;
+ otji_JS[c] = otji_JS__init_0;
+ otp_Platform[c] = otp_Platform__init_0;
+ nlea_EaglerAdapterImpl2[c] = nlea_EaglerAdapterImpl2__init_;
+ nlea_EaglerAdapterImpl2$2[c] = nlea_EaglerAdapterImpl2$2__init_;
+ nlea_EaglerAdapterImpl2$3[c] = nlea_EaglerAdapterImpl2$3__init_;
+ nlea_EaglerAdapterImpl2$4[c] = nlea_EaglerAdapterImpl2$4__init_;
+ nlea_EaglerAdapterImpl2$5[c] = nlea_EaglerAdapterImpl2$5__init_;
+ nlea_EaglerAdapterImpl2$6[c] = nlea_EaglerAdapterImpl2$6__init_;
+ nlea_EaglerAdapterImpl2$7[c] = nlea_EaglerAdapterImpl2$7__init_;
+ nlea_EaglerAdapterImpl2$8[c] = nlea_EaglerAdapterImpl2$8__init_;
+ nlea_EaglerAdapterImpl2$9[c] = nlea_EaglerAdapterImpl2$9__init_;
+ nlea_EaglerAdapterImpl2$10[c] = nlea_EaglerAdapterImpl2$10__init_;
+ nlea_EaglerAdapterImpl2$11[c] = nlea_EaglerAdapterImpl2$11__init_;
+ ju_LinkedList[c] = ju_LinkedList__init_;
+ ji_IOException[c] = ji_IOException__init_;
+ nle_LocalStorageManager[c] = nle_LocalStorageManager__init_;
+ nms_NBTTagCompound[c] = nms_NBTTagCompound__init_;
+ nmc_Minecraft[c] = nmc_Minecraft__init_0;
+ nms_NBTTagList[c] = nms_NBTTagList__init_;
+ jl_String$_clinit_$lambda$_81_0[c] = jl_String$_clinit_$lambda$_81_0__init_;
+ otci_IntegerUtil[c] = otci_IntegerUtil__init_;
+ ju_HashMap[c] = ju_HashMap__init_;
+ nle_EarlyLoadScreen[c] = nle_EarlyLoadScreen__init_;
+ jl_InterruptedException[c] = jl_InterruptedException__init_;
+ jl_Thread[c] = jl_Thread__init_;
+ nle_AssetRepository[c] = nle_AssetRepository__init_;
+ nle_SHA1Digest[c] = nle_SHA1Digest__init_;
+ nle_EaglerAdapter[c] = nle_EaglerAdapter__init_;
+ nleg_EaglerAdapterGL30[c] = nleg_EaglerAdapterGL30__init_;
+ nms_CompressedStreamTools[c] = nms_CompressedStreamTools__init_;
+ jl_System[c] = jl_System__init_;
+ jl_ConsoleOutputStreamStdout[c] = jl_ConsoleOutputStreamStdout__init_;
+ nms_SoundManager[c] = nms_SoundManager__init_;
+ nms_Profiler[c] = nms_Profiler__init_;
+ ju_HashSet[c] = ju_HashSet__init_;
+ ju_ArrayList[c] = ju_ArrayList__init_;
+ nle_Base64[c] = nle_Base64__init_;
+ cbpd_PNG[c] = cbpd_PNG__init_;
+ cbpd_DecodeException[c] = cbpd_DecodeException__init_;
+ nms_GLAllocation[c] = nms_GLAllocation__init_;
+ jl_IllegalArgumentException[c] = jl_IllegalArgumentException__init_;
+ ju_Arrays[c] = ju_Arrays__init_;
+ jnci_UTF8Charset[c] = jnci_UTF8Charset__init_;
+ ju_Random[c] = ju_Random__init_;
+ nms_Packet3Chat[c] = nms_Packet3Chat__init_;
+ nle_EaglerProfile[c] = nle_EaglerProfile__init_;
+ jnc_Charset$Charsets[c] = jnc_Charset$Charsets__init_;
+ cjj_Inflater[c] = cjj_Inflater__init_;
+ cjj_ZStream[c] = cjj_ZStream__init_;
+ nms_NBTTagEnd[c] = nms_NBTTagEnd__init_;
+ ji_ByteArrayOutputStream[c] = ji_ByteArrayOutputStream__init_;
+ nlegv_Matrix4f[c] = nlegv_Matrix4f__init_;
+ nlegv_Matrix3f[c] = nlegv_Matrix3f__init_;
+ nlegv_Vector3f[c] = nlegv_Vector3f__init_;
+ nlegv_Vector4f[c] = nlegv_Vector4f__init_;
+ jl_IllegalStateException[c] = jl_IllegalStateException__init_;
+ jl_IllegalMonitorStateException[c] = jl_IllegalMonitorStateException__init_;
+ otjb_Performance[c] = otjb_Performance__init_;
+ nms_GuiScreen[c] = nms_GuiScreen__init_;
+ nms_Gui[c] = nms_Gui__init_;
+ jl_Object$Monitor[c] = jl_Object$Monitor__init_;
+ cjj_GZIPException[c] = cjj_GZIPException__init_;
+ jl_CloneNotSupportedException[c] = jl_CloneNotSupportedException__init_;
+ cjj_Adler32[c] = cjj_Adler32__init_;
+ jl_NullPointerException[c] = jl_NullPointerException__init_0;
+ jl_IndexOutOfBoundsException[c] = jl_IndexOutOfBoundsException__init_;
+ jl_ArrayStoreException[c] = jl_ArrayStoreException__init_;
+ jlr_Array[c] = jlr_Array__init_;
+ jn_ReadOnlyBufferException[c] = jn_ReadOnlyBufferException__init_;
+ jl_UnsupportedOperationException[c] = jl_UnsupportedOperationException__init_;
+ jn_BufferOverflowException[c] = jn_BufferOverflowException__init_;
+ jn_BufferUnderflowException[c] = jn_BufferUnderflowException__init_;
+ jl_StringIndexOutOfBoundsException[c] = jl_StringIndexOutOfBoundsException__init_;
+ ji_EOFException[c] = ji_EOFException__init_;
+ nms_GuiMemoryErrorScreen[c] = nms_GuiMemoryErrorScreen__init_;
+ jl_ConsoleOutputStreamStderr[c] = jl_ConsoleOutputStreamStderr__init_;
+ jl_OutOfMemoryError[c] = jl_OutOfMemoryError__init_;
+ jl_VirtualMachineError[c] = jl_VirtualMachineError__init_;
+ cbpd_IDATManager[c] = cbpd_IDATManager__init_;
+ cbpu_ByteHandler[c] = cbpu_ByteHandler__init_;
+ jl_ThreadLocal[c] = jl_ThreadLocal__init_;
+ nms_RenderBlocks[c] = nms_RenderBlocks__init_;
+ jt_DecimalFormat[c] = jt_DecimalFormat__init_;
+ jl_Math[c] = jl_Math__init_;
+ nms_AABBLocalPool[c] = nms_AABBLocalPool__init_;
+ jt_DecimalFormatSymbols[c] = jt_DecimalFormatSymbols__init_;
+ nms_MathHelper[c] = nms_MathHelper__init_;
+ nms_GuiMainMenu[c] = nms_GuiMainMenu__init_;
+ cbpu_CRC[c] = cbpu_CRC__init_;
+ ju_Properties[c] = ju_Properties__init_;
+ ju_Hashtable[c] = ju_Hashtable__init_;
+ otciu_CLDRHelper[c] = otciu_CLDRHelper__init_;
+ otpp_ResourceAccessor[c] = otpp_ResourceAccessor__init_;
+ otcic_CurrencyHelper[c] = otcic_CurrencyHelper__init_;
+ ju_Hashtable$1[c] = ju_Hashtable$1__init_;
+ ju_Hashtable$2[c] = ju_Hashtable$2__init_;
+ nms_RenderManager[c] = nms_RenderManager__init_;
+ nms_GuiGameOver[c] = nms_GuiGameOver__init_;
+ nle_BaseNCodec$Context[c] = nle_BaseNCodec$Context__init_;
+ nms_GuiChat[c] = nms_GuiChat__init_;
+ nms_GuiSleepMP[c] = nms_GuiSleepMP__init_;
+ jl_StringBuffer[c] = jl_StringBuffer__init_;
+ jl_AssertionError[c] = jl_AssertionError__init_;
+ jt_DecimalFormatParser[c] = jt_DecimalFormatParser__init_;
+ nms_OpenGlHelper[c] = nms_OpenGlHelper__init_;
+ nms_TextureManager[c] = nms_TextureManager__init_;
+ nms_IntHashMap[c] = nms_IntHashMap__init_;
+ nms_ChatAllowedCharacters[c] = nms_ChatAllowedCharacters__init_;
+ nms_ColorizerGrass[c] = nms_ColorizerGrass__init_;
+ nms_ColorizerFoliage[c] = nms_ColorizerFoliage__init_;
+ nms_MouseFilter[c] = nms_MouseFilter__init_;
+ nms_EntitySpider[c] = nms_EntitySpider__init_;
+ nms_RenderSpider[c] = nms_RenderSpider__init_;
+ nms_EntityCaveSpider[c] = nms_EntityCaveSpider__init_;
+ nms_EntityPig[c] = nms_EntityPig__init_;
+ nms_ModelPig[c] = nms_ModelPig__init_;
+ nms_EntitySheep[c] = nms_EntitySheep__init_;
+ nms_ModelSheep2[c] = nms_ModelSheep2__init_;
+ nms_ModelSheep1[c] = nms_ModelSheep1__init_;
+ nms_EntityCow[c] = nms_EntityCow__init_;
+ nms_ModelCow[c] = nms_ModelCow__init_;
+ nms_EntityMooshroom[c] = nms_EntityMooshroom__init_;
+ nms_EntityWolf[c] = nms_EntityWolf__init_;
+ nms_ModelWolf[c] = nms_ModelWolf__init_;
+ nms_EntityChicken[c] = nms_EntityChicken__init_;
+ nms_ModelChicken[c] = nms_ModelChicken__init_;
+ nms_EntityOcelot[c] = nms_EntityOcelot__init_;
+ nms_ModelOcelot[c] = nms_ModelOcelot__init_;
+ nms_EntitySilverfish[c] = nms_EntitySilverfish__init_;
+ nms_RenderSilverfish[c] = nms_RenderSilverfish__init_;
+ nms_EntityCreeper[c] = nms_EntityCreeper__init_;
+ nms_RenderCreeper[c] = nms_RenderCreeper__init_;
+ nms_EntityEnderman[c] = nms_EntityEnderman__init_;
+ nms_RenderEnderman[c] = nms_RenderEnderman__init_;
+ nms_EntitySnowman[c] = nms_EntitySnowman__init_;
+ nms_RenderSnowMan[c] = nms_RenderSnowMan__init_;
+ nms_EntitySkeleton[c] = nms_EntitySkeleton__init_;
+ nms_RenderSkeleton[c] = nms_RenderSkeleton__init_;
+ nms_EntityWitch[c] = nms_EntityWitch__init_;
+ nms_RenderWitch[c] = nms_RenderWitch__init_;
+ nms_EntityBlaze[c] = nms_EntityBlaze__init_;
+ nms_RenderBlaze[c] = nms_RenderBlaze__init_;
+ nms_EntityZombie[c] = nms_EntityZombie__init_;
+ nms_RenderZombie[c] = nms_RenderZombie__init_;
+ nms_EntitySlime[c] = nms_EntitySlime__init_;
+ nms_EntityMagmaCube[c] = nms_EntityMagmaCube__init_;
+ nms_RenderMagmaCube[c] = nms_RenderMagmaCube__init_;
+ nms_RenderPlayer[c] = nms_RenderPlayer__init_;
+ nms_EntityGhast[c] = nms_EntityGhast__init_;
+ nms_RenderGhast[c] = nms_RenderGhast__init_;
+ nms_EntitySquid[c] = nms_EntitySquid__init_;
+ nms_ModelSquid[c] = nms_ModelSquid__init_;
+ nms_EntityVillager[c] = nms_EntityVillager__init_;
+ nms_RenderVillager[c] = nms_RenderVillager__init_;
+ nms_EntityIronGolem[c] = nms_EntityIronGolem__init_;
+ nms_RenderIronGolem[c] = nms_RenderIronGolem__init_;
+ nms_EntityBat[c] = nms_EntityBat__init_;
+ nms_RenderBat[c] = nms_RenderBat__init_;
+ nms_EntityDragon[c] = nms_EntityDragon__init_;
+ nms_RenderDragon[c] = nms_RenderDragon__init_;
+ nms_EntityEnderCrystal[c] = nms_EntityEnderCrystal__init_;
+ nms_RenderEnderCrystal[c] = nms_RenderEnderCrystal__init_;
+ nms_EntityWither[c] = nms_EntityWither__init_;
+ nms_RenderWither[c] = nms_RenderWither__init_;
+ nms_RenderEntity[c] = nms_RenderEntity__init_;
+ nms_RenderPainting[c] = nms_RenderPainting__init_;
+ nms_EntityItemFrame[c] = nms_EntityItemFrame__init_;
+ nms_RenderItemFrame[c] = nms_RenderItemFrame__init_;
+ nms_EntityArrow[c] = nms_EntityArrow__init_;
+ nms_RenderArrow[c] = nms_RenderArrow__init_;
+ nms_EntitySnowball[c] = nms_EntitySnowball__init_;
+ nms_EntityEnderPearl[c] = nms_EntityEnderPearl__init_;
+ nms_EntityEnderEye[c] = nms_EntityEnderEye__init_;
+ nms_EntityEgg[c] = nms_EntityEgg__init_;
+ nms_EntityPotion[c] = nms_EntityPotion__init_;
+ nms_EntityExpBottle[c] = nms_EntityExpBottle__init_;
+ nms_EntityFireworkRocket[c] = nms_EntityFireworkRocket__init_;
+ nms_EntityLargeFireball[c] = nms_EntityLargeFireball__init_;
+ nms_EntitySmallFireball[c] = nms_EntitySmallFireball__init_;
+ nms_EntityWitherSkull[c] = nms_EntityWitherSkull__init_;
+ nms_RenderWitherSkull[c] = nms_RenderWitherSkull__init_;
+ nms_EntityItem[c] = nms_EntityItem__init_;
+ nms_RenderItem[c] = nms_RenderItem__init_;
+ nms_EntityXPOrb[c] = nms_EntityXPOrb__init_;
+ nms_RenderXPOrb[c] = nms_RenderXPOrb__init_;
+ nms_EntityTNTPrimed[c] = nms_EntityTNTPrimed__init_;
+ nms_RenderTNTPrimed[c] = nms_RenderTNTPrimed__init_;
+ nms_EntityFallingSand[c] = nms_EntityFallingSand__init_;
+ nms_RenderFallingSand[c] = nms_RenderFallingSand__init_;
+ nms_RenderTntMinecart[c] = nms_RenderTntMinecart__init_;
+ nms_RenderMinecart[c] = nms_RenderMinecart__init_;
+ nms_RenderMinecartMobSpawner[c] = nms_RenderMinecartMobSpawner__init_;
+ nms_EntityBoat[c] = nms_EntityBoat__init_;
+ nms_RenderBoat[c] = nms_RenderBoat__init_;
+ nms_EntityFishHook[c] = nms_EntityFishHook__init_;
+ nms_RenderFish[c] = nms_RenderFish__init_;
+ nms_RenderLightningBolt[c] = nms_RenderLightningBolt__init_;
+ nms_AchievementList[c] = nms_AchievementList__init_;
+ nms_RenderList[c] = nms_RenderList__init_;
+ nleg_EffectPipeline[c] = nleg_EffectPipeline__init_;
+ cjj_InfTree[c] = cjj_InfTree__init_;
+ nle_DefaultSkinRenderer[c] = nle_DefaultSkinRenderer__init_;
+ nms_ItemStack[c] = nms_ItemStack__init_;
+ ju_Collections[c] = ju_Collections__init_;
+ nle_EaglerInflater[c] = nle_EaglerInflater__init_;
+ cbpu_ReverseFilter[c] = cbpu_ReverseFilter__init_;
+ jl_NegativeArraySizeException[c] = jl_NegativeArraySizeException__init_;
+ ji_UTFDataFormatException[c] = ji_UTFDataFormatException__init_;
+ nms_TexturePackDefault[c] = nms_TexturePackDefault__init_;
+ nms_ModelSpider[c] = nms_ModelSpider__init_;
+ nms_ModelSilverfish[c] = nms_ModelSilverfish__init_;
+ nms_ModelCreeper[c] = nms_ModelCreeper__init_;
+ nms_ModelEnderman[c] = nms_ModelEnderman__init_;
+ nms_ModelBiped[c] = nms_ModelBiped__init_;
+ nms_ModelSnowMan[c] = nms_ModelSnowMan__init_;
+ nms_ModelSkeleton[c] = nms_ModelSkeleton__init_;
+ nms_ModelZombie[c] = nms_ModelZombie__init_;
+ nms_ModelBlaze[c] = nms_ModelBlaze__init_;
+ nms_ModelZombieVillager[c] = nms_ModelZombieVillager__init_;
+ nms_ModelMagmaCube[c] = nms_ModelMagmaCube__init_;
+ nms_ModelGhast[c] = nms_ModelGhast__init_;
+ nms_ModelIronGolem[c] = nms_ModelIronGolem__init_;
+ nms_ModelBat[c] = nms_ModelBat__init_;
+ nms_ModelWither[c] = nms_ModelWither__init_;
+ nms_ModelSkeletonHead[c] = nms_ModelSkeletonHead__init_;
+ nms_ModelMinecart[c] = nms_ModelMinecart__init_;
+ nms_ModelBoat[c] = nms_ModelBoat__init_;
+ ju_Arrays$NaturalOrder[c] = ju_Arrays$NaturalOrder__init_;
+ nms_PlayerCapabilities[c] = nms_PlayerCapabilities__init_;
+ nms_EntityList[c] = nms_EntityList__init_;
+ ju_Collections$_clinit_$lambda$_61_0[c] = ju_Collections$_clinit_$lambda$_61_0__init_;
+ ju_Collections$_clinit_$lambda$_61_1[c] = ju_Collections$_clinit_$lambda$_61_1__init_;
+ ji_UnsupportedEncodingException[c] = ji_UnsupportedEncodingException__init_;
+ ju_TreeMap[c] = ju_TreeMap__init_;
+ nms_NoiseGeneratorPerlin[c] = nms_NoiseGeneratorPerlin__init_;
+ nms_BlockCloth[c] = nms_BlockCloth__init_;
+ nms_TileEntitySign[c] = nms_TileEntitySign__init_;
+ nms_TileEntity[c] = nms_TileEntity__init_;
+ ju_LinkedHashMap[c] = ju_LinkedHashMap__init_;
+ nms_EntityPigZombie[c] = nms_EntityPigZombie__init_;
+ ju_Collections$5[c] = ju_Collections$5__init_;
+ ju_Collections$6[c] = ju_Collections$6__init_;
+ ju_Collections$3[c] = ju_Collections$3__init_;
+ nms_PotionHelper[c] = nms_PotionHelper__init_;
+ jur_Pattern[c] = jur_Pattern__init_;
+ nms_StatTypeSimple[c] = nms_StatTypeSimple__init_;
+ nms_StatTypeTime[c] = nms_StatTypeTime__init_;
+ nms_StatTypeDistance[c] = nms_StatTypeDistance__init_;
+ jur_AheadFSet[c] = jur_AheadFSet__init_;
+ jur_FinalSet[c] = jur_FinalSet__init_;
+ jur_NonCapJointSet[c] = jur_NonCapJointSet__init_;
+ jur_JointSet[c] = jur_JointSet__init_;
+ jur_CharClass[c] = jur_CharClass__init_;
+ jur_AbstractCharClass$PredefinedCharacterClasses[c] = jur_AbstractCharClass$PredefinedCharacterClasses__init_;
+ jur_FSet$PossessiveFSet[c] = jur_FSet$PossessiveFSet__init_;
+ ju_BitSet[c] = ju_BitSet__init_;
+ jur_SOLSet[c] = jur_SOLSet__init_;
+ jur_PreviousMatch[c] = jur_PreviousMatch__init_;
+ jur_EOISet[c] = jur_EOISet__init_;
+ jur_DotAllSet[c] = jur_DotAllSet__init_;
+ jl_NumberFormatException[c] = jl_NumberFormatException__init_;
+ jur_AbstractLineTerminator$1[c] = jur_AbstractLineTerminator$1__init_;
+ jur_AbstractLineTerminator$2[c] = jur_AbstractLineTerminator$2__init_;
+ jur_AbstractCharClass$LazySpace[c] = jur_AbstractCharClass$LazySpace__init_;
+ jur_AbstractCharClass$LazyDigit[c] = jur_AbstractCharClass$LazyDigit__init_;
+ jur_AbstractCharClass$LazyLower[c] = jur_AbstractCharClass$LazyLower__init_;
+ jur_AbstractCharClass$LazyUpper[c] = jur_AbstractCharClass$LazyUpper__init_;
+ jur_AbstractCharClass$LazyASCII[c] = jur_AbstractCharClass$LazyASCII__init_;
+ jur_AbstractCharClass$LazyAlpha[c] = jur_AbstractCharClass$LazyAlpha__init_;
+ jur_AbstractCharClass$LazyAlnum[c] = jur_AbstractCharClass$LazyAlnum__init_;
+ jur_AbstractCharClass$LazyPunct[c] = jur_AbstractCharClass$LazyPunct__init_;
+ jur_AbstractCharClass$LazyGraph[c] = jur_AbstractCharClass$LazyGraph__init_;
+ jur_AbstractCharClass$LazyPrint[c] = jur_AbstractCharClass$LazyPrint__init_;
+ jur_AbstractCharClass$LazyBlank[c] = jur_AbstractCharClass$LazyBlank__init_;
+ jur_AbstractCharClass$LazyCntrl[c] = jur_AbstractCharClass$LazyCntrl__init_;
+ jur_AbstractCharClass$LazyXDigit[c] = jur_AbstractCharClass$LazyXDigit__init_;
+ jur_AbstractCharClass$LazyJavaLowerCase[c] = jur_AbstractCharClass$LazyJavaLowerCase__init_;
+ jur_AbstractCharClass$LazyJavaUpperCase[c] = jur_AbstractCharClass$LazyJavaUpperCase__init_;
+ jur_AbstractCharClass$LazyJavaWhitespace[c] = jur_AbstractCharClass$LazyJavaWhitespace__init_;
+ jur_AbstractCharClass$LazyJavaMirrored[c] = jur_AbstractCharClass$LazyJavaMirrored__init_;
+ jur_AbstractCharClass$LazyJavaDefined[c] = jur_AbstractCharClass$LazyJavaDefined__init_;
+ jur_AbstractCharClass$LazyJavaDigit[c] = jur_AbstractCharClass$LazyJavaDigit__init_;
+ jur_AbstractCharClass$LazyJavaIdentifierIgnorable[c] = jur_AbstractCharClass$LazyJavaIdentifierIgnorable__init_;
+ jur_AbstractCharClass$LazyJavaISOControl[c] = jur_AbstractCharClass$LazyJavaISOControl__init_;
+ jur_AbstractCharClass$LazyJavaJavaIdentifierPart[c] = jur_AbstractCharClass$LazyJavaJavaIdentifierPart__init_;
+ jur_AbstractCharClass$LazyJavaJavaIdentifierStart[c] = jur_AbstractCharClass$LazyJavaJavaIdentifierStart__init_;
+ jur_AbstractCharClass$LazyJavaLetter[c] = jur_AbstractCharClass$LazyJavaLetter__init_;
+ jur_AbstractCharClass$LazyJavaLetterOrDigit[c] = jur_AbstractCharClass$LazyJavaLetterOrDigit__init_;
+ jur_AbstractCharClass$LazyJavaSpaceChar[c] = jur_AbstractCharClass$LazyJavaSpaceChar__init_;
+ jur_AbstractCharClass$LazyJavaTitleCase[c] = jur_AbstractCharClass$LazyJavaTitleCase__init_;
+ jur_AbstractCharClass$LazyJavaUnicodeIdentifierPart[c] = jur_AbstractCharClass$LazyJavaUnicodeIdentifierPart__init_;
+ jur_AbstractCharClass$LazyJavaUnicodeIdentifierStart[c] = jur_AbstractCharClass$LazyJavaUnicodeIdentifierStart__init_;
+ jur_AbstractCharClass$LazyWord[c] = jur_AbstractCharClass$LazyWord__init_;
+ jur_AbstractCharClass$LazyNonWord[c] = jur_AbstractCharClass$LazyNonWord__init_;
+ jur_AbstractCharClass$LazyNonSpace[c] = jur_AbstractCharClass$LazyNonSpace__init_;
+ jur_AbstractCharClass$LazyNonDigit[c] = jur_AbstractCharClass$LazyNonDigit__init_;
+ jur_AbstractCharClass$LazySpecialsBlock[c] = jur_AbstractCharClass$LazySpecialsBlock__init_;
+ otciu_UnicodeHelper[c] = otciu_UnicodeHelper__init_;
+ otci_Base46[c] = otci_Base46__init_;
+ nms_TileEntitySkull[c] = nms_TileEntitySkull__init_;
+ nms_GuiIngameMenu[c] = nms_GuiIngameMenu__init_;
+ jt_DecimalFormat$MinusField[c] = jt_DecimalFormat$MinusField__init_;
+ jnc_CharacterCodingException[c] = jnc_CharacterCodingException__init_;
+ nms_RenderHelper[c] = nms_RenderHelper__init_;
+ nms_BossStatus[c] = nms_BossStatus__init_;
+ jl_ArithmeticException[c] = jl_ArithmeticException__init_;
+ nms_AchievementMap[c] = nms_AchievementMap__init_;
+ ju_Objects[c] = ju_Objects__init_;
+ jm_Multiplication[c] = jm_Multiplication__init_;
+ nms_DataWatcher[c] = nms_DataWatcher__init_;
+ nms_ChunkCoordinates[c] = nms_ChunkCoordinates__init_;
+ nms_Particle[c] = nms_Particle__init_;
+ nms_Frustrum[c] = nms_Frustrum__init_;
+ nms_FoodStats[c] = nms_FoodStats__init_;
+ nms_WorldInfo[c] = nms_WorldInfo__init_;
+ nms_Scoreboard[c] = nms_Scoreboard__init_;
+ ju_Date[c] = ju_Date__init_;
+ cjj_CRC32[c] = cjj_CRC32__init_;
+ cjj_GZIPHeader[c] = cjj_GZIPHeader__init_;
+ nms_MovementInput[c] = nms_MovementInput__init_;
+ nms_Packet204ClientInfo[c] = nms_Packet204ClientInfo__init_;
+ jt_DecimalFormat$PerMillField[c] = jt_DecimalFormat$PerMillField__init_;
+ jt_DecimalFormat$CurrencyField[c] = jt_DecimalFormat$CurrencyField__init_;
+ jt_DecimalFormat$PercentField[c] = jt_DecimalFormat$PercentField__init_;
+ ju_ConcurrentModificationException[c] = ju_ConcurrentModificationException__init_;
+ jm_BitLevel[c] = jm_BitLevel__init_;
+ jm_Division[c] = jm_Division__init_;
+ jm_Elementary[c] = jm_Elementary__init_;
+ nleg_EffectPipelineFXAA[c] = nleg_EffectPipelineFXAA__init_;
+ nms_ActiveRenderInfo[c] = nms_ActiveRenderInfo__init_;
+ nms_ClippingHelperImpl[c] = nms_ClippingHelperImpl__init_;
+ nms_ClippingHelper[c] = nms_ClippingHelper__init_;
+ nms_StatCollector[c] = nms_StatCollector__init_;
+ nms_StringUtils[c] = nms_StringUtils__init_;
+ ju_Formatter[c] = ju_Formatter__init_;
+ nms_Direction[c] = nms_Direction__init_;
+ nms_Packet19EntityAction[c] = nms_Packet19EntityAction__init_;
+ ju_GregorianCalendar[c] = ju_GregorianCalendar__init_;
+ nms_TextureClock[c] = nms_TextureClock__init_;
+ nms_TextureCompass[c] = nms_TextureCompass__init_;
+ ju_LinkedList$Entry[c] = ju_LinkedList$Entry__init_;
+ nms_Facing[c] = nms_Facing__init_;
+ nms_ScoreComparator[c] = nms_ScoreComparator__init_;
+ nms_Packet0KeepAlive[c] = nms_Packet0KeepAlive__init_;
+ nms_Packet1Login[c] = nms_Packet1Login__init_;
+ nms_Packet2ClientProtocol[c] = nms_Packet2ClientProtocol__init_;
+ nms_Packet4UpdateTime[c] = nms_Packet4UpdateTime__init_;
+ nms_Packet5PlayerInventory[c] = nms_Packet5PlayerInventory__init_;
+ nms_Packet6SpawnPosition[c] = nms_Packet6SpawnPosition__init_;
+ nms_Packet7UseEntity[c] = nms_Packet7UseEntity__init_;
+ nms_Packet8UpdateHealth[c] = nms_Packet8UpdateHealth__init_;
+ nms_Packet9Respawn[c] = nms_Packet9Respawn__init_;
+ nms_Packet10Flying[c] = nms_Packet10Flying__init_;
+ nms_Packet11PlayerPosition[c] = nms_Packet11PlayerPosition__init_;
+ nms_Packet12PlayerLook[c] = nms_Packet12PlayerLook__init_;
+ nms_Packet13PlayerLookMove[c] = nms_Packet13PlayerLookMove__init_;
+ nms_Packet14BlockDig[c] = nms_Packet14BlockDig__init_;
+ nms_Packet15Place[c] = nms_Packet15Place__init_;
+ nms_Packet16BlockItemSwitch[c] = nms_Packet16BlockItemSwitch__init_;
+ nms_Packet17Sleep[c] = nms_Packet17Sleep__init_;
+ nms_Packet18Animation[c] = nms_Packet18Animation__init_;
+ nms_Packet20NamedEntitySpawn[c] = nms_Packet20NamedEntitySpawn__init_;
+ nms_Packet22Collect[c] = nms_Packet22Collect__init_;
+ nms_Packet23VehicleSpawn[c] = nms_Packet23VehicleSpawn__init_;
+ nms_Packet24MobSpawn[c] = nms_Packet24MobSpawn__init_;
+ nms_Packet25EntityPainting[c] = nms_Packet25EntityPainting__init_;
+ nms_Packet26EntityExpOrb[c] = nms_Packet26EntityExpOrb__init_;
+ nms_Packet28EntityVelocity[c] = nms_Packet28EntityVelocity__init_;
+ nms_Packet29DestroyEntity[c] = nms_Packet29DestroyEntity__init_;
+ nms_Packet30Entity[c] = nms_Packet30Entity__init_;
+ nms_Packet31RelEntityMove[c] = nms_Packet31RelEntityMove__init_;
+ nms_Packet32EntityLook[c] = nms_Packet32EntityLook__init_;
+ nms_Packet33RelEntityMoveLook[c] = nms_Packet33RelEntityMoveLook__init_;
+ nms_Packet34EntityTeleport[c] = nms_Packet34EntityTeleport__init_;
+ nms_Packet35EntityHeadRotation[c] = nms_Packet35EntityHeadRotation__init_;
+ nms_Packet38EntityStatus[c] = nms_Packet38EntityStatus__init_;
+ nms_Packet39AttachEntity[c] = nms_Packet39AttachEntity__init_;
+ nms_Packet40EntityMetadata[c] = nms_Packet40EntityMetadata__init_;
+ nms_Packet41EntityEffect[c] = nms_Packet41EntityEffect__init_;
+ nms_Packet42RemoveEntityEffect[c] = nms_Packet42RemoveEntityEffect__init_;
+ nms_Packet43Experience[c] = nms_Packet43Experience__init_;
+ nms_Packet51MapChunk[c] = nms_Packet51MapChunk__init_;
+ nms_Packet52MultiBlockChange[c] = nms_Packet52MultiBlockChange__init_;
+ nms_Packet53BlockChange[c] = nms_Packet53BlockChange__init_;
+ nms_Packet54PlayNoteBlock[c] = nms_Packet54PlayNoteBlock__init_;
+ nms_Packet55BlockDestroy[c] = nms_Packet55BlockDestroy__init_;
+ nms_Packet56MapChunks[c] = nms_Packet56MapChunks__init_;
+ nms_Packet60Explosion[c] = nms_Packet60Explosion__init_;
+ nms_Packet61DoorChange[c] = nms_Packet61DoorChange__init_;
+ nms_Packet62LevelSound[c] = nms_Packet62LevelSound__init_;
+ nms_Packet63WorldParticles[c] = nms_Packet63WorldParticles__init_;
+ nms_Packet70GameEvent[c] = nms_Packet70GameEvent__init_;
+ nms_Packet71Weather[c] = nms_Packet71Weather__init_;
+ nms_Packet100OpenWindow[c] = nms_Packet100OpenWindow__init_;
+ nms_Packet101CloseWindow[c] = nms_Packet101CloseWindow__init_;
+ nms_Packet102WindowClick[c] = nms_Packet102WindowClick__init_;
+ nms_Packet103SetSlot[c] = nms_Packet103SetSlot__init_;
+ nms_Packet104WindowItems[c] = nms_Packet104WindowItems__init_;
+ nms_Packet105UpdateProgressbar[c] = nms_Packet105UpdateProgressbar__init_;
+ nms_Packet106Transaction[c] = nms_Packet106Transaction__init_;
+ nms_Packet107CreativeSetSlot[c] = nms_Packet107CreativeSetSlot__init_;
+ nms_Packet108EnchantItem[c] = nms_Packet108EnchantItem__init_;
+ nms_Packet130UpdateSign[c] = nms_Packet130UpdateSign__init_;
+ nms_Packet131MapData[c] = nms_Packet131MapData__init_;
+ nms_Packet132TileEntityData[c] = nms_Packet132TileEntityData__init_;
+ nms_Packet200Statistic[c] = nms_Packet200Statistic__init_;
+ nms_Packet201PlayerInfo[c] = nms_Packet201PlayerInfo__init_;
+ nms_Packet202PlayerAbilities[c] = nms_Packet202PlayerAbilities__init_;
+ nms_Packet203AutoComplete[c] = nms_Packet203AutoComplete__init_;
+ nms_Packet205ClientCommand[c] = nms_Packet205ClientCommand__init_;
+ nms_Packet206SetObjective[c] = nms_Packet206SetObjective__init_;
+ nms_Packet207SetScore[c] = nms_Packet207SetScore__init_;
+ nms_Packet208SetDisplayObjective[c] = nms_Packet208SetDisplayObjective__init_;
+ nms_Packet209SetPlayerTeam[c] = nms_Packet209SetPlayerTeam__init_;
+ nms_Packet250CustomPayload[c] = nms_Packet250CustomPayload__init_;
+ nms_Packet252SharedKey[c] = nms_Packet252SharedKey__init_;
+ nms_Packet253ServerAuthData[c] = nms_Packet253ServerAuthData__init_;
+ nms_Packet254ServerPing[c] = nms_Packet254ServerPing__init_;
+ nms_Packet255KickDisconnect[c] = nms_Packet255KickDisconnect__init_;
+ otcit_DateTimeZoneProvider[c] = otcit_DateTimeZoneProvider__init_;
+ ju_PriorityQueue[c] = ju_PriorityQueue__init_;
+ otcit_DateTimeZoneProvider$1[c] = otcit_DateTimeZoneProvider$1__init_;
+ otcit_DateTimeZoneProvider$detectTimezone$lambda$_5_0[c] = otcit_DateTimeZoneProvider$detectTimezone$lambda$_5_0__init_;
+ ju_NoSuchElementException[c] = ju_NoSuchElementException__init_;
+ nms_TileEntityRenderer[c] = nms_TileEntityRenderer__init_;
+ nms_MinecraftError[c] = nms_MinecraftError__init_;
+ jm_Conversion[c] = jm_Conversion__init_;
+ jl_AbstractStringBuilder$Constants[c] = jl_AbstractStringBuilder$Constants__init_;
+ otcit_DoubleAnalyzer[c] = otcit_DoubleAnalyzer__init_;
+ otcit_DoubleAnalyzer$Result[c] = otcit_DoubleAnalyzer$Result__init_;
+ nms_TileEntitySignRenderer[c] = nms_TileEntitySignRenderer__init_;
+ nms_TileEntityPiston[c] = nms_TileEntityPiston__init_;
+ nms_TileEntityRendererPiston[c] = nms_TileEntityRendererPiston__init_;
+ nms_TileEntityChest[c] = nms_TileEntityChest__init_;
+ nms_TileEntityChestRenderer[c] = nms_TileEntityChestRenderer__init_;
+ nms_TileEntityEnderChest[c] = nms_TileEntityEnderChest__init_;
+ nms_TileEntityEnderChestRenderer[c] = nms_TileEntityEnderChestRenderer__init_;
+ nms_TileEntityEnchantmentTable[c] = nms_TileEntityEnchantmentTable__init_;
+ nms_RenderEnchantmentTable[c] = nms_RenderEnchantmentTable__init_;
+ nms_TileEntityEndPortal[c] = nms_TileEntityEndPortal__init_;
+ nms_RenderEndPortal[c] = nms_RenderEndPortal__init_;
+ nms_TileEntityBeacon[c] = nms_TileEntityBeacon__init_;
+ nms_TileEntityBeaconRenderer[c] = nms_TileEntityBeaconRenderer__init_;
+ nms_TileEntitySkullRenderer[c] = nms_TileEntitySkullRenderer__init_;
+ otcit_FloatAnalyzer$Result[c] = otcit_FloatAnalyzer$Result__init_;
+ nms_ModelSign[c] = nms_ModelSign__init_;
+ nms_ModelChest[c] = nms_ModelChest__init_;
+ nms_ModelLargeChest[c] = nms_ModelLargeChest__init_;
+ nms_ModelBook[c] = nms_ModelBook__init_;
+ jnc_BufferUnderflowException[c] = jnc_BufferUnderflowException__init_;
+ jnc_BufferOverflowException[c] = jnc_BufferOverflowException__init_;
+ nms_ChestItemRenderHelper[c] = nms_ChestItemRenderHelper__init_;
+ jl_StrictMath[c] = jl_StrictMath__init_;
+ ju_FormatterClosedException[c] = ju_FormatterClosedException__init_;
+ otcit_FloatAnalyzer[c] = otcit_FloatAnalyzer__init_;
+ nms_TileEntityFurnace[c] = nms_TileEntityFurnace__init_;
+ nms_TileEntityRecordPlayer[c] = nms_TileEntityRecordPlayer__init_;
+ nms_TileEntityDispenser[c] = nms_TileEntityDispenser__init_;
+ nms_TileEntityDropper[c] = nms_TileEntityDropper__init_;
+ nms_TileEntityMobSpawner[c] = nms_TileEntityMobSpawner__init_;
+ nms_TileEntityNote[c] = nms_TileEntityNote__init_;
+ nms_TileEntityBrewingStand[c] = nms_TileEntityBrewingStand__init_;
+ nms_TileEntityCommandBlock[c] = nms_TileEntityCommandBlock__init_;
+ nms_TileEntityDaylightDetector[c] = nms_TileEntityDaylightDetector__init_;
+ nms_TileEntityHopper[c] = nms_TileEntityHopper__init_;
+ nms_TileEntityComparator[c] = nms_TileEntityComparator__init_;
+ ju_IllegalFormatException[c] = ju_IllegalFormatException__init_;
+ otcit_DateTimeZoneBuilder[c] = otcit_DateTimeZoneBuilder__init_;
+ nms_MapStorage[c] = nms_MapStorage__init_;
+ nms_EnchantmentHelper[c] = nms_EnchantmentHelper__init_;
+ nms_EnchantmentModifierDamage[c] = nms_EnchantmentModifierDamage__init_;
+ nms_EnchantmentModifierLiving[c] = nms_EnchantmentModifierLiving__init_;
+ nlea_EaglerAdapterImpl2$14[c] = nlea_EaglerAdapterImpl2$14__init_;
+ nms_EnumOptionsHelper[c] = nms_EnumOptionsHelper__init_;
+ nms_PacketCount[c] = nms_PacketCount__init_;
+ jl_InstantiationException[c] = jl_InstantiationException__init_;
+ jl_ReflectiveOperationException[c] = jl_ReflectiveOperationException__init_;
+ jn_InvalidMarkException[c] = jn_InvalidMarkException__init_;
+ nms_EntityWitherAttackFilter[c] = nms_EntityWitherAttackFilter__init_;
+ nms_GameRules[c] = nms_GameRules__init_;
+ nms_GuiWinGame[c] = nms_GuiWinGame__init_;
+ nms_MerchantRecipeList[c] = nms_MerchantRecipeList__init_;
+ nms_WorldProviderSurface[c] = nms_WorldProviderSurface__init_;
+ nms_WorldProviderHell[c] = nms_WorldProviderHell__init_;
+ nms_WorldProviderEnd[c] = nms_WorldProviderEnd__init_;
+ nms_InventoryEnderChest[c] = nms_InventoryEnderChest__init_;
+ nms_InventoryCraftResult[c] = nms_InventoryCraftResult__init_;
+ nms_CraftingManager[c] = nms_CraftingManager__init_;
+ nms_LongHashMap[c] = nms_LongHashMap__init_;
+ nms_RecipesTools[c] = nms_RecipesTools__init_;
+ nms_RecipesWeapons[c] = nms_RecipesWeapons__init_;
+ nms_RecipesIngots[c] = nms_RecipesIngots__init_;
+ nms_RecipesFood[c] = nms_RecipesFood__init_;
+ nms_RecipesCrafting[c] = nms_RecipesCrafting__init_;
+ nms_RecipesArmor[c] = nms_RecipesArmor__init_;
+ nms_RecipesDyes[c] = nms_RecipesDyes__init_;
+ nms_RecipesArmorDyes[c] = nms_RecipesArmorDyes__init_;
+ nms_RecipesMapCloning[c] = nms_RecipesMapCloning__init_;
+ nms_RecipesMapExtending[c] = nms_RecipesMapExtending__init_;
+ nms_RecipeFireworks[c] = nms_RecipeFireworks__init_;
+ cjj_Deflater[c] = cjj_Deflater__init_;
+ nms_FurnaceRecipes[c] = nms_FurnaceRecipes__init_;
+ nms_EnchantmentNameParts[c] = nms_EnchantmentNameParts__init_;
+ cjj_Tree[c] = cjj_Tree__init_;
+ nms_EntitySelectorAlive[c] = nms_EntitySelectorAlive__init_;
+ nms_EntitySelectorInventory[c] = nms_EntitySelectorInventory__init_;
+ nms_Path[c] = nms_Path__init_;
+}
+function otp_Platform_newInstanceImpl(var$1) {
+ if ($rt_resuming()) {
+ var $r = $rt_nativeThread().pop();
+ var$1.$$constructor$$($r);
+ if ($rt_suspending()) {
+ return $rt_nativeThread().push($r);
+ }
+ return $r;
+ }
+ if (!var$1.hasOwnProperty('$$constructor$$')) {
+ return null;
+ }
+ var $r = new var$1();
+ var$1.$$constructor$$($r);
+ if ($rt_suspending()) {
+ return $rt_nativeThread().push($r);
+ }
+ return $r;
+}
+function otp_Platform_launchThread($runnable) {
+ $runnable.$run();
+}
+function otp_Platform_schedule(var$1, var$2) {
+ return setTimeout(function() {
+ otp_Platform_launchThread(var$1);
+ }, var$2);
+}
+function otp_Platform_getName($cls) {
+ return $rt_str($cls.$meta.name);
+}
+function otp_Platform_createQueueJs$js_body$_30() {
+ return [];
+}
+function ji_Serializable() {
+}
+function jl_Comparable() {
+}
+function jl_CharSequence() {
+}
+function jl_String() {
+ var a = this; jl_Object.call(a);
+ a.$characters = null;
+ a.$hashCode = 0;
+}
+var jl_String_CASE_INSENSITIVE_ORDER = null;
+function jl_String__init_2() {
+ var var_0 = new jl_String();
+ jl_String__init_1(var_0);
+ return var_0;
+}
+function jl_String__init_(var_0) {
+ var var_1 = new jl_String();
+ jl_String__init_3(var_1, var_0);
+ return var_1;
+}
+function jl_String__init_0(var_0, var_1, var_2) {
+ var var_3 = new jl_String();
+ jl_String__init_4(var_3, var_0, var_1, var_2);
+ return var_3;
+}
+function jl_String__init_5(var_0, var_1) {
+ var var_2 = new jl_String();
+ jl_String__init_6(var_2, var_0, var_1);
+ return var_2;
+}
+function jl_String__init_7(var_0, var_1, var_2) {
+ var var_3 = new jl_String();
+ jl_String__init_8(var_3, var_0, var_1, var_2);
+ return var_3;
+}
+function jl_String__init_1($this) {
+ $this.$characters = $rt_createCharArray(0);
+}
+function jl_String__init_3($this, $characters) {
+ var var$2, $i;
+ $characters = $characters.data;
+ var$2 = $characters.length;
+ $this.$characters = $rt_createCharArray(var$2);
+ $i = 0;
+ while ($i < var$2) {
+ $this.$characters.data[$i] = $characters[$i];
+ $i = $i + 1 | 0;
+ }
+}
+function jl_String__init_4($this, $value, $offset, $count) {
+ var $i, var$5;
+ $this.$characters = $rt_createCharArray($count);
+ $i = 0;
+ while ($i < $count) {
+ var$5 = $value.data;
+ $this.$characters.data[$i] = var$5[$i + $offset | 0];
+ $i = $i + 1 | 0;
+ }
+}
+function jl_String__init_6($this, $bytes, $charset) {
+ jl_String_initWithBytes($this, $bytes, 0, $bytes.data.length, $charset);
+}
+function jl_String__init_8($this, $codePoints, $offset, $count) {
+ var $charCount, $i, var$6, var$7, $codePoint, var$9, var$10;
+ $this.$characters = $rt_createCharArray($count * 2 | 0);
+ $charCount = 0;
+ $i = 0;
+ while ($i < $count) {
+ var$6 = $codePoints.data;
+ var$7 = $offset + 1 | 0;
+ $codePoint = var$6[$offset];
+ if ($codePoint < 65536) {
+ var$6 = $this.$characters.data;
+ var$9 = $charCount + 1 | 0;
+ var$6[$charCount] = $codePoint & 65535;
+ } else {
+ var$6 = $this.$characters.data;
+ var$10 = $charCount + 1 | 0;
+ var$6[$charCount] = (55296 | ($codePoint - 65536 | 0) >> 10 & 1023) & 65535;
+ var$6 = $this.$characters.data;
+ var$9 = var$10 + 1 | 0;
+ var$6[var$10] = (56320 | $codePoint & 1023) & 65535;
+ }
+ $i = $i + 1 | 0;
+ $offset = var$7;
+ $charCount = var$9;
+ }
+ if ($charCount < $this.$characters.data.length)
+ $this.$characters = ju_Arrays_copyOf($this.$characters, $charCount);
+}
+function jl_String_initWithBytes($this, $bytes, $offset, $length, $charset) {
+ var var$5, $buffer, var$7, var$8;
+ var$5 = $bytes.data;
+ $buffer = new jn_ByteBufferImpl;
+ var$7 = var$5.length;
+ var$8 = $offset + $length | 0;
+ $buffer.$mark = (-1);
+ $buffer.$capacity = var$7;
+ $buffer.$limit = var$7;
+ $buffer.$order = jn_ByteOrder_BIG_ENDIAN;
+ $buffer.$start = 0;
+ $buffer.$array = $bytes;
+ $buffer.$position = $offset;
+ $buffer.$limit = var$8;
+ $buffer.$direct = 0;
+ $buffer.$readOnly = 0;
+ $buffer = jnc_Charset_decode($charset, $buffer);
+ if (!$buffer.$position && $buffer.$limit == $buffer.$capacity)
+ $this.$characters = $buffer.$array0;
+ else {
+ $this.$characters = $rt_createCharArray($buffer.$limit - $buffer.$position | 0);
+ $bytes = $this.$characters;
+ jn_CharBuffer_get($buffer, $bytes, 0, $bytes.data.length);
+ }
+}
+function jl_String_charAt($this, $index) {
+ var var$2;
+ if ($index >= 0 && $index < $this.$characters.data.length)
+ return $this.$characters.data[$index];
+ var$2 = new jl_StringIndexOutOfBoundsException;
+ var$2.$suppressionEnabled = 1;
+ var$2.$writableStackTrace = 1;
+ $rt_throw(var$2);
+}
+function jl_String_length($this) {
+ return $this.$characters.data.length;
+}
+function jl_String_isEmpty($this) {
+ return $this.$characters.data.length ? 0 : 1;
+}
+function jl_String_compareTo($this, $anotherString) {
+ var $l, $l_0, $i, $a;
+ if ($this === $anotherString)
+ return 0;
+ $l = $this.$characters.data.length;
+ $l_0 = $anotherString.$characters.data.length;
+ if ($l < $l_0)
+ $l_0 = $l;
+ $i = 0;
+ while (true) {
+ if ($i >= $l_0)
+ return $this.$characters.data.length - $anotherString.$characters.data.length | 0;
+ $a = jl_String_charAt($this, $i) - jl_String_charAt($anotherString, $i) | 0;
+ if ($a)
+ break;
+ $i = $i + 1 | 0;
+ }
+ return $a;
+}
+function jl_String_startsWith($this, $prefix, $toffset) {
+ var $i, var$4, var$5;
+ if (($toffset + $prefix.$characters.data.length | 0) > $this.$characters.data.length)
+ return 0;
+ $i = 0;
+ while ($i < $prefix.$characters.data.length) {
+ var$4 = jl_String_charAt($prefix, $i);
+ var$5 = $toffset + 1 | 0;
+ if (var$4 != jl_String_charAt($this, $toffset))
+ return 0;
+ $i = $i + 1 | 0;
+ $toffset = var$5;
+ }
+ return 1;
+}
+function jl_String_startsWith0($this, $prefix) {
+ if ($this === $prefix)
+ return 1;
+ return jl_String_startsWith($this, $prefix, 0);
+}
+function jl_String_endsWith($this, $suffix) {
+ var $j, $i, var$4, var$5;
+ if ($this === $suffix)
+ return 1;
+ if ($suffix.$characters.data.length > $this.$characters.data.length)
+ return 0;
+ $j = 0;
+ $i = $this.$characters.data.length - $suffix.$characters.data.length | 0;
+ while ($i < $this.$characters.data.length) {
+ var$4 = jl_String_charAt($this, $i);
+ var$5 = $j + 1 | 0;
+ if (var$4 != jl_String_charAt($suffix, $j))
+ return 0;
+ $i = $i + 1 | 0;
+ $j = var$5;
+ }
+ return 1;
+}
+function jl_String_indexOf($this, $ch, $i) {
+ var $bmpChar, $hi, $lo;
+ if (0 > $i)
+ $i = 0;
+ if ($ch < 65536) {
+ $bmpChar = $ch & 65535;
+ while (true) {
+ if ($i >= $this.$characters.data.length)
+ return (-1);
+ if ($this.$characters.data[$i] == $bmpChar)
+ break;
+ $i = $i + 1 | 0;
+ }
+ return $i;
+ }
+ $hi = (55296 | ($ch - 65536 | 0) >> 10 & 1023) & 65535;
+ $lo = (56320 | $ch & 1023) & 65535;
+ while (true) {
+ if ($i >= ($this.$characters.data.length - 1 | 0))
+ return (-1);
+ if ($this.$characters.data[$i] == $hi && $this.$characters.data[$i + 1 | 0] == $lo)
+ break;
+ $i = $i + 1 | 0;
+ }
+ return $i;
+}
+function jl_String_indexOf0($this, $ch) {
+ return jl_String_indexOf($this, $ch, 0);
+}
+function jl_String_lastIndexOf($this, $ch, $fromIndex) {
+ var $i, $bmpChar, $hi, $lo, var$7;
+ $i = $this.$characters.data.length - 1 | 0;
+ if ($fromIndex < $i)
+ $i = $fromIndex;
+ if ($ch < 65536) {
+ $bmpChar = $ch & 65535;
+ while (true) {
+ if ($i < 0)
+ return (-1);
+ if ($this.$characters.data[$i] == $bmpChar)
+ break;
+ $i = $i + (-1) | 0;
+ }
+ return $i;
+ }
+ $hi = (55296 | ($ch - 65536 | 0) >> 10 & 1023) & 65535;
+ $lo = (56320 | $ch & 1023) & 65535;
+ while (true) {
+ if ($i < 1)
+ return (-1);
+ if ($this.$characters.data[$i] == $lo) {
+ var$7 = $this.$characters.data;
+ $ch = $i - 1 | 0;
+ if (var$7[$ch] == $hi)
+ break;
+ }
+ $i = $i + (-1) | 0;
+ }
+ return $ch;
+}
+function jl_String_lastIndexOf0($this, $ch) {
+ return jl_String_lastIndexOf($this, $ch, $this.$characters.data.length - 1 | 0);
+}
+function jl_String_indexOf1($this, $str, $i) {
+ var $toIndex, $j;
+ if (0 > $i)
+ $i = 0;
+ $toIndex = $this.$characters.data.length - $str.$characters.data.length | 0;
+ a: while (true) {
+ if ($i > $toIndex)
+ return (-1);
+ $j = 0;
+ while (true) {
+ if ($j >= $str.$characters.data.length)
+ break a;
+ if (jl_String_charAt($this, $i + $j | 0) != jl_String_charAt($str, $j))
+ break;
+ $j = $j + 1 | 0;
+ }
+ $i = $i + 1 | 0;
+ }
+ return $i;
+}
+function jl_String_indexOf2($this, $str) {
+ return jl_String_indexOf1($this, $str, 0);
+}
+function jl_String_lastIndexOf1($this, $str, $fromIndex) {
+ var $i, $j;
+ $i = $this.$characters.data.length - $str.$characters.data.length | 0;
+ if ($fromIndex < $i)
+ $i = $fromIndex;
+ a: while (true) {
+ if ($i < 0)
+ return (-1);
+ $j = 0;
+ while (true) {
+ if ($j >= $str.$characters.data.length)
+ break a;
+ if (jl_String_charAt($this, $i + $j | 0) != jl_String_charAt($str, $j))
+ break;
+ $j = $j + 1 | 0;
+ }
+ $i = $i + (-1) | 0;
+ }
+ return $i;
+}
+function jl_String_lastIndexOf2($this, $str) {
+ return jl_String_lastIndexOf1($this, $str, $this.$characters.data.length);
+}
+function jl_String_substring0($this, $beginIndex, $endIndex) {
+ var var$3;
+ if ($beginIndex <= $endIndex)
+ return jl_String__init_0($this.$characters, $beginIndex, $endIndex - $beginIndex | 0);
+ var$3 = new jl_IndexOutOfBoundsException;
+ var$3.$suppressionEnabled = 1;
+ var$3.$writableStackTrace = 1;
+ $rt_throw(var$3);
+}
+function jl_String_substring($this, $beginIndex) {
+ var var$2, var$3;
+ var$2 = $this.$characters.data.length;
+ if ($beginIndex <= var$2)
+ return jl_String__init_0($this.$characters, $beginIndex, var$2 - $beginIndex | 0);
+ var$3 = new jl_IndexOutOfBoundsException;
+ var$3.$suppressionEnabled = 1;
+ var$3.$writableStackTrace = 1;
+ $rt_throw(var$3);
+}
+function jl_String_subSequence($this, $beginIndex, $endIndex) {
+ var var$3;
+ if ($beginIndex <= $endIndex)
+ return jl_String__init_0($this.$characters, $beginIndex, $endIndex - $beginIndex | 0);
+ var$3 = new jl_IndexOutOfBoundsException;
+ var$3.$suppressionEnabled = 1;
+ var$3.$writableStackTrace = 1;
+ $rt_throw(var$3);
+}
+function jl_String_replace($this, $oldChar, $newChar) {
+ var $buffer, var$4, $i;
+ if ($oldChar == $newChar)
+ return $this;
+ $buffer = $rt_createCharArray($this.$characters.data.length);
+ var$4 = $buffer.data;
+ $i = 0;
+ while ($i < $this.$characters.data.length) {
+ var$4[$i] = jl_String_charAt($this, $i) != $oldChar ? jl_String_charAt($this, $i) : $newChar;
+ $i = $i + 1 | 0;
+ }
+ return jl_String__init_($buffer);
+}
+function jl_String_contains($this, $s) {
+ var $sz, $i, $j;
+ $sz = $this.$characters.data.length - $s.$characters.data.length | 0;
+ $i = 0;
+ while ($i <= $sz) {
+ $j = 0;
+ while (true) {
+ if ($j >= $s.$characters.data.length)
+ return 1;
+ if (jl_String_charAt($this, $i + $j | 0) != jl_String_charAt($s, $j))
+ break;
+ $j = $j + 1 | 0;
+ }
+ $i = $i + 1 | 0;
+ }
+ return 0;
+}
+function jl_String_replace0($this, $target, $replacement) {
+ var $sb, $sz, $i, $j, var$7;
+ $sb = new jl_StringBuilder;
+ $sb.$buffer = $rt_createCharArray(16);
+ $sz = $this.$characters.data.length - $target.$characters.data.length | 0;
+ $i = 0;
+ while ($i <= $sz) {
+ $j = 0;
+ a: {
+ while (true) {
+ if ($j >= $target.$characters.data.length) {
+ jl_AbstractStringBuilder_insert($sb, $sb.$length, $replacement === null ? $rt_s(47) : $replacement);
+ $i = $i + ($target.$characters.data.length - 1 | 0) | 0;
+ break a;
+ }
+ if (jl_String_charAt($this, $i + $j | 0) != jl_String_charAt($target, $j))
+ break;
+ $j = $j + 1 | 0;
+ }
+ $j = jl_String_charAt($this, $i);
+ var$7 = $sb.$length;
+ jl_AbstractStringBuilder_insertSpace($sb, var$7, var$7 + 1 | 0);
+ $sb.$buffer.data[var$7] = $j;
+ }
+ $i = $i + 1 | 0;
+ }
+ $j = $this.$characters.data.length;
+ if ($i > $j) {
+ $target = new jl_IndexOutOfBoundsException;
+ $target.$suppressionEnabled = 1;
+ $target.$writableStackTrace = 1;
+ $rt_throw($target);
+ }
+ $target = jl_String__init_0($this.$characters, $i, $j - $i | 0);
+ jl_AbstractStringBuilder_insert($sb, $sb.$length, $target);
+ return jl_String__init_0($sb.$buffer, 0, $sb.$length);
+}
+function jl_String_trim($this) {
+ var $lower, $upper, var$3, var$4;
+ $lower = 0;
+ $upper = $this.$characters.data.length - 1 | 0;
+ a: {
+ while ($lower <= $upper) {
+ if (jl_String_charAt($this, $lower) > 32)
+ break a;
+ $lower = $lower + 1 | 0;
+ }
+ }
+ while ($lower <= $upper && jl_String_charAt($this, $upper) <= 32) {
+ $upper = $upper + (-1) | 0;
+ }
+ var$3 = $upper + 1 | 0;
+ if ($lower <= var$3)
+ return jl_String__init_0($this.$characters, $lower, var$3 - $lower | 0);
+ var$4 = new jl_IndexOutOfBoundsException;
+ var$4.$suppressionEnabled = 1;
+ var$4.$writableStackTrace = 1;
+ $rt_throw(var$4);
+}
+function jl_String_toString($this) {
+ return $this;
+}
+function jl_String_toCharArray($this) {
+ var $array, var$2, $i, var$4;
+ $array = $rt_createCharArray($this.$characters.data.length);
+ var$2 = $array.data;
+ $i = 0;
+ var$4 = var$2.length;
+ while ($i < var$4) {
+ var$2[$i] = $this.$characters.data[$i];
+ $i = $i + 1 | 0;
+ }
+ return $array;
+}
+function jl_String_valueOf($c) {
+ var var$2, var$3;
+ var$2 = new jl_String;
+ var$3 = $rt_createCharArray(1);
+ var$3.data[0] = $c;
+ jl_String__init_3(var$2, var$3);
+ return var$2;
+}
+function jl_String_equals($this, $other) {
+ var $str, $i;
+ if ($this === $other)
+ return 1;
+ if (!($other instanceof jl_String))
+ return 0;
+ $str = $other;
+ if ($str.$characters.data.length != $this.$characters.data.length)
+ return 0;
+ $i = 0;
+ while ($i < $str.$characters.data.length) {
+ if (jl_String_charAt($this, $i) != jl_String_charAt($str, $i))
+ return 0;
+ $i = $i + 1 | 0;
+ }
+ return 1;
+}
+function jl_String_equalsIgnoreCase($this, $other) {
+ var $i;
+ if ($this === $other)
+ return 1;
+ if ($other === null)
+ return 0;
+ if ($this.$characters.data.length != $other.$characters.data.length)
+ return 0;
+ $i = 0;
+ while ($i < $this.$characters.data.length) {
+ if (((String.fromCharCode(jl_String_charAt($this, $i))).toLowerCase().charCodeAt(0) & 65535) != ((String.fromCharCode(jl_String_charAt($other, $i))).toLowerCase().charCodeAt(0) & 65535))
+ return 0;
+ $i = $i + 1 | 0;
+ }
+ return 1;
+}
+function jl_String_getBytes($this) {
+ var var$1;
+ var$1 = new jnci_UTF8Charset;
+ jnc_Charset__init_(var$1, $rt_s(2), $rt_createArray(jl_String, 0));
+ return jl_String_getBytes0($this, var$1);
+}
+function jl_String_getBytes0($this, $charset) {
+ var $result, var$3, $buffer, var$5;
+ $result = $this.$characters;
+ var$3 = $result.data.length;
+ $buffer = new jn_CharBufferOverArray;
+ var$5 = 0 + var$3 | 0;
+ $buffer.$mark = (-1);
+ $buffer.$capacity = var$3;
+ $buffer.$limit = var$3;
+ $buffer.$position = 0;
+ $buffer.$limit = var$5;
+ $buffer.$start0 = 0;
+ $buffer.$readOnly0 = 0;
+ $buffer.$array0 = $result;
+ $buffer = jnc_Charset_encode($charset, $buffer);
+ if (!$buffer.$position && $buffer.$limit == $buffer.$capacity)
+ return $buffer.$array;
+ $result = $rt_createByteArray($buffer.$limit - $buffer.$position | 0);
+ jn_ByteBuffer_get($buffer, $result, 0, $result.data.length);
+ return $result;
+}
+function jl_String_hashCode($this) {
+ var var$1, var$2, var$3, $c;
+ a: {
+ if (!$this.$hashCode) {
+ var$1 = $this.$characters.data;
+ var$2 = var$1.length;
+ var$3 = 0;
+ while (true) {
+ if (var$3 >= var$2)
+ break a;
+ $c = var$1[var$3];
+ $this.$hashCode = (31 * $this.$hashCode | 0) + $c | 0;
+ var$3 = var$3 + 1 | 0;
+ }
+ }
+ }
+ return $this.$hashCode;
+}
+function jl_String_toLowerCase($this) {
+ var $codePoints, var$2, $codePointCount, $i, var$5, var$6, var$7;
+ if ($this.$characters.data.length ? 0 : 1)
+ return $this;
+ $codePoints = $rt_createIntArray($this.$characters.data.length);
+ var$2 = $codePoints.data;
+ $codePointCount = 0;
+ $i = 0;
+ while ($i < $this.$characters.data.length) {
+ a: {
+ if ($i != ($this.$characters.data.length - 1 | 0) && (($this.$characters.data[$i] & 64512) != 55296 ? 0 : 1)) {
+ var$5 = $this.$characters.data;
+ var$6 = $i + 1 | 0;
+ if ((var$5[var$6] & 64512) != 56320 ? 0 : 1) {
+ var$7 = $codePointCount + 1 | 0;
+ var$2[$codePointCount] = (String.fromCharCode((($this.$characters.data[$i] & 1023) << 10 | $this.$characters.data[var$6] & 1023) + 65536 | 0)).toLowerCase().charCodeAt(0);
+ $i = var$6;
+ break a;
+ }
+ }
+ var$7 = $codePointCount + 1 | 0;
+ var$2[$codePointCount] = (String.fromCharCode($this.$characters.data[$i])).toLowerCase().charCodeAt(0) & 65535;
+ }
+ $i = $i + 1 | 0;
+ $codePointCount = var$7;
+ }
+ return jl_String__init_7($codePoints, 0, $codePointCount);
+}
+function jl_String_toUpperCase($this) {
+ var $codePoints, var$2, $codePointCount, $i, var$5, var$6, var$7;
+ if ($this.$characters.data.length ? 0 : 1)
+ return $this;
+ $codePoints = $rt_createIntArray($this.$characters.data.length);
+ var$2 = $codePoints.data;
+ $codePointCount = 0;
+ $i = 0;
+ while ($i < $this.$characters.data.length) {
+ a: {
+ if ($i != ($this.$characters.data.length - 1 | 0) && (($this.$characters.data[$i] & 64512) != 55296 ? 0 : 1)) {
+ var$5 = $this.$characters.data;
+ var$6 = $i + 1 | 0;
+ if ((var$5[var$6] & 64512) != 56320 ? 0 : 1) {
+ var$7 = $codePointCount + 1 | 0;
+ var$2[$codePointCount] = (String.fromCharCode((($this.$characters.data[$i] & 1023) << 10 | $this.$characters.data[var$6] & 1023) + 65536 | 0)).toUpperCase().charCodeAt(0);
+ $i = var$6;
+ break a;
+ }
+ }
+ var$7 = $codePointCount + 1 | 0;
+ var$2[$codePointCount] = (String.fromCharCode($this.$characters.data[$i])).toUpperCase().charCodeAt(0) & 65535;
+ }
+ $i = $i + 1 | 0;
+ $codePointCount = var$7;
+ }
+ return jl_String__init_7($codePoints, 0, $codePointCount);
+}
+function jl_String_split($this, $regex) {
+ return jur_Pattern_split(jur_Pattern_compile($regex, 0), $this, 0);
+}
+function jl_String_split0($this, $regex, $limit) {
+ return jur_Pattern_split(jur_Pattern_compile($regex, 0), $this, $limit);
+}
+function jl_String_replaceAll($this, $regex, $replacement) {
+ return jur_Matcher_replaceAll(jur_Matcher__init_(jur_Pattern_compile($regex, 0), $this), $replacement);
+}
+function jl_String_format($format, $args) {
+ var var$3, var$4, var$5;
+ var$3 = new ju_Formatter;
+ var$4 = ju_Locale_defaultLocale;
+ var$5 = new jl_StringBuilder;
+ var$5.$buffer = $rt_createCharArray(16);
+ var$3.$out0 = var$5;
+ var$3.$locale = var$4;
+ return ju_Formatter_toString(ju_Formatter_format(var$3, var$3.$locale, $format, $args));
+}
+function jl_String_compareTo0($this, var$1) {
+ return jl_String_compareTo($this, var$1);
+}
+function jl_String__clinit_() {
+ jl_String_CASE_INSENSITIVE_ORDER = new jl_String$_clinit_$lambda$_81_0;
+}
+function jl_Throwable() {
+ var a = this; jl_Object.call(a);
+ a.$message = null;
+ a.$cause = null;
+ a.$suppressionEnabled = 0;
+ a.$writableStackTrace = 0;
+ a.$stackTrace = null;
+}
+function jl_Throwable__init_0() {
+ var var_0 = new jl_Throwable();
+ jl_Throwable__init_(var_0);
+ return var_0;
+}
+function jl_Throwable__init_1(var_0) {
+ var var_1 = new jl_Throwable();
+ jl_Throwable__init_2(var_1, var_0);
+ return var_1;
+}
+function jl_Throwable__init_($this) {
+ $this.$suppressionEnabled = 1;
+ $this.$writableStackTrace = 1;
+}
+function jl_Throwable__init_2($this, $message) {
+ $this.$suppressionEnabled = 1;
+ $this.$writableStackTrace = 1;
+ $this.$message = $message;
+}
+function jl_Throwable_fillInStackTrace($this) {
+ return $this;
+}
+function jl_Throwable_getMessage($this) {
+ return $this.$message;
+}
+function jl_Throwable_getLocalizedMessage($this) {
+ return $this.$getMessage();
+}
+function jl_Throwable_toString($this) {
+ var $message, var$2, var$3, var$4;
+ $message = $this.$getMessage();
+ var$2 = new jl_StringBuilder;
+ var$2.$buffer = $rt_createCharArray(16);
+ var$3 = jl_Class_getClass($this.constructor);
+ if (var$3.$name === null)
+ var$3.$name = $rt_str(var$3.$platformClass.$meta.name);
+ var$4 = var$3.$name;
+ jl_AbstractStringBuilder_insert(var$2, var$2.$length, var$4);
+ if ($message === null)
+ $message = $rt_s(44);
+ else {
+ var$4 = new jl_StringBuilder;
+ var$4.$buffer = $rt_createCharArray(16);
+ jl_AbstractStringBuilder_insert(var$4, var$4.$length, $rt_s(48));
+ jl_AbstractStringBuilder_insert(var$4, var$4.$length, $message);
+ $message = jl_String__init_0(var$4.$buffer, 0, var$4.$length);
+ }
+ jl_AbstractStringBuilder_insert(var$2, var$2.$length, $message);
+ return jl_String__init_0(var$2.$buffer, 0, var$2.$length);
+}
+function jl_Throwable_printStackTrace($this) {
+ var var$1, var$2;
+ if (jl_System_errCache === null) {
+ var$1 = new ji_PrintStream;
+ var$1.$out = new jl_ConsoleOutputStreamStderr;
+ var$2 = new jl_StringBuilder;
+ var$2.$buffer = $rt_createCharArray(16);
+ var$1.$sb = var$2;
+ var$1.$buffer0 = $rt_createCharArray(32);
+ var$1.$autoFlush = 0;
+ var$2 = new jnci_UTF8Charset;
+ jnc_Charset__init_(var$2, $rt_s(2), $rt_createArray(jl_String, 0));
+ var$1.$charset = var$2;
+ jl_System_errCache = var$1;
+ }
+ jl_Throwable_printStackTrace0($this, jl_System_errCache);
+}
+function jl_Throwable_printStackTrace0($this, $stream) {
+ var $message, var$3, $element, var$5, var$6, var$7;
+ $message = jl_Class_getClass($this.constructor);
+ if ($message.$name === null)
+ $message.$name = $rt_str($message.$platformClass.$meta.name);
+ var$3 = $message.$name;
+ $element = $stream.$sb;
+ jl_AbstractStringBuilder_insert($element, $element.$length, var$3);
+ ji_PrintStream_printSB($stream);
+ $message = $this.$getMessage();
+ if ($message !== null) {
+ $element = new jl_StringBuilder;
+ $element.$buffer = $rt_createCharArray(16);
+ jl_AbstractStringBuilder_insert($element, $element.$length, $rt_s(48));
+ jl_AbstractStringBuilder_insert($element, $element.$length, $message);
+ var$3 = jl_String__init_0($element.$buffer, 0, $element.$length);
+ $element = $stream.$sb;
+ jl_AbstractStringBuilder_insert($element, $element.$length, var$3);
+ ji_PrintStream_printSB($stream);
+ }
+ a: {
+ $stream.$buffer0.data[0] = 10;
+ ji_PrintStream_print($stream, $stream.$buffer0, 0, 1);
+ if ($this.$stackTrace !== null) {
+ var$5 = $this.$stackTrace.data;
+ var$6 = var$5.length;
+ var$7 = 0;
+ while (true) {
+ if (var$7 >= var$6)
+ break a;
+ $element = var$5[var$7];
+ $message = $stream.$sb;
+ jl_AbstractStringBuilder_insert($message, $message.$length, $rt_s(49));
+ ji_PrintStream_printSB($stream);
+ ji_PrintStream_println($stream, $element);
+ var$7 = var$7 + 1 | 0;
+ }
+ }
+ }
+ if ($this.$cause !== null && $this.$cause !== $this) {
+ var$3 = $stream.$sb;
+ jl_AbstractStringBuilder_insert(var$3, var$3.$length, $rt_s(50));
+ ji_PrintStream_printSB($stream);
+ jl_Throwable_printStackTrace0($this.$cause, $stream);
+ }
+}
+function jl_Error() {
+ jl_Throwable.call(this);
+}
+function jl_Error__init_0() {
+ var var_0 = new jl_Error();
+ jl_Error__init_(var_0);
+ return var_0;
+}
+function jl_Error__init_1(var_0) {
+ var var_1 = new jl_Error();
+ jl_Error__init_2(var_1, var_0);
+ return var_1;
+}
+function jl_Error__init_($this) {
+ $this.$suppressionEnabled = 1;
+ $this.$writableStackTrace = 1;
+}
+function jl_Error__init_2($this, $cause) {
+ $this.$suppressionEnabled = 1;
+ $this.$writableStackTrace = 1;
+ $this.$cause = $cause;
+}
+function jl_LinkageError() {
+ jl_Error.call(this);
+}
+function jl_LinkageError__init_0() {
+ var var_0 = new jl_LinkageError();
+ jl_LinkageError__init_(var_0);
+ return var_0;
+}
+function jl_LinkageError__init_($this) {
+ $this.$suppressionEnabled = 1;
+ $this.$writableStackTrace = 1;
+}
+function jl_NoClassDefFoundError() {
+ jl_LinkageError.call(this);
+}
+function jl_NoClassDefFoundError__init_0() {
+ var var_0 = new jl_NoClassDefFoundError();
+ jl_NoClassDefFoundError__init_(var_0);
+ return var_0;
+}
+function jl_NoClassDefFoundError__init_($this) {
+ $this.$suppressionEnabled = 1;
+ $this.$writableStackTrace = 1;
+}
+function jl_AbstractStringBuilder() {
+ var a = this; jl_Object.call(a);
+ a.$buffer = null;
+ a.$length = 0;
+}
+function jl_AbstractStringBuilder__init_0() {
+ var var_0 = new jl_AbstractStringBuilder();
+ jl_AbstractStringBuilder__init_(var_0);
+ return var_0;
+}
+function jl_AbstractStringBuilder__init_1(var_0) {
+ var var_1 = new jl_AbstractStringBuilder();
+ jl_AbstractStringBuilder__init_2(var_1, var_0);
+ return var_1;
+}
+function jl_AbstractStringBuilder__init_($this) {
+ $this.$buffer = $rt_createCharArray(16);
+}
+function jl_AbstractStringBuilder__init_2($this, $capacity) {
+ $this.$buffer = $rt_createCharArray($capacity);
+}
+function jl_AbstractStringBuilder_append($this, $string) {
+ return $this.$insert($this.$length, $string);
+}
+function jl_AbstractStringBuilder_insert($this, $index, $string) {
+ var $i, var$4, var$5;
+ if ($index >= 0 && $index <= $this.$length) {
+ if ($string === null)
+ $string = $rt_s(47);
+ else if ($string.$characters.data.length ? 0 : 1)
+ return $this;
+ $this.$ensureCapacity($this.$length + $string.$characters.data.length | 0);
+ $i = $this.$length - 1 | 0;
+ while ($i >= $index) {
+ $this.$buffer.data[$i + $string.$characters.data.length | 0] = $this.$buffer.data[$i];
+ $i = $i + (-1) | 0;
+ }
+ $this.$length = $this.$length + $string.$characters.data.length | 0;
+ $i = 0;
+ while ($i < $string.$characters.data.length) {
+ var$4 = $this.$buffer.data;
+ var$5 = $index + 1 | 0;
+ var$4[$index] = jl_String_charAt($string, $i);
+ $i = $i + 1 | 0;
+ $index = var$5;
+ }
+ return $this;
+ }
+ $string = new jl_StringIndexOutOfBoundsException;
+ $string.$suppressionEnabled = 1;
+ $string.$writableStackTrace = 1;
+ $rt_throw($string);
+}
+function jl_AbstractStringBuilder_append0($this, $value) {
+ return jl_AbstractStringBuilder_insert0($this, $this.$length, $value, 10);
+}
+function jl_AbstractStringBuilder_append1($this, $value, $radix) {
+ return jl_AbstractStringBuilder_insert0($this, $this.$length, $value, $radix);
+}
+function jl_AbstractStringBuilder_insert0($this, $target, $value, $radix) {
+ var $positive, var$5, var$6, $pos, $sz, $posLimit, var$10;
+ $positive = 1;
+ if ($value < 0) {
+ $positive = 0;
+ $value = -$value;
+ }
+ a: {
+ if ($value < $radix) {
+ if ($positive)
+ jl_AbstractStringBuilder_insertSpace($this, $target, $target + 1 | 0);
+ else {
+ jl_AbstractStringBuilder_insertSpace($this, $target, $target + 2 | 0);
+ var$5 = $this.$buffer.data;
+ var$6 = $target + 1 | 0;
+ var$5[$target] = 45;
+ $target = var$6;
+ }
+ $this.$buffer.data[$target] = jl_Character_forDigit($value, $radix);
+ } else {
+ $pos = 1;
+ $sz = 1;
+ $posLimit = 2147483647 / $radix | 0;
+ b: {
+ while (true) {
+ var$10 = $rt_imul($pos, $radix);
+ if (var$10 > $value) {
+ var$10 = $pos;
+ break b;
+ }
+ $sz = $sz + 1 | 0;
+ if (var$10 > $posLimit)
+ break;
+ $pos = var$10;
+ }
+ }
+ if (!$positive)
+ $sz = $sz + 1 | 0;
+ jl_AbstractStringBuilder_insertSpace($this, $target, $target + $sz | 0);
+ if ($positive)
+ $positive = $target;
+ else {
+ var$5 = $this.$buffer.data;
+ $positive = $target + 1 | 0;
+ var$5[$target] = 45;
+ }
+ while (true) {
+ if (var$10 <= 0)
+ break a;
+ var$5 = $this.$buffer.data;
+ $target = $positive + 1 | 0;
+ var$5[$positive] = jl_Character_forDigit($value / var$10 | 0, $radix);
+ $value = $value % var$10 | 0;
+ var$10 = var$10 / $radix | 0;
+ $positive = $target;
+ }
+ }
+ }
+ return $this;
+}
+function jl_AbstractStringBuilder_insert1($this, $target, $value, $radix) {
+ var $positive, var$5, var$6, var$7, $sz, $pos, $pos_0;
+ $positive = 1;
+ if (Long_lt($value, Long_ZERO)) {
+ $positive = 0;
+ $value = Long_neg($value);
+ }
+ a: {
+ var$5 = Long_fromInt($radix);
+ if (Long_lt($value, var$5)) {
+ if ($positive)
+ jl_AbstractStringBuilder_insertSpace($this, $target, $target + 1 | 0);
+ else {
+ jl_AbstractStringBuilder_insertSpace($this, $target, $target + 2 | 0);
+ var$6 = $this.$buffer.data;
+ var$7 = $target + 1 | 0;
+ var$6[$target] = 45;
+ $target = var$7;
+ }
+ $this.$buffer.data[$target] = jl_Character_forDigit($value.lo, $radix);
+ } else {
+ $sz = 1;
+ $pos = Long_fromInt(1);
+ while (true) {
+ $pos_0 = Long_mul($pos, var$5);
+ if (Long_le($pos_0, $pos))
+ break;
+ if (Long_gt($pos_0, $value))
+ break;
+ $sz = $sz + 1 | 0;
+ $pos = $pos_0;
+ }
+ if (!$positive)
+ $sz = $sz + 1 | 0;
+ jl_AbstractStringBuilder_insertSpace($this, $target, $target + $sz | 0);
+ if ($positive)
+ $sz = $target;
+ else {
+ var$6 = $this.$buffer.data;
+ $sz = $target + 1 | 0;
+ var$6[$target] = 45;
+ }
+ while (true) {
+ if (Long_le($pos, Long_ZERO))
+ break a;
+ var$6 = $this.$buffer.data;
+ $target = $sz + 1 | 0;
+ var$6[$sz] = jl_Character_forDigit(Long_div($value, $pos).lo, $radix);
+ $value = Long_rem($value, $pos);
+ $pos = Long_div($pos, var$5);
+ $sz = $target;
+ }
+ }
+ }
+ return $this;
+}
+function jl_AbstractStringBuilder_insert2($this, $target, $value) {
+ var $mantissa, var$4, $number, $exp, $negative, $intPart, $sz, $digits, $zeros, $pos, $i, $intDigit;
+ $mantissa = $rt_compare($value, 0.0);
+ if (!$mantissa) {
+ jl_AbstractStringBuilder_insertSpace($this, $target, $target + 3 | 0);
+ var$4 = $this.$buffer.data;
+ $mantissa = $target + 1 | 0;
+ var$4[$target] = 48;
+ var$4 = $this.$buffer.data;
+ $target = $mantissa + 1 | 0;
+ var$4[$mantissa] = 46;
+ $this.$buffer.data[$target] = 48;
+ return $this;
+ }
+ if (!$mantissa) {
+ jl_AbstractStringBuilder_insertSpace($this, $target, $target + 4 | 0);
+ var$4 = $this.$buffer.data;
+ $mantissa = $target + 1 | 0;
+ var$4[$target] = 45;
+ var$4 = $this.$buffer.data;
+ $target = $mantissa + 1 | 0;
+ var$4[$mantissa] = 48;
+ var$4 = $this.$buffer.data;
+ $mantissa = $target + 1 | 0;
+ var$4[$target] = 46;
+ $this.$buffer.data[$mantissa] = 48;
+ return $this;
+ }
+ if (isNaN($value) ? 1 : 0) {
+ jl_AbstractStringBuilder_insertSpace($this, $target, $target + 3 | 0);
+ var$4 = $this.$buffer.data;
+ $mantissa = $target + 1 | 0;
+ var$4[$target] = 78;
+ var$4 = $this.$buffer.data;
+ $target = $mantissa + 1 | 0;
+ var$4[$mantissa] = 97;
+ $this.$buffer.data[$target] = 78;
+ return $this;
+ }
+ if (!isFinite($value) ? 1 : 0) {
+ if ($mantissa > 0) {
+ jl_AbstractStringBuilder_insertSpace($this, $target, $target + 8 | 0);
+ $mantissa = $target;
+ } else {
+ jl_AbstractStringBuilder_insertSpace($this, $target, $target + 9 | 0);
+ var$4 = $this.$buffer.data;
+ $mantissa = $target + 1 | 0;
+ var$4[$target] = 45;
+ }
+ var$4 = $this.$buffer.data;
+ $target = $mantissa + 1 | 0;
+ var$4[$mantissa] = 73;
+ var$4 = $this.$buffer.data;
+ $mantissa = $target + 1 | 0;
+ var$4[$target] = 110;
+ var$4 = $this.$buffer.data;
+ $target = $mantissa + 1 | 0;
+ var$4[$mantissa] = 102;
+ var$4 = $this.$buffer.data;
+ $mantissa = $target + 1 | 0;
+ var$4[$target] = 105;
+ var$4 = $this.$buffer.data;
+ $target = $mantissa + 1 | 0;
+ var$4[$mantissa] = 110;
+ var$4 = $this.$buffer.data;
+ $mantissa = $target + 1 | 0;
+ var$4[$target] = 105;
+ var$4 = $this.$buffer.data;
+ $target = $mantissa + 1 | 0;
+ var$4[$mantissa] = 116;
+ $this.$buffer.data[$target] = 121;
+ return $this;
+ }
+ $number = jl_AbstractStringBuilder$Constants_floatAnalysisResult;
+ otcit_FloatAnalyzer_analyze($value, $number);
+ $mantissa = $number.$mantissa;
+ $exp = $number.$exponent;
+ $negative = $number.$sign;
+ $intPart = 1;
+ $sz = 1;
+ if ($negative) {
+ $negative = 1;
+ $sz = 2;
+ }
+ $digits = 9;
+ $zeros = jl_AbstractStringBuilder_trailingDecimalZeros($mantissa);
+ if ($zeros > 0)
+ $digits = $digits - $zeros | 0;
+ if ($exp < 7 && $exp >= (-3)) {
+ if ($exp >= 0) {
+ $intPart = $exp + 1 | 0;
+ $digits = jl_Math_max($digits, $intPart + 1 | 0);
+ $exp = 0;
+ } else if ($exp < 0) {
+ $mantissa = $mantissa / jl_AbstractStringBuilder$Constants_intPowersOfTen.data[ -$exp] | 0;
+ $digits = $digits - $exp | 0;
+ $exp = 0;
+ }
+ }
+ if ($exp) {
+ $sz = $sz + 2 | 0;
+ if (!($exp > (-10) && $exp < 10))
+ $sz = $sz + 1 | 0;
+ if ($exp < 0)
+ $sz = $sz + 1 | 0;
+ }
+ if ($exp && $digits == $intPart)
+ $digits = $digits + 1 | 0;
+ jl_AbstractStringBuilder_insertSpace($this, $target, $target + ($sz + $digits | 0) | 0);
+ if (!$negative)
+ $negative = $target;
+ else {
+ var$4 = $this.$buffer.data;
+ $negative = $target + 1 | 0;
+ var$4[$target] = 45;
+ }
+ $pos = 100000000;
+ $i = 0;
+ while ($i < $digits) {
+ if ($pos <= 0)
+ $intDigit = 0;
+ else {
+ $intDigit = $mantissa / $pos | 0;
+ $mantissa = $mantissa % $pos | 0;
+ }
+ var$4 = $this.$buffer.data;
+ $target = $negative + 1 | 0;
+ var$4[$negative] = (48 + $intDigit | 0) & 65535;
+ $intPart = $intPart + (-1) | 0;
+ if ($intPart)
+ $negative = $target;
+ else {
+ var$4 = $this.$buffer.data;
+ $negative = $target + 1 | 0;
+ var$4[$target] = 46;
+ }
+ $pos = $pos / 10 | 0;
+ $i = $i + 1 | 0;
+ }
+ if ($exp) {
+ var$4 = $this.$buffer.data;
+ $target = $negative + 1 | 0;
+ var$4[$negative] = 69;
+ if ($exp >= 0)
+ $mantissa = $target;
+ else {
+ $exp = -$exp;
+ var$4 = $this.$buffer.data;
+ $mantissa = $target + 1 | 0;
+ var$4[$target] = 45;
+ }
+ if ($exp < 10)
+ $zeros = $mantissa;
+ else {
+ var$4 = $this.$buffer.data;
+ $zeros = $mantissa + 1 | 0;
+ var$4[$mantissa] = (48 + ($exp / 10 | 0) | 0) & 65535;
+ }
+ $this.$buffer.data[$zeros] = (48 + ($exp % 10 | 0) | 0) & 65535;
+ }
+ return $this;
+}
+function jl_AbstractStringBuilder_insert3($this, $target, $value) {
+ var $zeros, var$4, $number, $mantissa, $exp, $negative, $intPart, $sz, $digits, $pos, $i, $intDigit;
+ $zeros = $rt_compare($value, 0.0);
+ if (!$zeros) {
+ jl_AbstractStringBuilder_insertSpace($this, $target, $target + 3 | 0);
+ var$4 = $this.$buffer.data;
+ $zeros = $target + 1 | 0;
+ var$4[$target] = 48;
+ var$4 = $this.$buffer.data;
+ $target = $zeros + 1 | 0;
+ var$4[$zeros] = 46;
+ $this.$buffer.data[$target] = 48;
+ return $this;
+ }
+ if (!$zeros) {
+ jl_AbstractStringBuilder_insertSpace($this, $target, $target + 4 | 0);
+ var$4 = $this.$buffer.data;
+ $zeros = $target + 1 | 0;
+ var$4[$target] = 45;
+ var$4 = $this.$buffer.data;
+ $target = $zeros + 1 | 0;
+ var$4[$zeros] = 48;
+ var$4 = $this.$buffer.data;
+ $zeros = $target + 1 | 0;
+ var$4[$target] = 46;
+ $this.$buffer.data[$zeros] = 48;
+ return $this;
+ }
+ if (isNaN($value) ? 1 : 0) {
+ jl_AbstractStringBuilder_insertSpace($this, $target, $target + 3 | 0);
+ var$4 = $this.$buffer.data;
+ $zeros = $target + 1 | 0;
+ var$4[$target] = 78;
+ var$4 = $this.$buffer.data;
+ $target = $zeros + 1 | 0;
+ var$4[$zeros] = 97;
+ $this.$buffer.data[$target] = 78;
+ return $this;
+ }
+ if (!isFinite($value) ? 1 : 0) {
+ if ($zeros > 0) {
+ jl_AbstractStringBuilder_insertSpace($this, $target, $target + 8 | 0);
+ $zeros = $target;
+ } else {
+ jl_AbstractStringBuilder_insertSpace($this, $target, $target + 9 | 0);
+ var$4 = $this.$buffer.data;
+ $zeros = $target + 1 | 0;
+ var$4[$target] = 45;
+ }
+ var$4 = $this.$buffer.data;
+ $target = $zeros + 1 | 0;
+ var$4[$zeros] = 73;
+ var$4 = $this.$buffer.data;
+ $zeros = $target + 1 | 0;
+ var$4[$target] = 110;
+ var$4 = $this.$buffer.data;
+ $target = $zeros + 1 | 0;
+ var$4[$zeros] = 102;
+ var$4 = $this.$buffer.data;
+ $zeros = $target + 1 | 0;
+ var$4[$target] = 105;
+ var$4 = $this.$buffer.data;
+ $target = $zeros + 1 | 0;
+ var$4[$zeros] = 110;
+ var$4 = $this.$buffer.data;
+ $zeros = $target + 1 | 0;
+ var$4[$target] = 105;
+ var$4 = $this.$buffer.data;
+ $target = $zeros + 1 | 0;
+ var$4[$zeros] = 116;
+ $this.$buffer.data[$target] = 121;
+ return $this;
+ }
+ $number = jl_AbstractStringBuilder$Constants_doubleAnalysisResult;
+ otcit_DoubleAnalyzer_analyze($value, $number);
+ $mantissa = $number.$mantissa0;
+ $exp = $number.$exponent0;
+ $negative = $number.$sign0;
+ $intPart = 1;
+ $sz = 1;
+ if ($negative)
+ $sz = 2;
+ $digits = 18;
+ $zeros = jl_AbstractStringBuilder_trailingDecimalZeros0($mantissa);
+ if ($zeros > 0)
+ $digits = $digits - $zeros | 0;
+ if ($exp < 7 && $exp >= (-3)) {
+ if ($exp >= 0) {
+ $intPart = $exp + 1 | 0;
+ $digits = jl_Math_max($digits, $intPart + 1 | 0);
+ $exp = 0;
+ } else if ($exp < 0) {
+ $mantissa = Long_div($mantissa, jl_AbstractStringBuilder$Constants_longPowersOfTen.data[ -$exp]);
+ $digits = $digits - $exp | 0;
+ $exp = 0;
+ }
+ }
+ if ($exp) {
+ $sz = $sz + 2 | 0;
+ if (!($exp > (-10) && $exp < 10))
+ $sz = $sz + 1 | 0;
+ if (!($exp > (-100) && $exp < 100))
+ $sz = $sz + 1 | 0;
+ if ($exp < 0)
+ $sz = $sz + 1 | 0;
+ }
+ if ($exp && $digits == $intPart)
+ $digits = $digits + 1 | 0;
+ jl_AbstractStringBuilder_insertSpace($this, $target, $target + ($sz + $digits | 0) | 0);
+ if (!$negative)
+ $negative = $target;
+ else {
+ var$4 = $this.$buffer.data;
+ $negative = $target + 1 | 0;
+ var$4[$target] = 45;
+ }
+ $pos = new Long(1569325056, 23283064);
+ $i = 0;
+ while ($i < $digits) {
+ if (Long_le($pos, Long_ZERO))
+ $intDigit = 0;
+ else {
+ $intDigit = Long_div($mantissa, $pos).lo;
+ $mantissa = Long_rem($mantissa, $pos);
+ }
+ var$4 = $this.$buffer.data;
+ $target = $negative + 1 | 0;
+ var$4[$negative] = (48 + $intDigit | 0) & 65535;
+ $intPart = $intPart + (-1) | 0;
+ if ($intPart)
+ $negative = $target;
+ else {
+ var$4 = $this.$buffer.data;
+ $negative = $target + 1 | 0;
+ var$4[$target] = 46;
+ }
+ $pos = Long_div($pos, Long_fromInt(10));
+ $i = $i + 1 | 0;
+ }
+ if ($exp) {
+ var$4 = $this.$buffer.data;
+ $target = $negative + 1 | 0;
+ var$4[$negative] = 69;
+ if ($exp >= 0)
+ $zeros = $target;
+ else {
+ $exp = -$exp;
+ var$4 = $this.$buffer.data;
+ $zeros = $target + 1 | 0;
+ var$4[$target] = 45;
+ }
+ if ($exp >= 100) {
+ var$4 = $this.$buffer.data;
+ $target = $zeros + 1 | 0;
+ var$4[$zeros] = (48 + ($exp / 100 | 0) | 0) & 65535;
+ $exp = $exp % 100 | 0;
+ var$4 = $this.$buffer.data;
+ $intPart = $target + 1 | 0;
+ var$4[$target] = (48 + ($exp / 10 | 0) | 0) & 65535;
+ } else if ($exp < 10)
+ $intPart = $zeros;
+ else {
+ var$4 = $this.$buffer.data;
+ $intPart = $zeros + 1 | 0;
+ var$4[$zeros] = (48 + ($exp / 10 | 0) | 0) & 65535;
+ }
+ $this.$buffer.data[$intPart] = (48 + ($exp % 10 | 0) | 0) & 65535;
+ }
+ return $this;
+}
+function jl_AbstractStringBuilder_trailingDecimalZeros($n) {
+ var $result, $zeros, var$4;
+ if (!($n % 1000000000 | 0))
+ return 9;
+ $result = 0;
+ $zeros = 1;
+ if (!($n % 100000000 | 0)) {
+ $result = 8;
+ $zeros = 100000000;
+ }
+ var$4 = $zeros * 10000 | 0;
+ if ($n % var$4 | 0)
+ var$4 = $zeros;
+ else
+ $result = $result | 4;
+ $zeros = var$4 * 100 | 0;
+ if ($n % $zeros | 0)
+ $zeros = var$4;
+ else
+ $result = $result | 2;
+ if (!($n % ($zeros * 10 | 0) | 0))
+ $result = $result | 1;
+ return $result;
+}
+function jl_AbstractStringBuilder_trailingDecimalZeros0($n) {
+ var $zeros, $result, $bit, $i;
+ $zeros = Long_fromInt(1);
+ $result = 0;
+ $bit = 16;
+ $i = jl_AbstractStringBuilder$Constants_longLogPowersOfTen.data.length - 1 | 0;
+ while ($i >= 0) {
+ if (Long_eq(Long_rem($n, Long_mul($zeros, jl_AbstractStringBuilder$Constants_longLogPowersOfTen.data[$i])), Long_ZERO)) {
+ $result = $result | $bit;
+ $zeros = Long_mul($zeros, jl_AbstractStringBuilder$Constants_longLogPowersOfTen.data[$i]);
+ }
+ $bit = $bit >>> 1;
+ $i = $i + (-1) | 0;
+ }
+ return $result;
+}
+function jl_AbstractStringBuilder_append2($this, $c) {
+ return $this.$insert1($this.$length, $c);
+}
+function jl_AbstractStringBuilder_insert4($this, $index, $c) {
+ jl_AbstractStringBuilder_insertSpace($this, $index, $index + 1 | 0);
+ $this.$buffer.data[$index] = $c;
+ return $this;
+}
+function jl_AbstractStringBuilder_ensureCapacity($this, $capacity) {
+ var $newLength, var$3;
+ if ($this.$buffer.data.length >= $capacity)
+ return;
+ if ($this.$buffer.data.length >= 1073741823)
+ $newLength = 2147483647;
+ else {
+ var$3 = $this.$buffer.data.length * 2 | 0;
+ $newLength = 5;
+ if (var$3 > $newLength)
+ $newLength = var$3;
+ if ($capacity > $newLength)
+ $newLength = $capacity;
+ }
+ $this.$buffer = ju_Arrays_copyOf($this.$buffer, $newLength);
+}
+function jl_AbstractStringBuilder_toString($this) {
+ return jl_String__init_0($this.$buffer, 0, $this.$length);
+}
+function jl_AbstractStringBuilder_charAt($this, $index) {
+ var var$2;
+ if ($index >= 0 && $index < $this.$length)
+ return $this.$buffer.data[$index];
+ var$2 = new jl_IndexOutOfBoundsException;
+ var$2.$suppressionEnabled = 1;
+ var$2.$writableStackTrace = 1;
+ $rt_throw(var$2);
+}
+function jl_AbstractStringBuilder_insert5($this, $index, $s, $i, $end) {
+ var var$5, var$6;
+ if ($i <= $end && $end <= $s.$length0() && $i >= 0) {
+ jl_AbstractStringBuilder_insertSpace($this, $index, ($index + $end | 0) - $i | 0);
+ while ($i < $end) {
+ var$5 = $this.$buffer.data;
+ var$6 = $index + 1 | 0;
+ var$5[$index] = $s.$charAt($i);
+ $i = $i + 1 | 0;
+ $index = var$6;
+ }
+ return $this;
+ }
+ $s = new jl_IndexOutOfBoundsException;
+ $s.$suppressionEnabled = 1;
+ $s.$writableStackTrace = 1;
+ $rt_throw($s);
+}
+function jl_AbstractStringBuilder_insert6($this, $index, $chars, $offset, $len) {
+ var var$5, var$6, var$7, var$8;
+ jl_AbstractStringBuilder_insertSpace($this, $index, $index + $len | 0);
+ var$5 = $len + $offset | 0;
+ while ($offset < var$5) {
+ var$6 = $chars.data;
+ var$7 = $this.$buffer.data;
+ $len = $index + 1 | 0;
+ var$8 = $offset + 1 | 0;
+ var$7[$index] = var$6[$offset];
+ $index = $len;
+ $offset = var$8;
+ }
+ return $this;
+}
+function jl_AbstractStringBuilder_getChars($this, $srcBegin, $srcEnd, $dst, $dstBegin) {
+ var var$5, var$6, var$7, var$8, var$9;
+ if ($srcBegin > $srcEnd) {
+ var$5 = new jl_IndexOutOfBoundsException;
+ var$5.$suppressionEnabled = 1;
+ var$5.$writableStackTrace = 1;
+ var$5.$message = $rt_s(51);
+ $rt_throw(var$5);
+ }
+ while ($srcBegin < $srcEnd) {
+ var$6 = $dst.data;
+ var$7 = $dstBegin + 1 | 0;
+ var$8 = $this.$buffer.data;
+ var$9 = $srcBegin + 1 | 0;
+ var$6[$dstBegin] = var$8[$srcBegin];
+ $dstBegin = var$7;
+ $srcBegin = var$9;
+ }
+}
+function jl_AbstractStringBuilder_deleteCharAt($this, $i) {
+ var var$2, var$3, $i_0, var$5;
+ if ($i >= 0 && $i < $this.$length) {
+ $this.$length = $this.$length - 1 | 0;
+ while ($i < $this.$length) {
+ var$2 = $this.$buffer.data;
+ var$3 = $this.$buffer.data;
+ $i_0 = $i + 1 | 0;
+ var$2[$i] = var$3[$i_0];
+ $i = $i_0;
+ }
+ return $this;
+ }
+ var$5 = new jl_StringIndexOutOfBoundsException;
+ var$5.$suppressionEnabled = 1;
+ var$5.$writableStackTrace = 1;
+ $rt_throw(var$5);
+}
+function jl_AbstractStringBuilder_delete($this, $start, $end) {
+ var var$3, $sz, $i, var$6, var$7, var$8, var$9;
+ var$3 = $rt_compare($start, $end);
+ if (var$3 <= 0 && $start <= $this.$length) {
+ if (!var$3)
+ return $this;
+ $sz = $this.$length - $end | 0;
+ $this.$length = $this.$length - ($end - $start | 0) | 0;
+ $i = 0;
+ while ($i < $sz) {
+ var$6 = $this.$buffer.data;
+ var$3 = $start + 1 | 0;
+ var$7 = $this.$buffer.data;
+ var$8 = $end + 1 | 0;
+ var$6[$start] = var$7[$end];
+ $i = $i + 1 | 0;
+ $start = var$3;
+ $end = var$8;
+ }
+ return $this;
+ }
+ var$9 = new jl_StringIndexOutOfBoundsException;
+ var$9.$suppressionEnabled = 1;
+ var$9.$writableStackTrace = 1;
+ $rt_throw(var$9);
+}
+function jl_AbstractStringBuilder_insertSpace($this, $start, $end) {
+ var $sz, $i;
+ $sz = $this.$length - $start | 0;
+ $this.$ensureCapacity(($this.$length + $end | 0) - $start | 0);
+ $i = $sz - 1 | 0;
+ while ($i >= 0) {
+ $this.$buffer.data[$end + $i | 0] = $this.$buffer.data[$start + $i | 0];
+ $i = $i + (-1) | 0;
+ }
+ $this.$length = $this.$length + ($end - $start | 0) | 0;
+}
+function jl_AbstractStringBuilder_substring($this, $from, $to) {
+ var var$3;
+ if ($from <= $to && $from >= 0 && $to <= $this.$length)
+ return jl_String__init_0($this.$buffer, $from, $to - $from | 0);
+ var$3 = new jl_IndexOutOfBoundsException;
+ var$3.$suppressionEnabled = 1;
+ var$3.$writableStackTrace = 1;
+ $rt_throw(var$3);
+}
+function jl_Appendable() {
+}
+function jl_StringBuilder() {
+ jl_AbstractStringBuilder.call(this);
+}
+function jl_StringBuilder__init_() {
+ var var_0 = new jl_StringBuilder();
+ jl_StringBuilder__init_0(var_0);
+ return var_0;
+}
+function jl_StringBuilder__init_0($this) {
+ $this.$buffer = $rt_createCharArray(16);
+}
+function jl_StringBuilder_append0($this, $string) {
+ jl_AbstractStringBuilder_insert($this, $this.$length, $string);
+ return $this;
+}
+function jl_StringBuilder_append1($this, $value) {
+ jl_AbstractStringBuilder_insert0($this, $this.$length, $value, 10);
+ return $this;
+}
+function jl_StringBuilder_append2($this, $value) {
+ jl_AbstractStringBuilder_insert1($this, $this.$length, $value, 10);
+ return $this;
+}
+function jl_StringBuilder_append3($this, $value) {
+ jl_AbstractStringBuilder_insert2($this, $this.$length, $value);
+ return $this;
+}
+function jl_StringBuilder_append4($this, $value) {
+ jl_AbstractStringBuilder_insert3($this, $this.$length, $value);
+ return $this;
+}
+function jl_StringBuilder_append($this, $c) {
+ var var$2;
+ var$2 = $this.$length;
+ jl_AbstractStringBuilder_insertSpace($this, var$2, var$2 + 1 | 0);
+ $this.$buffer.data[var$2] = $c;
+ return $this;
+}
+function jl_StringBuilder_append5($this, $chars, $offset, $len) {
+ jl_AbstractStringBuilder_insert6($this, $this.$length, $chars, $offset, $len);
+ return $this;
+}
+function jl_StringBuilder_append6($this, $chars) {
+ var var$2;
+ var$2 = $chars.data.length;
+ jl_AbstractStringBuilder_insert6($this, $this.$length, $chars, 0, var$2);
+ return $this;
+}
+function jl_StringBuilder_append7($this, $s, $start, $end) {
+ jl_AbstractStringBuilder_insert5($this, $this.$length, $s, $start, $end);
+ return $this;
+}
+function jl_StringBuilder_append8($this, $s) {
+ var var$2;
+ var$2 = $s.$length0();
+ jl_AbstractStringBuilder_insert5($this, $this.$length, $s, 0, var$2);
+ return $this;
+}
+function jl_StringBuilder_append9($this, $obj) {
+ jl_AbstractStringBuilder_insert($this, $this.$length, $obj === null ? $rt_s(47) : $obj.$toString());
+ return $this;
+}
+function jl_StringBuilder_insert($this, $target, $value) {
+ jl_AbstractStringBuilder_insert1($this, $target, $value, 10);
+ return $this;
+}
+function jl_StringBuilder_insert0($this, $target, $value) {
+ jl_AbstractStringBuilder_insert2($this, $target, $value);
+ return $this;
+}
+function jl_StringBuilder_insert1($this, $target, $value) {
+ jl_AbstractStringBuilder_insert3($this, $target, $value);
+ return $this;
+}
+function jl_StringBuilder_insert2($this, $index, $s, $start, $end) {
+ jl_AbstractStringBuilder_insert5($this, $index, $s, $start, $end);
+ return $this;
+}
+function jl_StringBuilder_insert3($this, $index, $chars, $offset, $len) {
+ jl_AbstractStringBuilder_insert6($this, $index, $chars, $offset, $len);
+ return $this;
+}
+function jl_StringBuilder_insert4($this, $index, $obj) {
+ jl_AbstractStringBuilder_insert($this, $index, $obj === null ? $rt_s(47) : $obj.$toString());
+ return $this;
+}
+function jl_StringBuilder_insert5($this, $index, $c) {
+ jl_AbstractStringBuilder_insertSpace($this, $index, $index + 1 | 0);
+ $this.$buffer.data[$index] = $c;
+ return $this;
+}
+function jl_StringBuilder_delete($this, $start, $end) {
+ jl_AbstractStringBuilder_delete($this, $start, $end);
+ return $this;
+}
+function jl_StringBuilder_deleteCharAt($this, $index) {
+ jl_AbstractStringBuilder_deleteCharAt($this, $index);
+ return $this;
+}
+function jl_StringBuilder_insert6($this, $index, $string) {
+ jl_AbstractStringBuilder_insert($this, $index, $string);
+ return $this;
+}
+function jl_StringBuilder_substring($this, var$1, var$2) {
+ return jl_AbstractStringBuilder_substring($this, var$1, var$2);
+}
+function jl_StringBuilder_setLength($this, var$1) {
+ $this.$length = var$1;
+}
+function jl_StringBuilder_getChars($this, var$1, var$2, var$3, var$4) {
+ jl_AbstractStringBuilder_getChars($this, var$1, var$2, var$3, var$4);
+}
+function jl_StringBuilder_subSequence($this, var$1, var$2) {
+ return jl_AbstractStringBuilder_substring($this, var$1, var$2);
+}
+function jl_StringBuilder_insert7($this, var$1, var$2, var$3, var$4) {
+ jl_AbstractStringBuilder_insert6($this, var$1, var$2, var$3, var$4);
+ return $this;
+}
+function jl_StringBuilder_append10($this, var$1, var$2, var$3) {
+ jl_AbstractStringBuilder_insert6($this, $this.$length, var$1, var$2, var$3);
+ return $this;
+}
+function jl_StringBuilder_insert8($this, var$1, var$2, var$3, var$4) {
+ jl_AbstractStringBuilder_insert5($this, var$1, var$2, var$3, var$4);
+ return $this;
+}
+function jl_StringBuilder_append11($this, var$1, var$2, var$3) {
+ jl_AbstractStringBuilder_insert5($this, $this.$length, var$1, var$2, var$3);
+ return $this;
+}
+function jl_StringBuilder_charAt($this, var$1) {
+ return jl_AbstractStringBuilder_charAt($this, var$1);
+}
+function jl_StringBuilder_length($this) {
+ return $this.$length;
+}
+function jl_StringBuilder_toString($this) {
+ return jl_String__init_0($this.$buffer, 0, $this.$length);
+}
+function jl_StringBuilder_ensureCapacity($this, var$1) {
+ jl_AbstractStringBuilder_ensureCapacity($this, var$1);
+}
+function jl_StringBuilder_insert9($this, var$1, var$2) {
+ jl_AbstractStringBuilder_insert($this, var$1, var$2 === null ? $rt_s(47) : var$2.$toString());
+ return $this;
+}
+function jl_StringBuilder_insert10($this, var$1, var$2) {
+ jl_AbstractStringBuilder_insertSpace($this, var$1, var$1 + 1 | 0);
+ $this.$buffer.data[var$1] = var$2;
+ return $this;
+}
+function jl_StringBuilder_insert11($this, var$1, var$2) {
+ jl_AbstractStringBuilder_insert3($this, var$1, var$2);
+ return $this;
+}
+function jl_StringBuilder_insert12($this, var$1, var$2) {
+ jl_AbstractStringBuilder_insert2($this, var$1, var$2);
+ return $this;
+}
+function jl_StringBuilder_insert13($this, var$1, var$2) {
+ jl_AbstractStringBuilder_insert1($this, var$1, var$2, 10);
+ return $this;
+}
+function jl_StringBuilder_insert14($this, var$1, var$2) {
+ jl_AbstractStringBuilder_insert($this, var$1, var$2);
+ return $this;
+}
+function jl_StringBuilder_append12($this, var$1) {
+ var var$2;
+ var$2 = var$1.$length0();
+ jl_AbstractStringBuilder_insert5($this, $this.$length, var$1, 0, var$2);
+ return $this;
+}
+function jl_Number() {
+ jl_Object.call(this);
+}
+function jl_Integer() {
+ jl_Number.call(this);
+ this.$value = 0;
+}
+var jl_Integer_TYPE = null;
+var jl_Integer_integerCache = null;
+function jl_Integer__init_(var_0) {
+ var var_1 = new jl_Integer();
+ jl_Integer__init_0(var_1, var_0);
+ return var_1;
+}
+function jl_Integer__init_0($this, $s) {
+ $this.$value = jl_Integer_parseInt($s, 10);
+}
+function jl_Integer_toString($i, $radix) {
+ var var$3;
+ if (!($radix >= 2 && $radix <= 36))
+ $radix = 10;
+ var$3 = new jl_AbstractStringBuilder;
+ var$3.$buffer = $rt_createCharArray(20);
+ return jl_AbstractStringBuilder_insert0(var$3, var$3.$length, $i, $radix).$toString();
+}
+function jl_Integer_toHexString($i) {
+ return otci_IntegerUtil_toUnsignedLogRadixString($i, 4);
+}
+function jl_Integer_toString0($i) {
+ return jl_Integer_toString($i, 10);
+}
+function jl_Integer_parseInt($s, $radix) {
+ var $negative, $index, $value, var$6, $digit, var$8, var$9;
+ if ($radix >= 2 && $radix <= 36) {
+ if ($s !== null && !($s.$characters.data.length ? 0 : 1)) {
+ a: {
+ $negative = 0;
+ $index = 0;
+ switch (jl_String_charAt($s, 0)) {
+ case 43:
+ $index = 1;
+ break a;
+ case 45:
+ $negative = 1;
+ $index = 1;
+ break a;
+ default:
+ }
+ }
+ $value = 0;
+ if ($index == $s.$characters.data.length) {
+ $s = new jl_NumberFormatException;
+ $s.$suppressionEnabled = 1;
+ $s.$writableStackTrace = 1;
+ $rt_throw($s);
+ }
+ while ($index < $s.$characters.data.length) {
+ var$6 = $index + 1 | 0;
+ $digit = jl_Character_getNumericValue(jl_String_charAt($s, $index));
+ if ($digit < 0) {
+ var$8 = new jl_NumberFormatException;
+ var$9 = new jl_StringBuilder;
+ var$9.$buffer = $rt_createCharArray(16);
+ jl_AbstractStringBuilder_insert(var$9, var$9.$length, $rt_s(52));
+ jl_AbstractStringBuilder_insert(var$9, var$9.$length, $s);
+ $s = jl_String__init_0(var$9.$buffer, 0, var$9.$length);
+ var$8.$suppressionEnabled = 1;
+ var$8.$writableStackTrace = 1;
+ var$8.$message = $s;
+ $rt_throw(var$8);
+ }
+ if ($digit >= $radix) {
+ var$8 = new jl_NumberFormatException;
+ var$9 = new jl_StringBuilder;
+ var$9.$buffer = $rt_createCharArray(16);
+ jl_AbstractStringBuilder_insert(var$9, var$9.$length, $rt_s(53));
+ jl_AbstractStringBuilder_insert0(var$9, var$9.$length, $radix, 10);
+ jl_AbstractStringBuilder_insert(var$9, var$9.$length, $rt_s(48));
+ jl_AbstractStringBuilder_insert(var$9, var$9.$length, $s);
+ $s = jl_String__init_0(var$9.$buffer, 0, var$9.$length);
+ var$8.$suppressionEnabled = 1;
+ var$8.$writableStackTrace = 1;
+ var$8.$message = $s;
+ $rt_throw(var$8);
+ }
+ $value = $rt_imul($radix, $value) + $digit | 0;
+ if ($value < 0) {
+ if (var$6 == $s.$characters.data.length && $value == (-2147483648) && $negative)
+ return (-2147483648);
+ var$8 = new jl_NumberFormatException;
+ var$9 = new jl_StringBuilder;
+ var$9.$buffer = $rt_createCharArray(16);
+ jl_AbstractStringBuilder_insert(var$9, var$9.$length, $rt_s(54));
+ jl_AbstractStringBuilder_insert(var$9, var$9.$length, $s);
+ $s = jl_String__init_0(var$9.$buffer, 0, var$9.$length);
+ var$8.$suppressionEnabled = 1;
+ var$8.$writableStackTrace = 1;
+ var$8.$message = $s;
+ $rt_throw(var$8);
+ }
+ $index = var$6;
+ }
+ if ($negative)
+ $value = -$value;
+ return $value;
+ }
+ $s = new jl_NumberFormatException;
+ $s.$suppressionEnabled = 1;
+ $s.$writableStackTrace = 1;
+ $s.$message = $rt_s(55);
+ $rt_throw($s);
+ }
+ var$8 = new jl_NumberFormatException;
+ $s = new jl_StringBuilder;
+ $s.$buffer = $rt_createCharArray(16);
+ jl_AbstractStringBuilder_insert($s, $s.$length, $rt_s(56));
+ jl_AbstractStringBuilder_insert0($s, $s.$length, $radix, 10);
+ var$9 = jl_String__init_0($s.$buffer, 0, $s.$length);
+ var$8.$suppressionEnabled = 1;
+ var$8.$writableStackTrace = 1;
+ var$8.$message = var$9;
+ $rt_throw(var$8);
+}
+function jl_Integer_parseInt0($s) {
+ return jl_Integer_parseInt($s, 10);
+}
+function jl_Integer_valueOf($i) {
+ var var$2;
+ if ($i >= (-128) && $i <= 127) {
+ jl_Integer_ensureIntegerCache();
+ return jl_Integer_integerCache.data[$i + 128 | 0];
+ }
+ var$2 = new jl_Integer;
+ var$2.$value = $i;
+ return var$2;
+}
+function jl_Integer_ensureIntegerCache() {
+ var $j, var$2, var$3;
+ a: {
+ if (jl_Integer_integerCache === null) {
+ jl_Integer_integerCache = $rt_createArray(jl_Integer, 256);
+ $j = 0;
+ while (true) {
+ if ($j >= jl_Integer_integerCache.data.length)
+ break a;
+ var$2 = jl_Integer_integerCache.data;
+ var$3 = new jl_Integer;
+ var$3.$value = $j - 128 | 0;
+ var$2[$j] = var$3;
+ $j = $j + 1 | 0;
+ }
+ }
+ }
+}
+function jl_Integer_intValue($this) {
+ return $this.$value;
+}
+function jl_Integer_toString1($this) {
+ return jl_Integer_toString($this.$value, 10);
+}
+function jl_Integer_hashCode($this) {
+ return $this.$value >>> 4 ^ $this.$value << 28 ^ $this.$value << 8 ^ $this.$value >>> 24;
+}
+function jl_Integer_equals($this, $other) {
+ if ($this === $other)
+ return 1;
+ return $other instanceof jl_Integer && $other.$value == $this.$value ? 1 : 0;
+}
+function jl_Integer_compareTo($this, $other) {
+ return $rt_compare($this.$value, $other.$value);
+}
+function jl_Integer_numberOfLeadingZeros($i) {
+ var $n, var$3;
+ if (!$i)
+ return 32;
+ $n = 0;
+ var$3 = $i >>> 16;
+ if (var$3)
+ $n = 16;
+ else
+ var$3 = $i;
+ $i = var$3 >>> 8;
+ if (!$i)
+ $i = var$3;
+ else
+ $n = $n | 8;
+ var$3 = $i >>> 4;
+ if (!var$3)
+ var$3 = $i;
+ else
+ $n = $n | 4;
+ $i = var$3 >>> 2;
+ if (!$i)
+ $i = var$3;
+ else
+ $n = $n | 2;
+ if ($i >>> 1)
+ $n = $n | 1;
+ return (32 - $n | 0) - 1 | 0;
+}
+function jl_Integer_numberOfTrailingZeros($i) {
+ var $n, var$3;
+ if (!$i)
+ return 32;
+ $n = 0;
+ var$3 = $i << 16;
+ if (var$3)
+ $n = 16;
+ else
+ var$3 = $i;
+ $i = var$3 << 8;
+ if (!$i)
+ $i = var$3;
+ else
+ $n = $n | 8;
+ var$3 = $i << 4;
+ if (!var$3)
+ var$3 = $i;
+ else
+ $n = $n | 4;
+ $i = var$3 << 2;
+ if (!$i)
+ $i = var$3;
+ else
+ $n = $n | 2;
+ if ($i << 1)
+ $n = $n | 1;
+ return (32 - $n | 0) - 1 | 0;
+}
+function jl_Integer_compareTo0($this, var$1) {
+ var$1 = var$1;
+ return $rt_compare($this.$value, var$1.$value);
+}
+function jl_Integer__clinit_() {
+ jl_Integer_TYPE = $rt_cls($rt_intcls());
+}
+function jl_IncompatibleClassChangeError() {
+ jl_LinkageError.call(this);
+}
+function jl_IncompatibleClassChangeError__init_0() {
+ var var_0 = new jl_IncompatibleClassChangeError();
+ jl_IncompatibleClassChangeError__init_(var_0);
+ return var_0;
+}
+function jl_IncompatibleClassChangeError__init_($this) {
+ $this.$suppressionEnabled = 1;
+ $this.$writableStackTrace = 1;
+}
+function jl_NoSuchFieldError() {
+ jl_IncompatibleClassChangeError.call(this);
+}
+function jl_NoSuchFieldError__init_0() {
+ var var_0 = new jl_NoSuchFieldError();
+ jl_NoSuchFieldError__init_(var_0);
+ return var_0;
+}
+function jl_NoSuchFieldError__init_1(var_0) {
+ var var_1 = new jl_NoSuchFieldError();
+ jl_NoSuchFieldError__init_2(var_1, var_0);
+ return var_1;
+}
+function jl_NoSuchFieldError__init_($this) {
+ $this.$suppressionEnabled = 1;
+ $this.$writableStackTrace = 1;
+}
+function jl_NoSuchFieldError__init_2($this, $message) {
+ $this.$suppressionEnabled = 1;
+ $this.$writableStackTrace = 1;
+ $this.$message = $message;
+}
+function jl_NoSuchMethodError() {
+ jl_IncompatibleClassChangeError.call(this);
+}
+function jl_NoSuchMethodError__init_0() {
+ var var_0 = new jl_NoSuchMethodError();
+ jl_NoSuchMethodError__init_(var_0);
+ return var_0;
+}
+function jl_NoSuchMethodError__init_1(var_0) {
+ var var_1 = new jl_NoSuchMethodError();
+ jl_NoSuchMethodError__init_2(var_1, var_0);
+ return var_1;
+}
+function jl_NoSuchMethodError__init_($this) {
+ $this.$suppressionEnabled = 1;
+ $this.$writableStackTrace = 1;
+}
+function jl_NoSuchMethodError__init_2($this, $message) {
+ $this.$suppressionEnabled = 1;
+ $this.$writableStackTrace = 1;
+ $this.$message = $message;
+}
+function jl_Exception() {
+ jl_Throwable.call(this);
+}
+function jl_Exception__init_0() {
+ var var_0 = new jl_Exception();
+ jl_Exception__init_(var_0);
+ return var_0;
+}
+function jl_Exception__init_($this) {
+ $this.$suppressionEnabled = 1;
+ $this.$writableStackTrace = 1;
+}
+function jl_RuntimeException() {
+ jl_Exception.call(this);
+}
+function jl_RuntimeException__init_1() {
+ var var_0 = new jl_RuntimeException();
+ jl_RuntimeException__init_0(var_0);
+ return var_0;
+}
+function jl_RuntimeException__init_(var_0) {
+ var var_1 = new jl_RuntimeException();
+ jl_RuntimeException__init_2(var_1, var_0);
+ return var_1;
+}
+function jl_RuntimeException__init_0($this) {
+ $this.$suppressionEnabled = 1;
+ $this.$writableStackTrace = 1;
+}
+function jl_RuntimeException__init_2($this, $message) {
+ $this.$suppressionEnabled = 1;
+ $this.$writableStackTrace = 1;
+ $this.$message = $message;
+}
+function otj_JSObject() {
+}
+function otjde_EventTarget() {
+}
+function otjde_FocusEventTarget() {
+}
+function otjde_MouseEventTarget() {
+}
+function otjde_KeyboardEventTarget() {
+}
+function otjde_LoadEventTarget() {
+}
+function otjb_WindowEventTarget() {
+}
+function otjb_StorageProvider() {
+}
+function otjc_JSArrayReader() {
+}
+function otjb_Window() {
+ jl_Object.call(this);
+}
+function otjb_Window_addEventListener$exported$0(var$0, var$1, var$2) {
+ var$0.$addEventListener($rt_str(var$1), otji_JS_functionAsObject(var$2, "handleEvent"));
+}
+function otjb_Window_removeEventListener$exported$1(var$0, var$1, var$2) {
+ var$0.$removeEventListener($rt_str(var$1), otji_JS_functionAsObject(var$2, "handleEvent"));
+}
+function otjb_Window_get$exported$2(var$0, var$1) {
+ return var$0.$get1(var$1);
+}
+function otjb_Window_removeEventListener$exported$3(var$0, var$1, var$2, var$3) {
+ var$0.$removeEventListener0($rt_str(var$1), otji_JS_functionAsObject(var$2, "handleEvent"), var$3 ? 1 : 0);
+}
+function otjb_Window_dispatchEvent$exported$4(var$0, var$1) {
+ return !!var$0.$dispatchEvent(var$1);
+}
+function otjb_Window_getLength$exported$5(var$0) {
+ return var$0.$getLength();
+}
+function otjb_Window_addEventListener$exported$6(var$0, var$1, var$2, var$3) {
+ var$0.$addEventListener0($rt_str(var$1), otji_JS_functionAsObject(var$2, "handleEvent"), var$3 ? 1 : 0);
+}
+function nlea_EaglerAdapterImpl2() {
+ jl_Object.call(this);
+}
+var nlea_EaglerAdapterImpl2_isAnisotropicPatched = 0;
+var nlea_EaglerAdapterImpl2_doc = null;
+var nlea_EaglerAdapterImpl2_parent = null;
+var nlea_EaglerAdapterImpl2_canvas = null;
+var nlea_EaglerAdapterImpl2_webgl = null;
+var nlea_EaglerAdapterImpl2_win = null;
+var nlea_EaglerAdapterImpl2_loadedPackage = null;
+var nlea_EaglerAdapterImpl2_contextmenu = null;
+var nlea_EaglerAdapterImpl2_mousedown = null;
+var nlea_EaglerAdapterImpl2_mouseup = null;
+var nlea_EaglerAdapterImpl2_mousemove = null;
+var nlea_EaglerAdapterImpl2_keydown = null;
+var nlea_EaglerAdapterImpl2_keyup = null;
+var nlea_EaglerAdapterImpl2_keypress = null;
+var nlea_EaglerAdapterImpl2_wheel = null;
+var nlea_EaglerAdapterImpl2_mouseEvents = null;
+var nlea_EaglerAdapterImpl2_keyEvents = null;
+var nlea_EaglerAdapterImpl2_mouseX = 0;
+var nlea_EaglerAdapterImpl2_mouseY = 0;
+var nlea_EaglerAdapterImpl2_mouseDX = 0.0;
+var nlea_EaglerAdapterImpl2_mouseDY = 0.0;
+var nlea_EaglerAdapterImpl2_width = 0;
+var nlea_EaglerAdapterImpl2_height = 0;
+var nlea_EaglerAdapterImpl2_enableRepeatEvents = 0;
+var nlea_EaglerAdapterImpl2_isWindowFocused = 0;
+var nlea_EaglerAdapterImpl2_progId = 0;
+var nlea_EaglerAdapterImpl2_viewportCache = null;
+var nlea_EaglerAdapterImpl2_uploadBuffer = null;
+var nlea_EaglerAdapterImpl2_mat2 = null;
+var nlea_EaglerAdapterImpl2_mat3 = null;
+var nlea_EaglerAdapterImpl2_mat4 = null;
+var nlea_EaglerAdapterImpl2_currentProgram = 0;
+var nlea_EaglerAdapterImpl2_currentEvent = null;
+var nlea_EaglerAdapterImpl2_currentEventK = null;
+var nlea_EaglerAdapterImpl2_buttonStates = null;
+var nlea_EaglerAdapterImpl2_keyStates = null;
+var nlea_EaglerAdapterImpl2_pointerLockFlag = 0;
+var nlea_EaglerAdapterImpl2_sock = null;
+var nlea_EaglerAdapterImpl2_sockIsConnecting = 0;
+var nlea_EaglerAdapterImpl2_readPackets = null;
+var nlea_EaglerAdapterImpl2_playbackId = 0;
+var nlea_EaglerAdapterImpl2_loadedSoundFiles = null;
+var nlea_EaglerAdapterImpl2_audioctx = null;
+var nlea_EaglerAdapterImpl2_activeSoundEffects = null;
+var nlea_EaglerAdapterImpl2_connected = 0;
+var nlea_EaglerAdapterImpl2_LWJGLKeyNames = null;
+var nlea_EaglerAdapterImpl2_LWJGLKeyCodes = null;
+var nlea_EaglerAdapterImpl2_appendbufferindex = 0;
+var nlea_EaglerAdapterImpl2_appendbuffer = null;
+function nlea_EaglerAdapterImpl2_$callClinit() {
+ nlea_EaglerAdapterImpl2_$callClinit = $rt_eraseClinit(nlea_EaglerAdapterImpl2);
+ nlea_EaglerAdapterImpl2__clinit_();
+}
+function nlea_EaglerAdapterImpl2__init_0() {
+ var var_0 = new nlea_EaglerAdapterImpl2();
+ nlea_EaglerAdapterImpl2__init_(var_0);
+ return var_0;
+}
+function nlea_EaglerAdapterImpl2__init_($this) {
+ nlea_EaglerAdapterImpl2_$callClinit();
+}
+function nlea_EaglerAdapterImpl2__wisAnisotropicPatched() {
+ nlea_EaglerAdapterImpl2_$callClinit();
+ return nlea_EaglerAdapterImpl2_isAnisotropicPatched;
+}
+function nlea_EaglerAdapterImpl2__wgetShaderHeader() {
+ nlea_EaglerAdapterImpl2_$callClinit();
+ return $rt_s(57);
+}
+function nlea_EaglerAdapterImpl2_loadResource($path) {
+ var var$2, var$3, var$4, var$5, var$6;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ if (!($path === $rt_s(58) ? 1 : jl_String_startsWith($path, $rt_s(58), 0)))
+ var$2 = $path;
+ else {
+ var$3 = $path.$characters.data.length;
+ if (1 > var$3) {
+ $path = new jl_IndexOutOfBoundsException;
+ $path.$suppressionEnabled = 1;
+ $path.$writableStackTrace = 1;
+ $rt_throw($path);
+ }
+ var$2 = jl_String__init_0($path.$characters, 1, var$3 - 1 | 0);
+ }
+ $path = ju_HashMap_getEntry(nle_AssetRepository_filePool, var$2);
+ var$4 = $path === null ? null : $path.$value0;
+ if (var$4 === null)
+ return null;
+ var$5 = var$4.data;
+ $path = new ji_ByteArrayInputStream;
+ var$6 = var$5.length;
+ $path.$buf = var$4;
+ $path.$pos = 0;
+ $path.$mark0 = 0;
+ $path.$count0 = 0 + var$6 | 0;
+ return $path;
+}
+function nlea_EaglerAdapterImpl2_loadResourceBytes($path) {
+ var var$2, var$3;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ if (!($path === $rt_s(58) ? 1 : jl_String_startsWith($path, $rt_s(58), 0)))
+ var$2 = $path;
+ else {
+ var$3 = $path.$characters.data.length;
+ if (1 > var$3) {
+ $path = new jl_IndexOutOfBoundsException;
+ $path.$suppressionEnabled = 1;
+ $path.$writableStackTrace = 1;
+ $rt_throw($path);
+ }
+ var$2 = jl_String__init_0($path.$characters, 1, var$3 - 1 | 0);
+ }
+ $path = ju_HashMap_getEntry(nle_AssetRepository_filePool, var$2);
+ return $path === null ? null : $path.$value0;
+}
+function nlea_EaglerAdapterImpl2_fileContents($path) {
+ var var$2, var$3, var$4, var$5;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ if (!($path === $rt_s(58) ? 1 : jl_String_startsWith($path, $rt_s(58), 0)))
+ var$2 = $path;
+ else {
+ var$3 = $path.$characters.data.length;
+ if (1 > var$3) {
+ $path = new jl_IndexOutOfBoundsException;
+ $path.$suppressionEnabled = 1;
+ $path.$writableStackTrace = 1;
+ $rt_throw($path);
+ }
+ var$2 = jl_String__init_0($path.$characters, 1, var$3 - 1 | 0);
+ }
+ $path = ju_HashMap_getEntry(nle_AssetRepository_filePool, var$2);
+ var$4 = $path === null ? null : $path.$value0;
+ if (var$4 === null)
+ return null;
+ var$5 = var$4.data;
+ var$2 = new jl_String;
+ $path = jnc_Charset_forName($rt_s(2));
+ jl_String_initWithBytes(var$2, var$4, 0, var$5.length, $path);
+ return var$2;
+}
+function nlea_EaglerAdapterImpl2_fileContentsLines($path) {
+ var var$2, var$3, var$4, $contents, var$6;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ if (!($path === $rt_s(58) ? 1 : jl_String_startsWith($path, $rt_s(58), 0)))
+ var$2 = $path;
+ else {
+ var$3 = $path.$characters.data.length;
+ if (1 > var$3) {
+ $path = new jl_IndexOutOfBoundsException;
+ $path.$suppressionEnabled = 1;
+ $path.$writableStackTrace = 1;
+ $rt_throw($path);
+ }
+ var$2 = jl_String__init_0($path.$characters, 1, var$3 - 1 | 0);
+ }
+ $path = ju_HashMap_getEntry(nle_AssetRepository_filePool, var$2);
+ var$4 = $path === null ? null : $path.$value0;
+ if (var$4 === null)
+ $contents = null;
+ else {
+ var$6 = var$4.data;
+ $contents = new jl_String;
+ jl_String_initWithBytes($contents, var$4, 0, var$6.length, jnc_Charset_forName($rt_s(2)));
+ }
+ if ($contents === null)
+ return null;
+ $path = jl_String_replace0($contents, $rt_s(59), $rt_s(60));
+ return jur_Pattern_split(jur_Pattern_compile($rt_s(61), 0), $path, 0);
+}
+function nlea_EaglerAdapterImpl2_downloadAssetPack(var$1) {
+ var thread = $rt_nativeThread();
+ var javaThread = $rt_getThread();
+ if (thread.isResuming()) {
+ thread.status = 0;
+ var result = thread.attribute;
+ if (result instanceof Error) {
+ throw result;
+ }
+ return result;
+ }
+ var callback = function() {};
+ callback.$complete = function(val) {
+ thread.attribute = val;
+ $rt_setThread(javaThread);
+ thread.resume();
+ };
+ callback.$error = function(e) {
+ thread.attribute = $rt_exception(e);
+ $rt_setThread(javaThread);
+ thread.resume();
+ };
+ callback = otpp_AsyncCallbackWrapper_create(callback);
+ return thread.suspend(function() {
+ try {
+ nlea_EaglerAdapterImpl2_downloadAssetPack0(var$1, callback);
+ } catch($e) {
+ callback.$error($rt_exception($e));
+ }
+ });
+}
+function nlea_EaglerAdapterImpl2_downloadAssetPack0($assetPackageURI, $cb) {
+ var $request, var$4;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ $request = new XMLHttpRequest();
+ var$4 = "arraybuffer";
+ $request.responseType = var$4;
+ $request.open("GET", $rt_ustr($assetPackageURI), !!1);
+ $assetPackageURI = new nlea_EaglerAdapterImpl2$1;
+ $assetPackageURI.$val$request = $request;
+ $assetPackageURI.$val$cb = $cb;
+ $assetPackageURI = otji_JS_function($assetPackageURI, "stateChanged");
+ $request.onreadystatechange = $assetPackageURI;
+ $request.send();
+}
+function nlea_EaglerAdapterImpl2_initializeContext($rootElement, $assetPackageURI) {
+ var $s, $e, $agent, var$6, $$je, $ptr, $tmp;
+ $ptr = 0;
+ if ($rt_resuming()) {
+ var $thread = $rt_nativeThread();
+ $ptr = $thread.pop();var$6 = $thread.pop();$agent = $thread.pop();$e = $thread.pop();$s = $thread.pop();$assetPackageURI = $thread.pop();$rootElement = $thread.pop();
+ }
+ main: while (true) { switch ($ptr) {
+ case 0:
+ nlea_EaglerAdapterImpl2_$callClinit();
+ nlea_EaglerAdapterImpl2_parent = $rootElement;
+ $s = $rt_str(nlea_EaglerAdapterImpl2_parent.getAttribute("style"));
+ $e = nlea_EaglerAdapterImpl2_parent;
+ $agent = new jl_StringBuilder;
+ $agent.$buffer = $rt_createCharArray(16);
+ if ($s === null)
+ $s = $rt_s(44);
+ jl_AbstractStringBuilder_insert($agent, $agent.$length, $s);
+ jl_AbstractStringBuilder_insert($agent, $agent.$length, $rt_s(62));
+ $s = jl_String__init_0($agent.$buffer, 0, $agent.$length);
+ $e.setAttribute("style", $rt_ustr($s));
+ nlea_EaglerAdapterImpl2_win = window;
+ nlea_EaglerAdapterImpl2_doc = nlea_EaglerAdapterImpl2_win.document;
+ nlea_EaglerAdapterImpl2_canvas = nlea_EaglerAdapterImpl2_doc.createElement("canvas");
+ nlea_EaglerAdapterImpl2_canvas.setAttribute("id", "deevis589723589");
+ $agent = nlea_EaglerAdapterImpl2_canvas;
+ $rootElement.appendChild($agent);
+ $rootElement = nlea_EaglerAdapterImpl2_canvas;
+ $e = nlea_EaglerAdapterImpl2_youEagler$js_body$_17();
+ nlea_EaglerAdapterImpl2_webgl = $rootElement.getContext("webgl2", $e);
+ if (nlea_EaglerAdapterImpl2_webgl === null) {
+ $rootElement = new jl_RuntimeException;
+ $assetPackageURI = new jl_StringBuilder;
+ $assetPackageURI.$buffer = $rt_createCharArray(16);
+ jl_AbstractStringBuilder_insert($assetPackageURI, $assetPackageURI.$length, $rt_s(63));
+ $agent = $rt_str(nlea_EaglerAdapterImpl2_getString$js_body$_13("window.navigator.userAgent"));
+ jl_AbstractStringBuilder_insert($assetPackageURI, $assetPackageURI.$length, $agent);
+ jl_AbstractStringBuilder_insert($assetPackageURI, $assetPackageURI.$length, $rt_s(64));
+ jl_RuntimeException__init_2($rootElement, jl_StringBuilder_toString($assetPackageURI));
+ $rt_throw($rootElement);
+ }
+ nlea_EaglerAdapterImpl2_setContextVar$js_body$_10(nlea_EaglerAdapterImpl2_webgl);
+ nlea_EaglerAdapterImpl2_audioctx = otjw_AudioContext_create$js_body$_44();
+ if (jl_String_contains(jl_String_toLowerCase($rt_str(nlea_EaglerAdapterImpl2_getString$js_body$_13("window.navigator.userAgent"))), $rt_s(65)))
+ nlea_EaglerAdapterImpl2_isAnisotropicPatched = 0;
+ nlea_EaglerAdapterImpl2_webgl.getExtension("EXT_texture_filter_anisotropic");
+ $rootElement = nlea_EaglerAdapterImpl2_win;
+ $e = new nlea_EaglerAdapterImpl2$2;
+ nlea_EaglerAdapterImpl2_contextmenu = $e;
+ $rootElement.addEventListener("contextmenu", otji_JS_function($e, "handleEvent"));
+ $rootElement = nlea_EaglerAdapterImpl2_canvas;
+ $e = new nlea_EaglerAdapterImpl2$3;
+ nlea_EaglerAdapterImpl2_mousedown = $e;
+ $rootElement.addEventListener("mousedown", otji_JS_function($e, "handleEvent"));
+ $rootElement = nlea_EaglerAdapterImpl2_canvas;
+ $e = new nlea_EaglerAdapterImpl2$4;
+ nlea_EaglerAdapterImpl2_mouseup = $e;
+ $rootElement.addEventListener("mouseup", otji_JS_function($e, "handleEvent"));
+ $rootElement = nlea_EaglerAdapterImpl2_canvas;
+ $e = new nlea_EaglerAdapterImpl2$5;
+ nlea_EaglerAdapterImpl2_mousemove = $e;
+ $rootElement.addEventListener("mousemove", otji_JS_function($e, "handleEvent"));
+ $rootElement = nlea_EaglerAdapterImpl2_win;
+ $e = new nlea_EaglerAdapterImpl2$6;
+ nlea_EaglerAdapterImpl2_keydown = $e;
+ $rootElement.addEventListener("keydown", otji_JS_function($e, "handleEvent"));
+ $rootElement = nlea_EaglerAdapterImpl2_win;
+ $e = new nlea_EaglerAdapterImpl2$7;
+ nlea_EaglerAdapterImpl2_keyup = $e;
+ $rootElement.addEventListener("keyup", otji_JS_function($e, "handleEvent"));
+ $rootElement = nlea_EaglerAdapterImpl2_win;
+ $e = new nlea_EaglerAdapterImpl2$8;
+ nlea_EaglerAdapterImpl2_keypress = $e;
+ $rootElement.addEventListener("keypress", otji_JS_function($e, "handleEvent"));
+ $rootElement = nlea_EaglerAdapterImpl2_canvas;
+ $e = new nlea_EaglerAdapterImpl2$9;
+ nlea_EaglerAdapterImpl2_wheel = $e;
+ $rootElement.addEventListener("wheel", otji_JS_function($e, "handleEvent"));
+ $rootElement = nlea_EaglerAdapterImpl2_win;
+ $e = new nlea_EaglerAdapterImpl2$10;
+ $rootElement.addEventListener("blur", otji_JS_function($e, "handleEvent"));
+ $rootElement = nlea_EaglerAdapterImpl2_win;
+ $e = new nlea_EaglerAdapterImpl2$11;
+ $rootElement.addEventListener("focus", otji_JS_function($e, "handleEvent"));
+ window.eval("window.onbeforeunload = function(){return false;};");
+ window.eval("window.eagsFileChooser = {\r\ninputElement: null,\r\nopenFileChooser: function(ext, mime){\r\nvar el = window.eagsFileChooser.inputElement;\r\nif(el == null){\r\nel = window.eagsFileChooser.inputElement = document.createElement(\"input\");\r\nel.type = \"file\";\r\nel.multiple = false;\r\nel.addEventListener(\"change\", function(evt){\r\nvar f = window.eagsFileChooser.inputElement.files;\r\nif(f.length == 0){\r\nwindow.eagsFileChooser.getFileChooserResult = new ArrayBuffer(0);\r\n}else{\r\n(async function(){\r\nwindow.eagsFileChooser.getFileChooserResult = await f[0].arrayBuffer();\r\nwindow.eagsFileChooser.getFileChooserResultName = f[0].name;\r\n})();\r\n}\r\n});\r\n}\r\nwindow.eagsFileChooser.getFileChooserResult = null;\r\nwindow.eagsFileChooser.getFileChooserResultName = null;\r\nel.accept = mime;\r\nel.click();\r\n},\r\ngetFileChooserResult: null,\r\ngetFileChooserResultName: null\r\n};");
+ $ptr = 1;
+ case 1:
+ nle_EarlyLoadScreen_paintScreen();
+ if ($rt_suspending()) {
+ break main;
+ }
+ $ptr = 2;
+ case 2:
+ nlea_EaglerAdapterImpl2_downloadAssetPack($assetPackageURI);
+ if ($rt_suspending()) {
+ break main;
+ }
+ a: {
+ try {
+ nle_AssetRepository_install(nlea_EaglerAdapterImpl2_loadedPackage);
+ break a;
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof ji_IOException) {
+ $e = $$je;
+ } else {
+ throw $$e;
+ }
+ }
+ jl_Throwable_printStackTrace($e);
+ }
+ if (ju_AbstractCollection_isEmpty(nlea_EaglerAdapterImpl2_mouseEvents) && ju_AbstractCollection_isEmpty(nlea_EaglerAdapterImpl2_keyEvents) && !(nlea_EaglerAdapterImpl2_hasBeenActive$js_body$_12() ? 1 : 0)) {
+ $ptr = 3;
+ continue main;
+ }
+ ju_LinkedList_clear(nlea_EaglerAdapterImpl2_mouseEvents);
+ ju_LinkedList_clear(nlea_EaglerAdapterImpl2_keyEvents);
+ return;
+ case 3:
+ nle_EarlyLoadScreen_paintEnable();
+ if ($rt_suspending()) {
+ break main;
+ }
+ while (ju_AbstractCollection_isEmpty(nlea_EaglerAdapterImpl2_mouseEvents) && ju_AbstractCollection_isEmpty(nlea_EaglerAdapterImpl2_keyEvents)) {
+ try {
+ var$6 = Long_fromInt(100);
+ $ptr = 4;
+ continue main;
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof jl_InterruptedException) {
+ } else {
+ throw $$e;
+ }
+ }
+ }
+ ju_LinkedList_clear(nlea_EaglerAdapterImpl2_mouseEvents);
+ ju_LinkedList_clear(nlea_EaglerAdapterImpl2_keyEvents);
+ return;
+ case 4:
+ a: {
+ try {
+ jl_Thread_sleep(var$6);
+ if ($rt_suspending()) {
+ break main;
+ }
+ break a;
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof jl_InterruptedException) {
+ } else {
+ throw $$e;
+ }
+ }
+ }
+ while (ju_AbstractCollection_isEmpty(nlea_EaglerAdapterImpl2_mouseEvents) && ju_AbstractCollection_isEmpty(nlea_EaglerAdapterImpl2_keyEvents)) {
+ try {
+ var$6 = Long_fromInt(100);
+ continue main;
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof jl_InterruptedException) {
+ } else {
+ throw $$e;
+ }
+ }
+ }
+ ju_LinkedList_clear(nlea_EaglerAdapterImpl2_mouseEvents);
+ ju_LinkedList_clear(nlea_EaglerAdapterImpl2_keyEvents);
+ return;
+ default: $rt_invalidPointer();
+ }}
+ $rt_nativeThread().push($rootElement, $assetPackageURI, $s, $e, $agent, var$6, $ptr);
+}
+function nlea_EaglerAdapterImpl2_removeEventHandlers() {
+ var var$1, var$2;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ var$1 = nlea_EaglerAdapterImpl2_win;
+ var$2 = nlea_EaglerAdapterImpl2_contextmenu;
+ var$1.removeEventListener("contextmenu", otji_JS_function(var$2, "handleEvent"));
+ var$1 = nlea_EaglerAdapterImpl2_win;
+ var$2 = nlea_EaglerAdapterImpl2_mousedown;
+ var$1.removeEventListener("mousedown", otji_JS_function(var$2, "handleEvent"));
+ var$1 = nlea_EaglerAdapterImpl2_win;
+ var$2 = nlea_EaglerAdapterImpl2_mouseup;
+ var$1.removeEventListener("mouseup", otji_JS_function(var$2, "handleEvent"));
+ var$1 = nlea_EaglerAdapterImpl2_win;
+ var$2 = nlea_EaglerAdapterImpl2_mousemove;
+ var$1.removeEventListener("mousemove", otji_JS_function(var$2, "handleEvent"));
+ var$1 = nlea_EaglerAdapterImpl2_win;
+ var$2 = nlea_EaglerAdapterImpl2_keydown;
+ var$1.removeEventListener("keydown", otji_JS_function(var$2, "handleEvent"));
+ var$1 = nlea_EaglerAdapterImpl2_win;
+ var$2 = nlea_EaglerAdapterImpl2_keyup;
+ var$1.removeEventListener("keyup", otji_JS_function(var$2, "handleEvent"));
+ var$1 = nlea_EaglerAdapterImpl2_win;
+ var$2 = nlea_EaglerAdapterImpl2_keypress;
+ var$1.removeEventListener("keypress", otji_JS_function(var$2, "handleEvent"));
+ var$1 = nlea_EaglerAdapterImpl2_win;
+ var$2 = nlea_EaglerAdapterImpl2_wheel;
+ var$1.removeEventListener("wheel", otji_JS_function(var$2, "handleEvent"));
+}
+function nlea_EaglerAdapterImpl2__wglViewport($p1, $p2, $p3, $p4) {
+ nlea_EaglerAdapterImpl2_$callClinit();
+ nlea_EaglerAdapterImpl2_viewportCache.data[0] = $p1;
+ nlea_EaglerAdapterImpl2_viewportCache.data[1] = $p2;
+ nlea_EaglerAdapterImpl2_viewportCache.data[2] = $p3;
+ nlea_EaglerAdapterImpl2_viewportCache.data[3] = $p4;
+ nlea_EaglerAdapterImpl2_webgl.viewport($p1, $p2, $p3, $p4);
+}
+function nlea_EaglerAdapterImpl2__wglClear($p1) {
+ nlea_EaglerAdapterImpl2_$callClinit();
+ nlea_EaglerAdapterImpl2_webgl.clear($p1);
+}
+function nlea_EaglerAdapterImpl2__wglClearColor($p1, $p2, $p3, $p4) {
+ nlea_EaglerAdapterImpl2_$callClinit();
+ nlea_EaglerAdapterImpl2_webgl.clearColor($p1, $p2, $p3, $p4);
+}
+function nlea_EaglerAdapterImpl2__wglFlush() {
+ nlea_EaglerAdapterImpl2_$callClinit();
+}
+function nlea_EaglerAdapterImpl2__wglTexImage2D($p1, $p2, $p3, $p4, $p5, $p6, $p7, $p8, $p9) {
+ var $data, $len, $uploadBuffer1, $i, var$14;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ if ($p9 === null) {
+ $p9 = nlea_EaglerAdapterImpl2_webgl;
+ $data = null;
+ $p9.texImage2D($p1, $p2, $p3, $p4, $p5, $p6, $p7, $p8, $data);
+ } else {
+ $len = $p9.$limit - $p9.$position | 0;
+ $uploadBuffer1 = nlea_EaglerAdapterImpl2_uploadBuffer;
+ $i = 0;
+ while ($i < $len) {
+ var$14 = (jn_ByteBufferImpl_get($p9) & 255) << 16 >> 16;
+ $uploadBuffer1[$i] = var$14;
+ $i = $i + 1 | 0;
+ }
+ $data = new Uint8Array(nlea_EaglerAdapterImpl2_uploadBuffer.buffer, 0, $len);
+ nlea_EaglerAdapterImpl2_webgl.texImage2D($p1, $p2, $p3, $p4, $p5, $p6, $p7, $p8, $data);
+ }
+}
+function nlea_EaglerAdapterImpl2__wglDepthMask($p1) {
+ nlea_EaglerAdapterImpl2_$callClinit();
+ nlea_EaglerAdapterImpl2_webgl.depthMask(!!$p1);
+}
+function nlea_EaglerAdapterImpl2__wglBindTexture($p1, $p2) {
+ var var$3;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ var$3 = nlea_EaglerAdapterImpl2_webgl;
+ $p2 = $p2 !== null ? $p2.$obj : null;
+ var$3.bindTexture($p1, $p2);
+}
+function nlea_EaglerAdapterImpl2__wglTexParameteri($p1, $p2, $p3) {
+ nlea_EaglerAdapterImpl2_$callClinit();
+ nlea_EaglerAdapterImpl2_webgl.texParameteri($p1, $p2, $p3);
+}
+function nlea_EaglerAdapterImpl2__wglTexImage2D0($p1, $p2, $p3, $p4, $p5, $p6, $p7, $p8, $p9) {
+ var $len, $deevis, $i, var$13, $data;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ $len = $p9.$limit - $p9.$position | 0;
+ $deevis = new Int32Array(nlea_EaglerAdapterImpl2_uploadBuffer.buffer);
+ $i = 0;
+ while ($i < $len) {
+ var$13 = jn_IntBufferImpl_get($p9);
+ $deevis[$i] = var$13;
+ $i = $i + 1 | 0;
+ }
+ $p9 = nlea_EaglerAdapterImpl2_uploadBuffer.buffer;
+ var$13 = $len * 4 | 0;
+ $data = new Uint8Array($p9, 0, var$13);
+ nlea_EaglerAdapterImpl2_webgl.texImage2D($p1, $p2, $p3, $p4, $p5, $p6, $p7, $p8, $data);
+}
+function nlea_EaglerAdapterImpl2__wglTexSubImage2D($p1, $p2, $p3, $p4, $p5, $p6, $p7, $p8, $p9) {
+ var $len, $deevis, $i, var$13, $data;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ $len = $p9.$limit - $p9.$position | 0;
+ $deevis = new Int32Array(nlea_EaglerAdapterImpl2_uploadBuffer.buffer);
+ $i = 0;
+ while ($i < $len) {
+ var$13 = jn_IntBufferImpl_get($p9);
+ $deevis[$i] = var$13;
+ $i = $i + 1 | 0;
+ }
+ $p9 = nlea_EaglerAdapterImpl2_uploadBuffer.buffer;
+ var$13 = $len * 4 | 0;
+ $data = new Uint8Array($p9, 0, var$13);
+ nlea_EaglerAdapterImpl2_webgl.texSubImage2D($p1, $p2, $p3, $p4, $p5, $p6, $p7, $p8, $data);
+}
+function nlea_EaglerAdapterImpl2__wglDeleteTextures($p1) {
+ var var$2;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ var$2 = nlea_EaglerAdapterImpl2_webgl;
+ $p1 = $p1.$obj;
+ var$2.deleteTexture($p1);
+}
+function nlea_EaglerAdapterImpl2__wglDrawArrays($p1, $p2, $p3) {
+ nlea_EaglerAdapterImpl2_$callClinit();
+ nlea_EaglerAdapterImpl2_webgl.drawArrays($p1, $p2, $p3);
+}
+function nlea_EaglerAdapterImpl2__wglTexSubImage2D0($p1, $p2, $p3, $p4, $p5, $p6, $p7, $p8, $p9) {
+ var $len, $i, $data, var$13;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ $len = $p9.$limit - $p9.$position | 0;
+ $i = 0;
+ while ($i < $len) {
+ $data = nlea_EaglerAdapterImpl2_uploadBuffer;
+ var$13 = (jn_ByteBufferImpl_get($p9) & 255) << 16 >> 16;
+ $data[$i] = var$13;
+ $i = $i + 1 | 0;
+ }
+ $data = new Uint8Array(nlea_EaglerAdapterImpl2_uploadBuffer.buffer, 0, $len);
+ nlea_EaglerAdapterImpl2_webgl.texSubImage2D($p1, $p2, $p3, $p4, $p5, $p6, $p7, $p8, $data);
+}
+function nlea_EaglerAdapterImpl2__wglActiveTexture($p1) {
+ nlea_EaglerAdapterImpl2_$callClinit();
+ nlea_EaglerAdapterImpl2_webgl.activeTexture($p1);
+}
+function nlea_EaglerAdapterImpl2__wglCreateProgram() {
+ var var$1, var$2;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ var$1 = new nlea_EaglerAdapterImpl2$ProgramGL;
+ var$1.$obj0 = nlea_EaglerAdapterImpl2_webgl.createProgram();
+ var$2 = nlea_EaglerAdapterImpl2_progId + 1 | 0;
+ nlea_EaglerAdapterImpl2_progId = var$2;
+ var$1.$hashcode = var$2;
+ return var$1;
+}
+function nlea_EaglerAdapterImpl2__wglCreateShader($p1) {
+ var var$2;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ var$2 = new nlea_EaglerAdapterImpl2$ShaderGL;
+ var$2.$obj1 = nlea_EaglerAdapterImpl2_webgl.createShader($p1);
+ return var$2;
+}
+function nlea_EaglerAdapterImpl2__wglAttachShader($p1, $p2) {
+ var var$3;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ var$3 = nlea_EaglerAdapterImpl2_webgl;
+ $p1 = $p1.$obj0;
+ $p2 = $p2.$obj1;
+ var$3.attachShader($p1, $p2);
+}
+function nlea_EaglerAdapterImpl2__wglDetachShader($p1, $p2) {
+ var var$3;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ var$3 = nlea_EaglerAdapterImpl2_webgl;
+ $p1 = $p1.$obj0;
+ $p2 = $p2.$obj1;
+ var$3.detachShader($p1, $p2);
+}
+function nlea_EaglerAdapterImpl2__wglCompileShader($p1) {
+ var var$2;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ var$2 = nlea_EaglerAdapterImpl2_webgl;
+ $p1 = $p1.$obj1;
+ var$2.compileShader($p1);
+}
+function nlea_EaglerAdapterImpl2__wglLinkProgram($p1) {
+ var var$2;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ var$2 = nlea_EaglerAdapterImpl2_webgl;
+ $p1 = $p1.$obj0;
+ var$2.linkProgram($p1);
+}
+function nlea_EaglerAdapterImpl2__wglShaderSource($p1, $p2) {
+ var var$3;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ var$3 = nlea_EaglerAdapterImpl2_webgl;
+ $p1 = $p1.$obj1;
+ var$3.shaderSource($p1, $rt_ustr($p2));
+}
+function nlea_EaglerAdapterImpl2__wglGetShaderInfoLog($p1) {
+ var var$2;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ var$2 = nlea_EaglerAdapterImpl2_webgl;
+ $p1 = $p1.$obj1;
+ return $rt_str(var$2.getShaderInfoLog($p1));
+}
+function nlea_EaglerAdapterImpl2__wglGetProgramInfoLog($p1) {
+ var var$2;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ var$2 = nlea_EaglerAdapterImpl2_webgl;
+ $p1 = $p1.$obj0;
+ return $rt_str(var$2.getProgramInfoLog($p1));
+}
+function nlea_EaglerAdapterImpl2__wglGetShaderCompiled($p1) {
+ var var$2;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ var$2 = nlea_EaglerAdapterImpl2_webgl;
+ $p1 = $p1.$obj1;
+ return var$2.getShaderParameter($p1, 35713) != 1 ? 0 : 1;
+}
+function nlea_EaglerAdapterImpl2__wglGetProgramLinked($p1) {
+ var var$2;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ var$2 = nlea_EaglerAdapterImpl2_webgl;
+ $p1 = $p1.$obj0;
+ return var$2.getProgramParameter($p1, 35714) != 1 ? 0 : 1;
+}
+function nlea_EaglerAdapterImpl2__wglDeleteShader($p1) {
+ var var$2;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ var$2 = nlea_EaglerAdapterImpl2_webgl;
+ $p1 = $p1.$obj1;
+ var$2.deleteShader($p1);
+}
+function nlea_EaglerAdapterImpl2__wglCreateBuffer() {
+ var var$1;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ var$1 = new nlea_EaglerAdapterImpl2$BufferGL;
+ var$1.$obj2 = nlea_EaglerAdapterImpl2_webgl.createBuffer();
+ return var$1;
+}
+function nlea_EaglerAdapterImpl2__wglBindBuffer($p1, $p2) {
+ var var$3;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ var$3 = nlea_EaglerAdapterImpl2_webgl;
+ $p2 = $p2 !== null ? $p2.$obj2 : null;
+ var$3.bindBuffer($p1, $p2);
+}
+function nlea_EaglerAdapterImpl2__wglBufferData0($p1, $p2, $p3) {
+ var $len, $deevis, $i, var$7, $data;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ $len = $p2.$limit - $p2.$position | 0;
+ $deevis = new Int32Array(nlea_EaglerAdapterImpl2_uploadBuffer.buffer);
+ $i = 0;
+ while ($i < $len) {
+ var$7 = jn_IntBufferImpl_get($p2);
+ $deevis[$i] = var$7;
+ $i = $i + 1 | 0;
+ }
+ $p2 = nlea_EaglerAdapterImpl2_uploadBuffer.buffer;
+ $len = $len * 4 | 0;
+ $data = new Uint8Array($p2, 0, $len);
+ nlea_EaglerAdapterImpl2_webgl.bufferData($p1, $data, $p3);
+}
+function nlea_EaglerAdapterImpl2__wglEnableVertexAttribArray($p1) {
+ nlea_EaglerAdapterImpl2_$callClinit();
+ nlea_EaglerAdapterImpl2_webgl.enableVertexAttribArray($p1);
+}
+function nlea_EaglerAdapterImpl2__wglDisableVertexAttribArray($p1) {
+ nlea_EaglerAdapterImpl2_$callClinit();
+ nlea_EaglerAdapterImpl2_webgl.disableVertexAttribArray($p1);
+}
+function nlea_EaglerAdapterImpl2__wglGetUniformLocation($p1, $p2) {
+ var $u;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ $u = nlea_EaglerAdapterImpl2_webgl;
+ $p1 = $p1.$obj0;
+ $u = $u.getUniformLocation($p1, $rt_ustr($p2));
+ if ($u === null)
+ $p1 = null;
+ else {
+ $p1 = new nlea_EaglerAdapterImpl2$UniformGL;
+ $p1.$obj3 = $u;
+ }
+ return $p1;
+}
+function nlea_EaglerAdapterImpl2__wglBindAttributeLocation($p1, $p2, $p3) {
+ var var$4;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ var$4 = nlea_EaglerAdapterImpl2_webgl;
+ $p1 = $p1.$obj0;
+ var$4.bindAttribLocation($p1, $p2, $rt_ustr($p3));
+}
+function nlea_EaglerAdapterImpl2__wglUniform2f($p1, $p2, $p3) {
+ var var$4;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ if ($p1 !== null) {
+ var$4 = nlea_EaglerAdapterImpl2_webgl;
+ $p1 = $p1.$obj3;
+ var$4.uniform2f($p1, $p2, $p3);
+ }
+}
+function nlea_EaglerAdapterImpl2__wglUniform3f($p1, $p2, $p3, $p4) {
+ var var$5;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ if ($p1 !== null) {
+ var$5 = nlea_EaglerAdapterImpl2_webgl;
+ $p1 = $p1.$obj3;
+ var$5.uniform3f($p1, $p2, $p3, $p4);
+ }
+}
+function nlea_EaglerAdapterImpl2__wglUniform1i($p1, $p2) {
+ var var$3;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ if ($p1 !== null) {
+ var$3 = nlea_EaglerAdapterImpl2_webgl;
+ $p1 = $p1.$obj3;
+ var$3.uniform1i($p1, $p2);
+ }
+}
+function nlea_EaglerAdapterImpl2__wglUniformMat3fv($p1, $mat) {
+ var var$3, var$4;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ nlea_EaglerAdapterImpl2_mat3.set($mat.data);
+ if ($p1 !== null) {
+ var$3 = nlea_EaglerAdapterImpl2_webgl;
+ var$4 = $p1.$obj3;
+ $p1 = nlea_EaglerAdapterImpl2_mat3;
+ var$3.uniformMatrix3fv(var$4, !!0, $p1);
+ }
+}
+function nlea_EaglerAdapterImpl2__wglUniformMat4fv($p1, $mat) {
+ var var$3, var$4;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ nlea_EaglerAdapterImpl2_mat4.set($mat.data);
+ if ($p1 !== null) {
+ var$3 = nlea_EaglerAdapterImpl2_webgl;
+ var$4 = $p1.$obj3;
+ $p1 = nlea_EaglerAdapterImpl2_mat4;
+ var$3.uniformMatrix4fv(var$4, !!0, $p1);
+ }
+}
+function nlea_EaglerAdapterImpl2__wglUseProgram($p1) {
+ var var$2;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ if ($p1 !== null && nlea_EaglerAdapterImpl2_currentProgram != $p1.$hashcode) {
+ nlea_EaglerAdapterImpl2_currentProgram = $p1.$hashcode;
+ var$2 = nlea_EaglerAdapterImpl2_webgl;
+ $p1 = $p1.$obj0;
+ var$2.useProgram($p1);
+ }
+}
+function nlea_EaglerAdapterImpl2__wglGetParameter($p1, $size, $ret) {
+ var var$4;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ if ($p1 == 2978) {
+ var$4 = $ret.data;
+ var$4[0] = nlea_EaglerAdapterImpl2_viewportCache.data[0];
+ var$4[1] = nlea_EaglerAdapterImpl2_viewportCache.data[1];
+ var$4[2] = nlea_EaglerAdapterImpl2_viewportCache.data[2];
+ var$4[3] = nlea_EaglerAdapterImpl2_viewportCache.data[3];
+ }
+}
+function nlea_EaglerAdapterImpl2__wglVertexAttribPointer($p1, $p2, $p3, $p4, $p5, $p6) {
+ nlea_EaglerAdapterImpl2_$callClinit();
+ nlea_EaglerAdapterImpl2_webgl.vertexAttribPointer($p1, $p2, $p3, !!$p4, $p5, $p6);
+}
+function nlea_EaglerAdapterImpl2__wglBindFramebuffer($p1, $p2) {
+ var var$3;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ var$3 = nlea_EaglerAdapterImpl2_webgl;
+ $p2 = $p2 !== null ? $p2.$obj4 : null;
+ var$3.bindFramebuffer($p1, $p2);
+}
+function nlea_EaglerAdapterImpl2__wglFramebufferTexture2D($p1, $p2) {
+ var var$3, var$4;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ var$3 = nlea_EaglerAdapterImpl2_webgl;
+ var$4 = $p2 !== null ? $p2.$obj : null;
+ var$3.framebufferTexture2D(36160, $p1, 3553, var$4, 0);
+}
+function nlea_EaglerAdapterImpl2__wglCreateVertexArray() {
+ var var$1;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ var$1 = new nlea_EaglerAdapterImpl2$BufferArrayGL;
+ var$1.$obj5 = nlea_EaglerAdapterImpl2_webgl.createVertexArray();
+ var$1.$isQuadBufferBound = 0;
+ return var$1;
+}
+function nlea_EaglerAdapterImpl2__wglDeleteVertexArray($p1) {
+ var var$2;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ var$2 = nlea_EaglerAdapterImpl2_webgl;
+ $p1 = $p1.$obj5;
+ var$2.deleteVertexArray($p1);
+}
+function nlea_EaglerAdapterImpl2__wglBindVertexArray($p1) {
+ var var$2;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ var$2 = nlea_EaglerAdapterImpl2_webgl;
+ $p1 = $p1 !== null ? $p1.$obj5 : null;
+ var$2.bindVertexArray($p1);
+}
+function nlea_EaglerAdapterImpl2__wglCreateRenderBuffer() {
+ var var$1;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ var$1 = new nlea_EaglerAdapterImpl2$RenderbufferGL;
+ var$1.$obj6 = nlea_EaglerAdapterImpl2_webgl.createRenderbuffer();
+ return var$1;
+}
+function nlea_EaglerAdapterImpl2__wglBindRenderbuffer($p1) {
+ var var$2;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ var$2 = nlea_EaglerAdapterImpl2_webgl;
+ $p1 = $p1 !== null ? $p1.$obj6 : null;
+ var$2.bindRenderbuffer(36161, $p1);
+}
+function nlea_EaglerAdapterImpl2__wglRenderbufferStorage($p1, $p2, $p3) {
+ nlea_EaglerAdapterImpl2_$callClinit();
+ nlea_EaglerAdapterImpl2_webgl.renderbufferStorage(36161, $p1, $p2, $p3);
+}
+function nlea_EaglerAdapterImpl2__wglFramebufferRenderbuffer($p1, $p2) {
+ var var$3;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ var$3 = nlea_EaglerAdapterImpl2_webgl;
+ $p2 = $p2 !== null ? $p2.$obj6 : null;
+ var$3.framebufferRenderbuffer(36160, $p1, 36161, $p2);
+}
+function nlea_EaglerAdapterImpl2__wglRenderbufferStorageMultisample($p1, $p2, $p3, $p4) {
+ nlea_EaglerAdapterImpl2_$callClinit();
+ nlea_EaglerAdapterImpl2_webgl.renderbufferStorageMultisample(36161, $p1, $p2, $p3, $p4);
+}
+function nlea_EaglerAdapterImpl2__wglBlitFramebuffer($p1, $p2, $p3, $p4, $p5, $p6, $p7, $p8, $p9, $p10) {
+ nlea_EaglerAdapterImpl2_$callClinit();
+ nlea_EaglerAdapterImpl2_webgl.blitFramebuffer($p1, $p2, $p3, $p4, $p5, $p6, $p7, $p8, $p9, $p10);
+}
+function nlea_EaglerAdapterImpl2_mouseNext() {
+ var var$1, var$2, var$3;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ nlea_EaglerAdapterImpl2_currentEvent = null;
+ var$1 = nlea_EaglerAdapterImpl2_mouseEvents.$size ? 0 : 1;
+ a: {
+ if (!var$1) {
+ var$2 = ju_LinkedList_listIterator(nlea_EaglerAdapterImpl2_mouseEvents, 0);
+ var$3 = ju_LinkedList$SequentialListIterator_next(var$2);
+ ju_LinkedList$SequentialListIterator_remove(var$2);
+ var$2 = var$3;
+ nlea_EaglerAdapterImpl2_currentEvent = var$2;
+ if (var$2 !== null) {
+ var$1 = 1;
+ break a;
+ }
+ }
+ var$1 = 0;
+ }
+ return var$1;
+}
+function nlea_EaglerAdapterImpl2_mouseGetEventButton() {
+ var $b;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ if (nlea_EaglerAdapterImpl2_currentEvent === null)
+ return (-1);
+ $b = nlea_EaglerAdapterImpl2_currentEvent.button;
+ if ($b == 1)
+ $b = 2;
+ else if ($b == 2)
+ $b = 1;
+ return $b;
+}
+function nlea_EaglerAdapterImpl2_mouseGetEventButtonState() {
+ nlea_EaglerAdapterImpl2_$callClinit();
+ return nlea_EaglerAdapterImpl2_currentEvent === null ? 0 : jl_String_equals($rt_str(nlea_EaglerAdapterImpl2_currentEvent.type), $rt_s(66));
+}
+function nlea_EaglerAdapterImpl2_mouseIsButtonDown($p1) {
+ nlea_EaglerAdapterImpl2_$callClinit();
+ return nlea_EaglerAdapterImpl2_buttonStates.data[$p1];
+}
+function nlea_EaglerAdapterImpl2_mouseGetEventDWheel() {
+ nlea_EaglerAdapterImpl2_$callClinit();
+ return !jl_String_equals($rt_s(67), $rt_str(nlea_EaglerAdapterImpl2_currentEvent.type)) ? 0 : nlea_EaglerAdapterImpl2_currentEvent.deltaY === 0.0 ? 0 : nlea_EaglerAdapterImpl2_currentEvent.deltaY <= 0.0 ? 1 : (-1);
+}
+function nlea_EaglerAdapterImpl2_mouseGetEventY() {
+ nlea_EaglerAdapterImpl2_$callClinit();
+ return nlea_EaglerAdapterImpl2_currentEvent === null ? (-1) : nlea_EaglerAdapterImpl2_canvas.clientHeight - nlea_EaglerAdapterImpl2_currentEvent.clientY | 0;
+}
+function nlea_EaglerAdapterImpl2_keysNext() {
+ var var$1, var$2, var$3;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ nlea_EaglerAdapterImpl2_currentEventK = null;
+ var$1 = nlea_EaglerAdapterImpl2_keyEvents.$size ? 0 : 1;
+ a: {
+ if (!var$1) {
+ var$2 = ju_LinkedList_listIterator(nlea_EaglerAdapterImpl2_keyEvents, 0);
+ var$3 = ju_LinkedList$SequentialListIterator_next(var$2);
+ ju_LinkedList$SequentialListIterator_remove(var$2);
+ var$2 = var$3;
+ nlea_EaglerAdapterImpl2_currentEventK = var$2;
+ if (var$2 !== null) {
+ var$1 = 1;
+ break a;
+ }
+ }
+ var$1 = 0;
+ }
+ return var$1;
+}
+function nlea_EaglerAdapterImpl2_getEventKey() {
+ nlea_EaglerAdapterImpl2_$callClinit();
+ return nlea_EaglerAdapterImpl2_currentEventK === null ? (-1) : nlea_EaglerAdapterImpl2_remapKey(nlea_EaglerAdapterImpl2_currentEventK.keyCode);
+}
+function nlea_EaglerAdapterImpl2_getEventChar() {
+ var $s;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ if (nlea_EaglerAdapterImpl2_currentEventK === null)
+ return 0;
+ $s = $rt_str(nlea_EaglerAdapterImpl2_currentEventK.key);
+ return nlea_EaglerAdapterImpl2_currentEventK === null ? 32 : $s.$characters.data.length > 1 ? 0 : jl_String_charAt($s, 0);
+}
+function nlea_EaglerAdapterImpl2_getEventKeyState() {
+ nlea_EaglerAdapterImpl2_$callClinit();
+ return nlea_EaglerAdapterImpl2_currentEventK === null ? 0 : jl_String_equals($rt_str(nlea_EaglerAdapterImpl2_currentEventK.type), $rt_s(68)) ? 0 : 1;
+}
+function nlea_EaglerAdapterImpl2_isKeyDown($p1) {
+ nlea_EaglerAdapterImpl2_$callClinit();
+ return nlea_EaglerAdapterImpl2_keyStates.data[$p1];
+}
+function nlea_EaglerAdapterImpl2_getKeyName($p1) {
+ nlea_EaglerAdapterImpl2_$callClinit();
+ return $p1 >= 0 && $p1 < 256 ? nlea_EaglerAdapterImpl2_LWJGLKeyNames.data[$p1] : $rt_s(47);
+}
+function nlea_EaglerAdapterImpl2_updateDisplay() {
+ var var$1, $$je, $ptr, $tmp;
+ $ptr = 0;
+ if ($rt_resuming()) {
+ var $thread = $rt_nativeThread();
+ $ptr = $thread.pop();var$1 = $thread.pop();
+ }
+ main: while (true) { switch ($ptr) {
+ case 0:
+ nlea_EaglerAdapterImpl2_$callClinit();
+ try {
+ var$1 = Long_fromInt(1);
+ $ptr = 1;
+ continue main;
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof jl_InterruptedException) {
+ } else {
+ throw $$e;
+ }
+ }
+ return;
+ case 1:
+ a: {
+ try {
+ jl_Thread_sleep(var$1);
+ if ($rt_suspending()) {
+ break main;
+ }
+ break a;
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof jl_InterruptedException) {
+ } else {
+ throw $$e;
+ }
+ }
+ }
+ return;
+ default: $rt_invalidPointer();
+ }}
+ $rt_nativeThread().push(var$1, $ptr);
+}
+function nlea_EaglerAdapterImpl2_isFocused() {
+ var $yee, $dee;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ $yee = document.pointerLockElement != null ? 1 : 0;
+ $dee = nlea_EaglerAdapterImpl2_pointerLockFlag;
+ nlea_EaglerAdapterImpl2_pointerLockFlag = $yee;
+ if (!$dee && $yee) {
+ nlea_EaglerAdapterImpl2_mouseDX = 0.0;
+ nlea_EaglerAdapterImpl2_mouseDY = 0.0;
+ }
+ a: {
+ b: {
+ if (nlea_EaglerAdapterImpl2_isWindowFocused) {
+ if (!$dee)
+ break b;
+ if ($yee)
+ break b;
+ }
+ $dee = 0;
+ break a;
+ }
+ $dee = 1;
+ }
+ return $dee;
+}
+function nlea_EaglerAdapterImpl2_getCanvasWidth() {
+ var $w, var$2, var$3;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ $w = nlea_EaglerAdapterImpl2_parent.clientWidth;
+ var$2 = nlea_EaglerAdapterImpl2_canvas;
+ var$3 = $w;
+ var$2.width = var$3;
+ return $w;
+}
+function nlea_EaglerAdapterImpl2_getCanvasHeight() {
+ var $h, var$2, var$3;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ $h = nlea_EaglerAdapterImpl2_parent.clientHeight;
+ var$2 = nlea_EaglerAdapterImpl2_canvas;
+ var$3 = $h;
+ var$2.height = var$3;
+ return $h;
+}
+function nlea_EaglerAdapterImpl2_connectWebSocket(var$1) {
+ var thread = $rt_nativeThread();
+ var javaThread = $rt_getThread();
+ if (thread.isResuming()) {
+ thread.status = 0;
+ var result = thread.attribute;
+ if (result instanceof Error) {
+ throw result;
+ }
+ return result;
+ }
+ var callback = function() {};
+ callback.$complete = function(val) {
+ thread.attribute = val;
+ $rt_setThread(javaThread);
+ thread.resume();
+ };
+ callback.$error = function(e) {
+ thread.attribute = $rt_exception(e);
+ $rt_setThread(javaThread);
+ thread.resume();
+ };
+ callback = otpp_AsyncCallbackWrapper_create(callback);
+ return thread.suspend(function() {
+ try {
+ nlea_EaglerAdapterImpl2_connectWebSocket0(var$1, callback);
+ } catch($e) {
+ callback.$error($rt_exception($e));
+ }
+ });
+}
+function nlea_EaglerAdapterImpl2_connectWebSocket0($sockURI, $cb) {
+ var var$3;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ nlea_EaglerAdapterImpl2_sockIsConnecting = 1;
+ nlea_EaglerAdapterImpl2_sock = new WebSocket($rt_ustr($sockURI));
+ var$3 = nlea_EaglerAdapterImpl2_sock;
+ $sockURI = "arraybuffer";
+ var$3.binaryType = $sockURI;
+ $sockURI = nlea_EaglerAdapterImpl2_sock;
+ var$3 = new nlea_EaglerAdapterImpl2$12;
+ var$3.$val$cb0 = $cb;
+ var$3 = otji_JS_function(var$3, "handleEvent");
+ $sockURI.onopen = var$3;
+ $sockURI = nlea_EaglerAdapterImpl2_sock;
+ var$3 = new nlea_EaglerAdapterImpl2$13;
+ var$3.$val$cb1 = $cb;
+ $cb = otji_JS_function(var$3, "handleEvent");
+ $sockURI.onclose = $cb;
+ $sockURI = nlea_EaglerAdapterImpl2_sock;
+ $cb = otji_JS_function(new nlea_EaglerAdapterImpl2$14, "handleEvent");
+ $sockURI.onmessage = $cb;
+}
+function nlea_EaglerAdapterImpl2_writePacket($packet) {
+ var $arr;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ if (nlea_EaglerAdapterImpl2_sock !== null && !nlea_EaglerAdapterImpl2_sockIsConnecting) {
+ $arr = new Uint8Array($packet.data.length);
+ $arr.set($packet.data);
+ nlea_EaglerAdapterImpl2_sock.send($arr.buffer);
+ }
+}
+function nlea_EaglerAdapterImpl2_loadLocalStorage($key) {
+ var var$2, $s;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ var$2 = nlea_EaglerAdapterImpl2_win.localStorage;
+ $s = new jl_StringBuilder;
+ $s.$buffer = $rt_createCharArray(16);
+ jl_AbstractStringBuilder_insert($s, $s.$length, $rt_s(69));
+ jl_AbstractStringBuilder_insert($s, $s.$length, $key);
+ $key = jl_String__init_0($s.$buffer, 0, $s.$length);
+ $s = $rt_str(var$2.getItem($rt_ustr($key)));
+ if ($s === null)
+ return null;
+ return nle_BaseNCodec_decode(nle_Base64__init_0(0, nle_BaseNCodec_CHUNK_SEPARATOR, 0, nle_BaseNCodec$CodecPolicy_LENIANT), jl_String_getBytes0($s, jnc_Charset_forName($rt_s(2))));
+}
+function nlea_EaglerAdapterImpl2_saveLocalStorage($key, $data) {
+ var var$3, var$4, var$5, var$6;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ var$3 = nlea_EaglerAdapterImpl2_win.localStorage;
+ var$4 = new jl_StringBuilder;
+ var$4.$buffer = $rt_createCharArray(16);
+ jl_AbstractStringBuilder_insert(var$4, var$4.$length, $rt_s(69));
+ jl_AbstractStringBuilder_insert(var$4, var$4.$length, $key);
+ var$5 = jl_String__init_0(var$4.$buffer, 0, var$4.$length);
+ $key = new jl_String;
+ var$6 = nle_Base64_encodeBase64($data, 0, 0, 2147483647);
+ $data = var$6.data;
+ var$4 = jnc_Charset_forName($rt_s(2));
+ jl_String_initWithBytes($key, var$6, 0, $data.length, var$4);
+ var$3.setItem($rt_ustr(var$5), $rt_ustr($key));
+}
+function nlea_EaglerAdapterImpl2_getFileChooserResult() {
+ var $b, $array, $ret, var$4, $i, var$6;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ $b = nlea_EaglerAdapterImpl2_getFileChooserResult0$js_body$_151();
+ if ($b === null)
+ return null;
+ $array = new Uint8Array($b);
+ $ret = $rt_createByteArray($array.byteLength);
+ var$4 = $ret.data;
+ $i = 0;
+ var$6 = var$4.length;
+ while ($i < var$6) {
+ var$4[$i] = $array[$i] << 24 >> 24;
+ $i = $i + 1 | 0;
+ }
+ return $ret;
+}
+function nlea_EaglerAdapterImpl2_setListenerPos($x, $y, $z, $vx, $vy, $vz, $pitch, $yaw) {
+ var var$9, $var11, $var13, $var14, $var15, $l;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ $vy = -$yaw * 0.01745329238474369 - 3.1415927410125732;
+ var$9 = nms_MathHelper_SIN_TABLE.data;
+ $vx = $vy * 10430.3779296875;
+ $var11 = var$9[($vx + 16384.0 | 0) & 65535];
+ $var13 = -nms_MathHelper_SIN_TABLE.data[($vx | 0) & 65535];
+ $vy = -$pitch * 0.01745329238474369 - 3.1415927410125732;
+ $var14 = -nms_MathHelper_SIN_TABLE.data[($vy * 10430.3779296875 | 0) & 65535];
+ $var15 = -$var11;
+ $l = nlea_EaglerAdapterImpl2_audioctx.listener;
+ $l.setPosition($x, $y, $z);
+ $l.setOrientation($var13, $var14, $var15, 0.0, 1.0, 0.0);
+}
+function nlea_EaglerAdapterImpl2_decodeAudioAsync(var$1) {
+ var thread = $rt_nativeThread();
+ var javaThread = $rt_getThread();
+ if (thread.isResuming()) {
+ thread.status = 0;
+ var result = thread.attribute;
+ if (result instanceof Error) {
+ throw result;
+ }
+ return result;
+ }
+ var callback = function() {};
+ callback.$complete = function(val) {
+ thread.attribute = val;
+ $rt_setThread(javaThread);
+ thread.resume();
+ };
+ callback.$error = function(e) {
+ thread.attribute = $rt_exception(e);
+ $rt_setThread(javaThread);
+ thread.resume();
+ };
+ callback = otpp_AsyncCallbackWrapper_create(callback);
+ return thread.suspend(function() {
+ try {
+ nlea_EaglerAdapterImpl2_decodeAudioAsync0(var$1, callback);
+ } catch($e) {
+ callback.$error($rt_exception($e));
+ }
+ });
+}
+function nlea_EaglerAdapterImpl2_decodeAudioAsync0($buffer, $cb) {
+ var var$3, var$4, var$5;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ var$3 = nlea_EaglerAdapterImpl2_audioctx;
+ var$4 = new nlea_EaglerAdapterImpl2$15;
+ var$4.$val$cb2 = $cb;
+ var$5 = new nlea_EaglerAdapterImpl2$16;
+ var$5.$val$cb3 = $cb;
+ var$3.decodeAudioData($buffer, otji_JS_function(var$4, "onSuccess"), otji_JS_function(var$5, "onError"));
+}
+function nlea_EaglerAdapterImpl2_getBufferFor($fileName) {
+ var $ret, var$3, var$4, $buf, $ptr, $tmp;
+ $ptr = 0;
+ if ($rt_resuming()) {
+ var $thread = $rt_nativeThread();
+ $ptr = $thread.pop();$buf = $thread.pop();var$4 = $thread.pop();var$3 = $thread.pop();$ret = $thread.pop();$fileName = $thread.pop();
+ }
+ main: while (true) { switch ($ptr) {
+ case 0:
+ nlea_EaglerAdapterImpl2_$callClinit();
+ $ret = ju_HashMap_getEntry(nlea_EaglerAdapterImpl2_loadedSoundFiles, $fileName);
+ $ret = $ret === null ? null : $ret.$value0;
+ if ($ret !== null)
+ return $ret.$buffer1;
+ if (!($fileName === $rt_s(58) ? 1 : jl_String_startsWith($fileName, $rt_s(58), 0)))
+ $ret = $fileName;
+ else {
+ var$3 = $fileName.$characters.data.length;
+ if (1 > var$3) {
+ $fileName = new jl_IndexOutOfBoundsException;
+ $fileName.$suppressionEnabled = 1;
+ $fileName.$writableStackTrace = 1;
+ $rt_throw($fileName);
+ }
+ $ret = jl_String__init_0($fileName.$characters, 1, var$3 - 1 | 0);
+ }
+ $ret = ju_HashMap_getEntry(nle_AssetRepository_filePool, $ret);
+ var$4 = $ret === null ? null : $ret.$value0;
+ $buf = new Uint8Array(var$4.data.length);
+ $buf.set(var$4.data);
+ $ret = new nlea_EaglerAdapterImpl2$AudioBufferX;
+ $buf = $buf.buffer;
+ $ptr = 1;
+ case 1:
+ $tmp = nlea_EaglerAdapterImpl2_decodeAudioAsync($buf);
+ if ($rt_suspending()) {
+ break main;
+ }
+ $buf = $tmp;
+ $ret.$buffer1 = $buf;
+ ju_HashMap_putImpl(nlea_EaglerAdapterImpl2_loadedSoundFiles, $fileName, $ret);
+ return $ret.$buffer1;
+ default: $rt_invalidPointer();
+ }}
+ $rt_nativeThread().push($fileName, $ret, var$3, var$4, $buf, $ptr);
+}
+function nlea_EaglerAdapterImpl2_beginPlayback($fileName, $x, $y, $z, $volume, $pitch) {
+ var $b, $s, $p, $g, $theId, var$12, $ptr, $tmp;
+ $ptr = 0;
+ if ($rt_resuming()) {
+ var $thread = $rt_nativeThread();
+ $ptr = $thread.pop();var$12 = $thread.pop();$theId = $thread.pop();$g = $thread.pop();$p = $thread.pop();$s = $thread.pop();$b = $thread.pop();$pitch = $thread.pop();$volume = $thread.pop();$z = $thread.pop();$y = $thread.pop();$x = $thread.pop();$fileName = $thread.pop();
+ }
+ main: while (true) { switch ($ptr) {
+ case 0:
+ nlea_EaglerAdapterImpl2_$callClinit();
+ $ptr = 1;
+ case 1:
+ $tmp = nlea_EaglerAdapterImpl2_getBufferFor($fileName);
+ if ($rt_suspending()) {
+ break main;
+ }
+ $b = $tmp;
+ if ($b === null)
+ return (-1);
+ $s = nlea_EaglerAdapterImpl2_audioctx.createBufferSource();
+ $s.buffer = $b;
+ $fileName = $s.playbackRate;
+ $b = $pitch;
+ $fileName.value = $b;
+ $p = nlea_EaglerAdapterImpl2_audioctx.createPanner();
+ $p.setPosition($x, $y, $z);
+ $fileName = $volume * 16.0 + 0.10000000149011612;
+ $p.maxDistance = $fileName;
+ $fileName = 1.0;
+ $p.rolloffFactor = $fileName;
+ $fileName = "linear";
+ $p.distanceModel = $fileName;
+ $fileName = "HRTF";
+ $p.panningModel = $fileName;
+ $fileName = 360.0;
+ $p.coneInnerAngle = $fileName;
+ $fileName = 0.0;
+ $p.coneOuterAngle = $fileName;
+ $b = 0.0;
+ $p.coneOuterGain = $b;
+ $p.setOrientation(0.0, 1.0, 0.0);
+ $g = nlea_EaglerAdapterImpl2_audioctx.createGain();
+ $fileName = $g.gain;
+ if ($volume > 1.0)
+ $volume = 1.0;
+ $b = $volume;
+ $fileName.value = $b;
+ $s.connect($g);
+ $g.connect($p);
+ $fileName = nlea_EaglerAdapterImpl2_audioctx.destination;
+ $p.connect($fileName);
+ $s.start(0.0, 0.03);
+ $theId = nlea_EaglerAdapterImpl2_playbackId + 1 | 0;
+ nlea_EaglerAdapterImpl2_playbackId = $theId;
+ $fileName = nlea_EaglerAdapterImpl2_activeSoundEffects;
+ $b = jl_Integer_valueOf($theId);
+ var$12 = new nlea_EaglerAdapterImpl2$AudioBufferSourceNodeX;
+ var$12.$source = $s;
+ var$12.$panner = $p;
+ var$12.$gain = $g;
+ ju_HashMap_putImpl($fileName, $b, var$12);
+ $b = new nlea_EaglerAdapterImpl2$17;
+ $b.$val$theId = $theId;
+ $fileName = otji_JS_function($b, "handleEvent");
+ $s.onended = $fileName;
+ return $theId;
+ default: $rt_invalidPointer();
+ }}
+ $rt_nativeThread().push($fileName, $x, $y, $z, $volume, $pitch, $b, $s, $p, $g, $theId, var$12, $ptr);
+}
+function nlea_EaglerAdapterImpl2_beginPlaybackStatic($fileName, $volume, $pitch) {
+ var $b, $s, $g, $theId, var$8, var$9, $ptr, $tmp;
+ $ptr = 0;
+ if ($rt_resuming()) {
+ var $thread = $rt_nativeThread();
+ $ptr = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();$theId = $thread.pop();$g = $thread.pop();$s = $thread.pop();$b = $thread.pop();$pitch = $thread.pop();$volume = $thread.pop();$fileName = $thread.pop();
+ }
+ main: while (true) { switch ($ptr) {
+ case 0:
+ nlea_EaglerAdapterImpl2_$callClinit();
+ $ptr = 1;
+ case 1:
+ $tmp = nlea_EaglerAdapterImpl2_getBufferFor($fileName);
+ if ($rt_suspending()) {
+ break main;
+ }
+ $b = $tmp;
+ if ($b === null)
+ return (-1);
+ $s = nlea_EaglerAdapterImpl2_audioctx.createBufferSource();
+ $s.buffer = $b;
+ $fileName = $s.playbackRate;
+ $b = $pitch;
+ $fileName.value = $b;
+ $g = nlea_EaglerAdapterImpl2_audioctx.createGain();
+ $fileName = $g.gain;
+ if ($volume > 1.0)
+ $volume = 1.0;
+ $b = $volume;
+ $fileName.value = $b;
+ $s.connect($g);
+ $fileName = nlea_EaglerAdapterImpl2_audioctx.destination;
+ $g.connect($fileName);
+ $s.start(0.0, 0.03);
+ $theId = nlea_EaglerAdapterImpl2_playbackId + 1 | 0;
+ nlea_EaglerAdapterImpl2_playbackId = $theId;
+ $b = nlea_EaglerAdapterImpl2_activeSoundEffects;
+ var$8 = jl_Integer_valueOf($theId);
+ var$9 = new nlea_EaglerAdapterImpl2$AudioBufferSourceNodeX;
+ $fileName = null;
+ var$9.$source = $s;
+ var$9.$panner = $fileName;
+ var$9.$gain = $g;
+ ju_HashMap_putImpl($b, var$8, var$9);
+ $fileName = new nlea_EaglerAdapterImpl2$18;
+ $fileName.$val$theId0 = $theId;
+ $fileName = otji_JS_function($fileName, "handleEvent");
+ $s.onended = $fileName;
+ return nlea_EaglerAdapterImpl2_playbackId;
+ default: $rt_invalidPointer();
+ }}
+ $rt_nativeThread().push($fileName, $volume, $pitch, $b, $s, $g, $theId, var$8, var$9, $ptr);
+}
+function nlea_EaglerAdapterImpl2_setPitch($id, $pitch) {
+ var $b, var$4;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ $b = ju_HashMap_getEntry(nlea_EaglerAdapterImpl2_activeSoundEffects, jl_Integer_valueOf($id));
+ $b = $b === null ? null : $b.$value0;
+ if ($b !== null) {
+ $b = $b.$source.playbackRate;
+ var$4 = $pitch;
+ $b.value = var$4;
+ }
+}
+function nlea_EaglerAdapterImpl2_setVolume($id, $volume) {
+ var $b, var$4, var$5;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ $b = ju_HashMap_getEntry(nlea_EaglerAdapterImpl2_activeSoundEffects, jl_Integer_valueOf($id));
+ $b = $b === null ? null : $b.$value0;
+ if ($b !== null) {
+ var$4 = $b.$gain.gain;
+ var$5 = $volume <= 1.0 ? $volume : 1.0;
+ var$4.value = var$5;
+ if ($b.$panner !== null) {
+ $b = $b.$panner;
+ var$4 = $volume * 16.0 + 0.10000000149011612;
+ $b.maxDistance = var$4;
+ }
+ }
+}
+function nlea_EaglerAdapterImpl2_moveSound($id, $x, $y, $z, $vx, $vy, $vz) {
+ var $b;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ $b = ju_HashMap_getEntry(nlea_EaglerAdapterImpl2_activeSoundEffects, jl_Integer_valueOf($id));
+ $b = $b === null ? null : $b.$value0;
+ if ($b !== null && $b.$panner !== null)
+ $b.$panner.setPosition($x, $y, $z);
+}
+function nlea_EaglerAdapterImpl2_endSound($id) {
+ var $b;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ $b = ju_HashMap_getEntry(nlea_EaglerAdapterImpl2_activeSoundEffects, jl_Integer_valueOf($id));
+ $b = $b === null ? null : $b.$value0;
+ if ($b !== null) {
+ $b.$source.stop();
+ ju_HashMap_removeEntry(nlea_EaglerAdapterImpl2_activeSoundEffects, jl_Integer_valueOf($id));
+ }
+}
+function nlea_EaglerAdapterImpl2_maxMemory() {
+ nlea_EaglerAdapterImpl2_$callClinit();
+ return Long_fromInt(1073741824);
+}
+function nlea_EaglerAdapterImpl2_totalMemory() {
+ nlea_EaglerAdapterImpl2_$callClinit();
+ return Long_fromInt(1073741824);
+}
+function nlea_EaglerAdapterImpl2_freeMemory() {
+ nlea_EaglerAdapterImpl2_$callClinit();
+ return Long_ZERO;
+}
+function nlea_EaglerAdapterImpl2__wAppendLowLevelBuffer($arr) {
+ var $a, var$3;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ $a = $arr;
+ if ((nlea_EaglerAdapterImpl2_appendbufferindex + $a.length | 0) < nlea_EaglerAdapterImpl2_appendbuffer.length) {
+ $arr = nlea_EaglerAdapterImpl2_appendbuffer;
+ var$3 = nlea_EaglerAdapterImpl2_appendbufferindex;
+ $arr.set($a, var$3);
+ nlea_EaglerAdapterImpl2_appendbufferindex = nlea_EaglerAdapterImpl2_appendbufferindex + $a.length | 0;
+ }
+}
+function nlea_EaglerAdapterImpl2__wGetLowLevelBuffersAppended() {
+ var $ret, var$2;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ $ret = nlea_EaglerAdapterImpl2_appendbuffer.buffer;
+ var$2 = nlea_EaglerAdapterImpl2_appendbufferindex;
+ $ret = new Int32Array($ret, 0, var$2);
+ nlea_EaglerAdapterImpl2_appendbufferindex = 0;
+ return $ret;
+}
+function nlea_EaglerAdapterImpl2_remapKey($k) {
+ nlea_EaglerAdapterImpl2_$callClinit();
+ return $k <= nlea_EaglerAdapterImpl2_LWJGLKeyCodes.data.length && $k >= 0 ? nlea_EaglerAdapterImpl2_LWJGLKeyCodes.data[$k] : (-1);
+}
+function nlea_EaglerAdapterImpl2__clinit_() {
+ var var$1, var$2;
+ nlea_EaglerAdapterImpl2_isAnisotropicPatched = 1;
+ nlea_EaglerAdapterImpl2_doc = null;
+ nlea_EaglerAdapterImpl2_parent = null;
+ nlea_EaglerAdapterImpl2_canvas = null;
+ nlea_EaglerAdapterImpl2_webgl = null;
+ nlea_EaglerAdapterImpl2_win = null;
+ nlea_EaglerAdapterImpl2_loadedPackage = null;
+ nlea_EaglerAdapterImpl2_contextmenu = null;
+ nlea_EaglerAdapterImpl2_mousedown = null;
+ nlea_EaglerAdapterImpl2_mouseup = null;
+ nlea_EaglerAdapterImpl2_mousemove = null;
+ nlea_EaglerAdapterImpl2_keydown = null;
+ nlea_EaglerAdapterImpl2_keyup = null;
+ nlea_EaglerAdapterImpl2_keypress = null;
+ nlea_EaglerAdapterImpl2_wheel = null;
+ nlea_EaglerAdapterImpl2_mouseEvents = ju_LinkedList__init_0();
+ nlea_EaglerAdapterImpl2_keyEvents = ju_LinkedList__init_0();
+ nlea_EaglerAdapterImpl2_mouseX = 0;
+ nlea_EaglerAdapterImpl2_mouseY = 0;
+ nlea_EaglerAdapterImpl2_mouseDX = 0.0;
+ nlea_EaglerAdapterImpl2_mouseDY = 0.0;
+ nlea_EaglerAdapterImpl2_width = 0;
+ nlea_EaglerAdapterImpl2_height = 0;
+ nlea_EaglerAdapterImpl2_enableRepeatEvents = 0;
+ nlea_EaglerAdapterImpl2_isWindowFocused = 1;
+ nlea_EaglerAdapterImpl2_progId = 0;
+ nlea_EaglerAdapterImpl2_viewportCache = $rt_createIntArray(4);
+ nlea_EaglerAdapterImpl2_uploadBuffer = new Uint8Array(new ArrayBuffer(4194304));
+ nlea_EaglerAdapterImpl2_mat2 = new Float32Array(4);
+ nlea_EaglerAdapterImpl2_mat3 = new Float32Array(9);
+ nlea_EaglerAdapterImpl2_mat4 = new Float32Array(16);
+ nlea_EaglerAdapterImpl2_currentProgram = (-1);
+ nlea_EaglerAdapterImpl2_currentEvent = null;
+ nlea_EaglerAdapterImpl2_currentEventK = null;
+ nlea_EaglerAdapterImpl2_buttonStates = $rt_createBooleanArray(8);
+ nlea_EaglerAdapterImpl2_keyStates = $rt_createBooleanArray(256);
+ nlea_EaglerAdapterImpl2_pointerLockFlag = 0;
+ nlea_EaglerAdapterImpl2_sock = null;
+ nlea_EaglerAdapterImpl2_sockIsConnecting = 0;
+ nlea_EaglerAdapterImpl2_readPackets = ju_LinkedList__init_0();
+ nlea_EaglerAdapterImpl2_playbackId = 0;
+ nlea_EaglerAdapterImpl2_loadedSoundFiles = ju_HashMap__init_0();
+ nlea_EaglerAdapterImpl2_audioctx = null;
+ nlea_EaglerAdapterImpl2_activeSoundEffects = ju_HashMap__init_0();
+ nlea_EaglerAdapterImpl2_connected = 0;
+ var$1 = $rt_createArray(jl_String, 256);
+ var$2 = var$1.data;
+ var$2[0] = $rt_s(70);
+ var$2[1] = $rt_s(71);
+ var$2[2] = $rt_s(72);
+ var$2[3] = $rt_s(73);
+ var$2[4] = $rt_s(74);
+ var$2[5] = $rt_s(75);
+ var$2[6] = $rt_s(76);
+ var$2[7] = $rt_s(77);
+ var$2[8] = $rt_s(78);
+ var$2[9] = $rt_s(79);
+ var$2[10] = $rt_s(80);
+ var$2[11] = $rt_s(81);
+ var$2[12] = $rt_s(82);
+ var$2[13] = $rt_s(83);
+ var$2[14] = $rt_s(84);
+ var$2[15] = $rt_s(85);
+ var$2[16] = $rt_s(86);
+ var$2[17] = $rt_s(87);
+ var$2[18] = $rt_s(88);
+ var$2[19] = $rt_s(89);
+ var$2[20] = $rt_s(90);
+ var$2[21] = $rt_s(91);
+ var$2[22] = $rt_s(92);
+ var$2[23] = $rt_s(93);
+ var$2[24] = $rt_s(94);
+ var$2[25] = $rt_s(95);
+ var$2[26] = $rt_s(96);
+ var$2[27] = $rt_s(97);
+ var$2[28] = $rt_s(98);
+ var$2[29] = $rt_s(99);
+ var$2[30] = $rt_s(100);
+ var$2[31] = $rt_s(101);
+ var$2[32] = $rt_s(102);
+ var$2[33] = $rt_s(103);
+ var$2[34] = $rt_s(104);
+ var$2[35] = $rt_s(105);
+ var$2[36] = $rt_s(106);
+ var$2[37] = $rt_s(107);
+ var$2[38] = $rt_s(108);
+ var$2[39] = $rt_s(109);
+ var$2[40] = $rt_s(110);
+ var$2[41] = $rt_s(111);
+ var$2[42] = $rt_s(112);
+ var$2[43] = $rt_s(113);
+ var$2[44] = $rt_s(114);
+ var$2[45] = $rt_s(115);
+ var$2[46] = $rt_s(116);
+ var$2[47] = $rt_s(117);
+ var$2[48] = $rt_s(118);
+ var$2[49] = $rt_s(119);
+ var$2[50] = $rt_s(120);
+ var$2[51] = $rt_s(121);
+ var$2[52] = $rt_s(122);
+ var$2[53] = $rt_s(123);
+ var$2[54] = $rt_s(124);
+ var$2[55] = $rt_s(125);
+ var$2[56] = $rt_s(126);
+ var$2[57] = $rt_s(127);
+ var$2[58] = $rt_s(128);
+ var$2[59] = $rt_s(129);
+ var$2[60] = $rt_s(130);
+ var$2[61] = $rt_s(131);
+ var$2[62] = $rt_s(132);
+ var$2[63] = $rt_s(133);
+ var$2[64] = $rt_s(134);
+ var$2[65] = $rt_s(135);
+ var$2[66] = $rt_s(136);
+ var$2[67] = $rt_s(137);
+ var$2[68] = $rt_s(138);
+ var$2[69] = $rt_s(139);
+ var$2[70] = $rt_s(140);
+ var$2[71] = $rt_s(141);
+ var$2[72] = $rt_s(142);
+ var$2[73] = $rt_s(143);
+ var$2[74] = $rt_s(144);
+ var$2[75] = $rt_s(145);
+ var$2[76] = $rt_s(146);
+ var$2[77] = $rt_s(147);
+ var$2[78] = $rt_s(148);
+ var$2[79] = $rt_s(149);
+ var$2[80] = $rt_s(150);
+ var$2[81] = $rt_s(151);
+ var$2[82] = $rt_s(152);
+ var$2[83] = $rt_s(153);
+ var$2[84] = $rt_s(47);
+ var$2[85] = $rt_s(47);
+ var$2[86] = $rt_s(47);
+ var$2[87] = $rt_s(154);
+ var$2[88] = $rt_s(155);
+ var$2[89] = $rt_s(47);
+ var$2[90] = $rt_s(47);
+ var$2[91] = $rt_s(47);
+ var$2[92] = $rt_s(47);
+ var$2[93] = $rt_s(47);
+ var$2[94] = $rt_s(47);
+ var$2[95] = $rt_s(47);
+ var$2[96] = $rt_s(47);
+ var$2[97] = $rt_s(47);
+ var$2[98] = $rt_s(47);
+ var$2[99] = $rt_s(47);
+ var$2[100] = $rt_s(156);
+ var$2[101] = $rt_s(157);
+ var$2[102] = $rt_s(158);
+ var$2[103] = $rt_s(159);
+ var$2[104] = $rt_s(160);
+ var$2[105] = $rt_s(161);
+ var$2[106] = $rt_s(47);
+ var$2[107] = $rt_s(47);
+ var$2[108] = $rt_s(47);
+ var$2[109] = $rt_s(47);
+ var$2[110] = $rt_s(47);
+ var$2[111] = $rt_s(47);
+ var$2[112] = $rt_s(162);
+ var$2[113] = $rt_s(163);
+ var$2[114] = $rt_s(47);
+ var$2[115] = $rt_s(47);
+ var$2[116] = $rt_s(47);
+ var$2[117] = $rt_s(47);
+ var$2[118] = $rt_s(47);
+ var$2[119] = $rt_s(47);
+ var$2[120] = $rt_s(47);
+ var$2[121] = $rt_s(164);
+ var$2[122] = $rt_s(47);
+ var$2[123] = $rt_s(165);
+ var$2[124] = $rt_s(47);
+ var$2[125] = $rt_s(166);
+ var$2[126] = $rt_s(47);
+ var$2[127] = $rt_s(47);
+ var$2[128] = $rt_s(47);
+ var$2[129] = $rt_s(47);
+ var$2[130] = $rt_s(47);
+ var$2[131] = $rt_s(47);
+ var$2[132] = $rt_s(47);
+ var$2[133] = $rt_s(47);
+ var$2[134] = $rt_s(47);
+ var$2[135] = $rt_s(47);
+ var$2[136] = $rt_s(47);
+ var$2[137] = $rt_s(47);
+ var$2[138] = $rt_s(47);
+ var$2[139] = $rt_s(47);
+ var$2[140] = $rt_s(47);
+ var$2[141] = $rt_s(167);
+ var$2[142] = $rt_s(47);
+ var$2[143] = $rt_s(47);
+ var$2[144] = $rt_s(168);
+ var$2[145] = $rt_s(169);
+ var$2[146] = $rt_s(170);
+ var$2[147] = $rt_s(171);
+ var$2[148] = $rt_s(172);
+ var$2[149] = $rt_s(173);
+ var$2[150] = $rt_s(174);
+ var$2[151] = $rt_s(175);
+ var$2[152] = $rt_s(47);
+ var$2[153] = $rt_s(47);
+ var$2[154] = $rt_s(47);
+ var$2[155] = $rt_s(47);
+ var$2[156] = $rt_s(176);
+ var$2[157] = $rt_s(177);
+ var$2[158] = $rt_s(47);
+ var$2[159] = $rt_s(47);
+ var$2[160] = $rt_s(47);
+ var$2[161] = $rt_s(47);
+ var$2[162] = $rt_s(47);
+ var$2[163] = $rt_s(47);
+ var$2[164] = $rt_s(47);
+ var$2[165] = $rt_s(47);
+ var$2[166] = $rt_s(47);
+ var$2[167] = $rt_s(178);
+ var$2[168] = $rt_s(47);
+ var$2[169] = $rt_s(47);
+ var$2[170] = $rt_s(47);
+ var$2[171] = $rt_s(47);
+ var$2[172] = $rt_s(47);
+ var$2[173] = $rt_s(47);
+ var$2[174] = $rt_s(47);
+ var$2[175] = $rt_s(47);
+ var$2[176] = $rt_s(47);
+ var$2[177] = $rt_s(47);
+ var$2[178] = $rt_s(47);
+ var$2[179] = $rt_s(179);
+ var$2[180] = $rt_s(47);
+ var$2[181] = $rt_s(180);
+ var$2[182] = $rt_s(47);
+ var$2[183] = $rt_s(181);
+ var$2[184] = $rt_s(182);
+ var$2[185] = $rt_s(47);
+ var$2[186] = $rt_s(47);
+ var$2[187] = $rt_s(47);
+ var$2[188] = $rt_s(47);
+ var$2[189] = $rt_s(47);
+ var$2[190] = $rt_s(47);
+ var$2[191] = $rt_s(47);
+ var$2[192] = $rt_s(47);
+ var$2[193] = $rt_s(47);
+ var$2[194] = $rt_s(47);
+ var$2[195] = $rt_s(47);
+ var$2[196] = $rt_s(183);
+ var$2[197] = $rt_s(184);
+ var$2[198] = $rt_s(47);
+ var$2[199] = $rt_s(185);
+ var$2[200] = $rt_s(186);
+ var$2[201] = $rt_s(187);
+ var$2[202] = $rt_s(47);
+ var$2[203] = $rt_s(188);
+ var$2[204] = $rt_s(47);
+ var$2[205] = $rt_s(189);
+ var$2[206] = $rt_s(47);
+ var$2[207] = $rt_s(190);
+ var$2[208] = $rt_s(191);
+ var$2[209] = $rt_s(192);
+ var$2[210] = $rt_s(193);
+ var$2[211] = $rt_s(194);
+ var$2[212] = $rt_s(47);
+ var$2[213] = $rt_s(47);
+ var$2[214] = $rt_s(47);
+ var$2[215] = $rt_s(47);
+ var$2[216] = $rt_s(47);
+ var$2[217] = $rt_s(47);
+ var$2[218] = $rt_s(195);
+ var$2[219] = $rt_s(196);
+ var$2[220] = $rt_s(197);
+ var$2[221] = $rt_s(198);
+ var$2[222] = $rt_s(199);
+ var$2[223] = $rt_s(200);
+ var$2[224] = $rt_s(47);
+ var$2[225] = $rt_s(47);
+ var$2[226] = $rt_s(47);
+ var$2[227] = $rt_s(47);
+ var$2[228] = $rt_s(47);
+ var$2[229] = $rt_s(47);
+ var$2[230] = $rt_s(47);
+ var$2[231] = $rt_s(47);
+ var$2[232] = $rt_s(47);
+ var$2[233] = $rt_s(47);
+ var$2[234] = $rt_s(47);
+ var$2[235] = $rt_s(47);
+ var$2[236] = $rt_s(47);
+ var$2[237] = $rt_s(47);
+ var$2[238] = $rt_s(47);
+ var$2[239] = $rt_s(47);
+ var$2[240] = $rt_s(47);
+ var$2[241] = $rt_s(47);
+ var$2[242] = $rt_s(47);
+ var$2[243] = $rt_s(47);
+ var$2[244] = $rt_s(47);
+ var$2[245] = $rt_s(47);
+ var$2[246] = $rt_s(47);
+ var$2[247] = $rt_s(47);
+ var$2[248] = $rt_s(47);
+ var$2[249] = $rt_s(47);
+ var$2[250] = $rt_s(47);
+ var$2[251] = $rt_s(47);
+ var$2[252] = $rt_s(47);
+ var$2[253] = $rt_s(47);
+ var$2[254] = $rt_s(47);
+ var$2[255] = $rt_s(47);
+ nlea_EaglerAdapterImpl2_LWJGLKeyNames = var$1;
+ var$1 = $rt_createIntArray(224);
+ var$2 = var$1.data;
+ var$2[0] = (-1);
+ var$2[1] = (-1);
+ var$2[2] = (-1);
+ var$2[3] = (-1);
+ var$2[4] = (-1);
+ var$2[5] = (-1);
+ var$2[6] = (-1);
+ var$2[7] = (-1);
+ var$2[8] = 14;
+ var$2[9] = 15;
+ var$2[10] = (-1);
+ var$2[11] = (-1);
+ var$2[12] = (-1);
+ var$2[13] = 28;
+ var$2[14] = (-1);
+ var$2[15] = (-1);
+ var$2[16] = 42;
+ var$2[17] = 29;
+ var$2[18] = 56;
+ var$2[19] = (-1);
+ var$2[20] = (-1);
+ var$2[21] = (-1);
+ var$2[22] = (-1);
+ var$2[23] = (-1);
+ var$2[24] = (-1);
+ var$2[25] = (-1);
+ var$2[26] = (-1);
+ var$2[27] = 1;
+ var$2[28] = (-1);
+ var$2[29] = (-1);
+ var$2[30] = (-1);
+ var$2[31] = (-1);
+ var$2[32] = 57;
+ var$2[33] = 210;
+ var$2[34] = 201;
+ var$2[35] = 207;
+ var$2[36] = 199;
+ var$2[37] = 207;
+ var$2[38] = 199;
+ var$2[39] = 203;
+ var$2[40] = 200;
+ var$2[41] = 205;
+ var$2[42] = 208;
+ var$2[43] = (-1);
+ var$2[44] = (-1);
+ var$2[45] = 210;
+ var$2[46] = 211;
+ var$2[47] = 211;
+ var$2[48] = 11;
+ var$2[49] = 2;
+ var$2[50] = 3;
+ var$2[51] = 4;
+ var$2[52] = 5;
+ var$2[53] = 6;
+ var$2[54] = 7;
+ var$2[55] = 8;
+ var$2[56] = 9;
+ var$2[57] = 10;
+ var$2[58] = (-1);
+ var$2[59] = (-1);
+ var$2[60] = (-1);
+ var$2[61] = (-1);
+ var$2[62] = (-1);
+ var$2[63] = (-1);
+ var$2[64] = (-1);
+ var$2[65] = 30;
+ var$2[66] = 48;
+ var$2[67] = 46;
+ var$2[68] = 32;
+ var$2[69] = 18;
+ var$2[70] = 33;
+ var$2[71] = 34;
+ var$2[72] = 35;
+ var$2[73] = 23;
+ var$2[74] = 36;
+ var$2[75] = 37;
+ var$2[76] = 38;
+ var$2[77] = 50;
+ var$2[78] = 49;
+ var$2[79] = 24;
+ var$2[80] = 25;
+ var$2[81] = 16;
+ var$2[82] = 19;
+ var$2[83] = 31;
+ var$2[84] = 20;
+ var$2[85] = 22;
+ var$2[86] = 47;
+ var$2[87] = 17;
+ var$2[88] = 45;
+ var$2[89] = 21;
+ var$2[90] = 44;
+ var$2[91] = (-1);
+ var$2[92] = (-1);
+ var$2[93] = (-1);
+ var$2[94] = (-1);
+ var$2[95] = (-1);
+ var$2[96] = (-1);
+ var$2[97] = (-1);
+ var$2[98] = (-1);
+ var$2[99] = (-1);
+ var$2[100] = (-1);
+ var$2[101] = (-1);
+ var$2[102] = (-1);
+ var$2[103] = (-1);
+ var$2[104] = (-1);
+ var$2[105] = (-1);
+ var$2[106] = (-1);
+ var$2[107] = (-1);
+ var$2[108] = (-1);
+ var$2[109] = 12;
+ var$2[110] = 52;
+ var$2[111] = 53;
+ var$2[112] = (-1);
+ var$2[113] = (-1);
+ var$2[114] = (-1);
+ var$2[115] = (-1);
+ var$2[116] = (-1);
+ var$2[117] = (-1);
+ var$2[118] = (-1);
+ var$2[119] = (-1);
+ var$2[120] = (-1);
+ var$2[121] = (-1);
+ var$2[122] = (-1);
+ var$2[123] = (-1);
+ var$2[124] = (-1);
+ var$2[125] = (-1);
+ var$2[126] = (-1);
+ var$2[127] = (-1);
+ var$2[128] = (-1);
+ var$2[129] = (-1);
+ var$2[130] = (-1);
+ var$2[131] = (-1);
+ var$2[132] = (-1);
+ var$2[133] = (-1);
+ var$2[134] = (-1);
+ var$2[135] = (-1);
+ var$2[136] = (-1);
+ var$2[137] = (-1);
+ var$2[138] = (-1);
+ var$2[139] = (-1);
+ var$2[140] = (-1);
+ var$2[141] = (-1);
+ var$2[142] = (-1);
+ var$2[143] = (-1);
+ var$2[144] = (-1);
+ var$2[145] = (-1);
+ var$2[146] = (-1);
+ var$2[147] = (-1);
+ var$2[148] = (-1);
+ var$2[149] = (-1);
+ var$2[150] = (-1);
+ var$2[151] = (-1);
+ var$2[152] = (-1);
+ var$2[153] = (-1);
+ var$2[154] = (-1);
+ var$2[155] = (-1);
+ var$2[156] = (-1);
+ var$2[157] = (-1);
+ var$2[158] = (-1);
+ var$2[159] = (-1);
+ var$2[160] = (-1);
+ var$2[161] = (-1);
+ var$2[162] = (-1);
+ var$2[163] = (-1);
+ var$2[164] = (-1);
+ var$2[165] = (-1);
+ var$2[166] = (-1);
+ var$2[167] = (-1);
+ var$2[168] = (-1);
+ var$2[169] = (-1);
+ var$2[170] = (-1);
+ var$2[171] = (-1);
+ var$2[172] = (-1);
+ var$2[173] = (-1);
+ var$2[174] = (-1);
+ var$2[175] = (-1);
+ var$2[176] = (-1);
+ var$2[177] = (-1);
+ var$2[178] = (-1);
+ var$2[179] = (-1);
+ var$2[180] = (-1);
+ var$2[181] = (-1);
+ var$2[182] = (-1);
+ var$2[183] = (-1);
+ var$2[184] = (-1);
+ var$2[185] = (-1);
+ var$2[186] = 39;
+ var$2[187] = 13;
+ var$2[188] = 51;
+ var$2[189] = 12;
+ var$2[190] = 52;
+ var$2[191] = 53;
+ var$2[192] = (-1);
+ var$2[193] = (-1);
+ var$2[194] = (-1);
+ var$2[195] = (-1);
+ var$2[196] = (-1);
+ var$2[197] = (-1);
+ var$2[198] = (-1);
+ var$2[199] = (-1);
+ var$2[200] = (-1);
+ var$2[201] = (-1);
+ var$2[202] = (-1);
+ var$2[203] = (-1);
+ var$2[204] = (-1);
+ var$2[205] = (-1);
+ var$2[206] = (-1);
+ var$2[207] = (-1);
+ var$2[208] = (-1);
+ var$2[209] = (-1);
+ var$2[210] = (-1);
+ var$2[211] = (-1);
+ var$2[212] = (-1);
+ var$2[213] = (-1);
+ var$2[214] = (-1);
+ var$2[215] = (-1);
+ var$2[216] = (-1);
+ var$2[217] = (-1);
+ var$2[218] = (-1);
+ var$2[219] = (-1);
+ var$2[220] = 26;
+ var$2[221] = 43;
+ var$2[222] = 27;
+ var$2[223] = 40;
+ nlea_EaglerAdapterImpl2_LWJGLKeyCodes = var$1;
+ nlea_EaglerAdapterImpl2_appendbufferindex = 0;
+ nlea_EaglerAdapterImpl2_appendbuffer = new Int32Array(new ArrayBuffer(2100000));
+}
+function nlea_EaglerAdapterImpl2_setContextVar$js_body$_10(var$1) {
+ window.currentContext = var$1;
+}
+function nlea_EaglerAdapterImpl2_hasBeenActive$js_body$_12() {
+ if (window.navigator.userActivation) {
+ return window.navigator.userActivation.hasBeenActive;
+ } else {
+ return false;
+ }
+}
+function nlea_EaglerAdapterImpl2_getString$js_body$_13(var$1) {
+ try {
+ return "" + window.eval(var$1);
+ } catch (e){
+ return "";
+ }
+}
+function nlea_EaglerAdapterImpl2_youEagler$js_body$_17() {
+ return { antialias : false, depth : true, powerPreference : "high-performance", desynchronized : false, preserveDrawingBuffer : false, premultipliedAlpha : false, alpha : false };
+}
+function nlea_EaglerAdapterImpl2_getFileChooserResult0$js_body$_151() {
+ var ret = window.eagsFileChooser.getFileChooserResult;
+ window.eagsFileChooser.getFileChooserResult = null;
+ return ret;
+}
+function nlea_EaglerAdapterImpl2_getFileChooserResultName$js_body$_152() {
+ var ret = window.eagsFileChooser.getFileChooserResultName;
+ window.eagsFileChooser.getFileChooserResultName = null;
+ return ret;
+}
+function nle_LocalStorageManager() {
+ jl_Object.call(this);
+}
+var nle_LocalStorageManager_achievementStorage = null;
+var nle_LocalStorageManager_gameSettingsStorage = null;
+var nle_LocalStorageManager_profileSettingsStorage = null;
+function nle_LocalStorageManager__init_0() {
+ var var_0 = new nle_LocalStorageManager();
+ nle_LocalStorageManager__init_(var_0);
+ return var_0;
+}
+function nle_LocalStorageManager__init_($this) {
+ return;
+}
+function nle_LocalStorageManager_loadStorage() {
+ var $a, $g, $p, var$4, $$je;
+ a: {
+ $a = nlea_EaglerAdapterImpl2_loadLocalStorage($rt_s(201));
+ $g = nlea_EaglerAdapterImpl2_loadLocalStorage($rt_s(202));
+ $p = nlea_EaglerAdapterImpl2_loadLocalStorage($rt_s(203));
+ if ($a !== null)
+ try {
+ nle_LocalStorageManager_achievementStorage = nms_CompressedStreamTools_readUncompressed($a);
+ break a;
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof ji_IOException) {
+ } else {
+ throw $$e;
+ }
+ }
+ }
+ b: {
+ if ($g !== null)
+ try {
+ nle_LocalStorageManager_gameSettingsStorage = nms_CompressedStreamTools_readUncompressed($g);
+ break b;
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof ji_IOException) {
+ } else {
+ throw $$e;
+ }
+ }
+ }
+ c: {
+ if ($p !== null)
+ try {
+ nle_LocalStorageManager_profileSettingsStorage = nms_CompressedStreamTools_readUncompressed($p);
+ break c;
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof ji_IOException) {
+ } else {
+ throw $$e;
+ }
+ }
+ }
+ if (nle_LocalStorageManager_achievementStorage === null) {
+ var$4 = new nms_NBTTagCompound;
+ var$4.$name0 = $rt_s(44);
+ var$4.$tagMap = ju_HashMap__init_1(16, 0.75);
+ nle_LocalStorageManager_achievementStorage = var$4;
+ }
+ if (nle_LocalStorageManager_gameSettingsStorage === null) {
+ var$4 = new nms_NBTTagCompound;
+ var$4.$name0 = $rt_s(44);
+ var$4.$tagMap = ju_HashMap__init_1(16, 0.75);
+ nle_LocalStorageManager_gameSettingsStorage = var$4;
+ }
+ if (nle_LocalStorageManager_profileSettingsStorage === null) {
+ var$4 = new nms_NBTTagCompound;
+ var$4.$name0 = $rt_s(44);
+ var$4.$tagMap = ju_HashMap__init_1(16, 0.75);
+ nle_LocalStorageManager_profileSettingsStorage = var$4;
+ }
+}
+function nle_LocalStorageManager_saveStorageG() {
+ var $$je;
+ a: {
+ try {
+ nlea_EaglerAdapterImpl2_saveLocalStorage($rt_s(202), nms_CompressedStreamTools_writeUncompressed(nle_LocalStorageManager_gameSettingsStorage));
+ break a;
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof ji_IOException) {
+ } else {
+ throw $$e;
+ }
+ }
+ }
+}
+function nle_LocalStorageManager_dumpConfiguration() {
+ var var$1, $$je;
+ a: {
+ try {
+ var$1 = nle_Base64_encodeBase64String(nms_CompressedStreamTools_writeUncompressed(nle_LocalStorageManager_gameSettingsStorage));
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof jl_Throwable) {
+ break a;
+ } else {
+ throw $$e;
+ }
+ }
+ return var$1;
+ }
+ return $rt_s(204);
+}
+function nle_LocalStorageManager_hasMadeAchievement($stat) {
+ var $$je;
+ if ($stat.$parentAchievement !== null && !nms_NBTTagCompound_getBoolean(nle_LocalStorageManager_achievementStorage, $stat.$parentAchievement.$statGuid))
+ return 0;
+ if (nms_NBTTagCompound_getBoolean(nle_LocalStorageManager_achievementStorage, $stat.$statGuid))
+ return 0;
+ nms_NBTTagCompound_setBoolean(nle_LocalStorageManager_achievementStorage, $stat.$statGuid, 1);
+ a: {
+ try {
+ nlea_EaglerAdapterImpl2_saveLocalStorage($rt_s(201), nms_CompressedStreamTools_writeUncompressed(nle_LocalStorageManager_achievementStorage));
+ break a;
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof ji_IOException) {
+ } else {
+ throw $$e;
+ }
+ }
+ }
+ return 1;
+}
+function nle_LocalStorageManager__clinit_() {
+ nle_LocalStorageManager_achievementStorage = null;
+ nle_LocalStorageManager_gameSettingsStorage = null;
+ nle_LocalStorageManager_profileSettingsStorage = null;
+}
+function nms_ServerList() {
+ var a = this; jl_Object.call(a);
+ a.$mc = null;
+ a.$servers = null;
+}
+var nms_ServerList_forcedServers = null;
+function nms_ServerList_loadDefaultServers($base64) {
+ var $nbt, $list, $i, $e, $$je;
+ a: {
+ try {
+ $nbt = nms_CompressedStreamTools_readUncompressed(nle_Base64_decodeBase64($base64));
+ ju_ArrayList_clear(nms_ServerList_forcedServers);
+ $list = nms_NBTTagCompound_getTagList($nbt, $rt_s(205));
+ $i = 0;
+ while ($i < nms_NBTTagList_tagCount($list)) {
+ ju_ArrayList_add(nms_ServerList_forcedServers, nms_ServerData_getServerDataFromNBTCompound(nms_NBTTagList_tagAt($list, $i)));
+ $i = $i + 1 | 0;
+ }
+ break a;
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof ji_IOException) {
+ $e = $$je;
+ } else {
+ throw $$e;
+ }
+ }
+ jl_Throwable_printStackTrace($e);
+ }
+}
+function nms_ServerList_loadServerList($this) {
+ var $servers, var$2, var$3, $i;
+ $servers = $this.$servers;
+ ju_Arrays_fill($servers.$array1, 0, $servers.$size0, null);
+ $servers.$size0 = 0;
+ var$2 = $this.$servers;
+ $servers = nms_ServerList_forcedServers;
+ var$3 = new ju_AbstractList$1;
+ var$3.$this$0 = $servers;
+ var$3.$modCount = var$3.$this$0.$modCount0;
+ var$3.$size1 = var$3.$this$0.$size2();
+ var$3.$removeIndex = (-1);
+ while (var$3.$index >= var$3.$size1 ? 0 : 1) {
+ if (!ju_ArrayList_add(var$2, ju_AbstractList$1_next(var$3)))
+ continue;
+ }
+ $servers = nms_NBTTagCompound_getTagList(nle_LocalStorageManager_gameSettingsStorage, $rt_s(205));
+ $i = 0;
+ while ($i < $servers.$tagList.$size0) {
+ ju_ArrayList_add($this.$servers, nms_ServerData_getServerDataFromNBTCompound(nms_NBTTagList_tagAt($servers, $i)));
+ $i = $i + 1 | 0;
+ }
+}
+function nms_ServerList_saveServerList($this) {
+ var $servers, var$2, $i, $$je;
+ $servers = new nms_NBTTagList;
+ $servers.$name0 = $rt_s(44);
+ var$2 = new ju_ArrayList;
+ var$2.$array1 = $rt_createArray(jl_Object, 10);
+ $servers.$tagList = var$2;
+ $i = nms_ServerList_forcedServers.$size0;
+ while ($i < $this.$servers.$size0) {
+ var$2 = nms_ServerData_getNBTCompound(ju_ArrayList_get($this.$servers, $i));
+ $servers.$tagType = 10;
+ ju_ArrayList_add($servers.$tagList, var$2);
+ $i = $i + 1 | 0;
+ }
+ var$2 = nle_LocalStorageManager_gameSettingsStorage.$tagMap;
+ $servers.$name0 = $rt_s(205);
+ ju_HashMap_putImpl(var$2, $rt_s(205), $servers);
+ a: {
+ try {
+ nlea_EaglerAdapterImpl2_saveLocalStorage($rt_s(202), nms_CompressedStreamTools_writeUncompressed(nle_LocalStorageManager_gameSettingsStorage));
+ break a;
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof ji_IOException) {
+ } else {
+ throw $$e;
+ }
+ }
+ }
+}
+function nms_ServerList_getServerData($this, $par1) {
+ return ju_ArrayList_get($this.$servers, $par1);
+}
+function nms_ServerList_removeServerData($this, $par1) {
+ ju_ArrayList_remove($this.$servers, $par1);
+}
+function nms_ServerList_addServerData($this, $par1ServerData) {
+ ju_ArrayList_add($this.$servers, $par1ServerData);
+}
+function nms_ServerList_countServers($this) {
+ return $this.$servers.$size0;
+}
+function nms_ServerList_swapServers($this, $par1, $par2) {
+ var $var3;
+ $var3 = ju_ArrayList_get($this.$servers, $par1);
+ ju_ArrayList_set($this.$servers, $par1, ju_ArrayList_get($this.$servers, $par2));
+ ju_ArrayList_set($this.$servers, $par2, $var3);
+ nms_ServerList_saveServerList($this);
+}
+function nms_ServerList__clinit_() {
+ var var$1;
+ var$1 = new ju_ArrayList;
+ var$1.$array1 = $rt_createArray(jl_Object, 10);
+ nms_ServerList_forcedServers = var$1;
+}
+function otci_IntegerUtil() {
+ jl_Object.call(this);
+}
+function otci_IntegerUtil__init_0() {
+ var var_0 = new otci_IntegerUtil();
+ otci_IntegerUtil__init_(var_0);
+ return var_0;
+}
+function otci_IntegerUtil__init_($this) {
+ return;
+}
+function otci_IntegerUtil_toUnsignedLogRadixString($value, $radixLog2) {
+ var $radix, $mask, $sz, $chars, var$7, $pos, $target, $target_0;
+ if (!$value)
+ return $rt_s(81);
+ $radix = 1 << $radixLog2;
+ $mask = $radix - 1 | 0;
+ $sz = (((32 - jl_Integer_numberOfLeadingZeros($value) | 0) + $radixLog2 | 0) - 1 | 0) / $radixLog2 | 0;
+ $chars = $rt_createCharArray($sz);
+ var$7 = $chars.data;
+ $pos = $rt_imul($sz - 1 | 0, $radixLog2);
+ $target = 0;
+ while ($pos >= 0) {
+ $target_0 = $target + 1 | 0;
+ var$7[$target] = jl_Character_forDigit($value >>> $pos & $mask, $radix);
+ $pos = $pos - $radixLog2 | 0;
+ $target = $target_0;
+ }
+ return jl_String__init_($chars);
+}
+function otci_IntegerUtil_toUnsignedLogRadixString0($value, $radixLog2) {
+ var $radix, $mask, $sz, $chars, var$7, $pos, $target, var$10, $target_0;
+ if (Long_eq($value, Long_ZERO))
+ return $rt_s(81);
+ $radix = 1 << $radixLog2;
+ $mask = $radix - 1 | 0;
+ $sz = (((64 - jl_Long_numberOfLeadingZeros($value) | 0) + $radixLog2 | 0) - 1 | 0) / $radixLog2 | 0;
+ $chars = $rt_createCharArray($sz);
+ var$7 = $chars.data;
+ $pos = Long_fromInt($rt_imul($sz - 1 | 0, $radixLog2));
+ $target = 0;
+ var$10 = Long_fromInt($radixLog2);
+ while (Long_ge($pos, Long_ZERO)) {
+ $target_0 = $target + 1 | 0;
+ var$7[$target] = jl_Character_forDigit(Long_shru($value, $pos.lo).lo & $mask, $radix);
+ $pos = Long_sub($pos, var$10);
+ $target = $target_0;
+ }
+ return jl_String__init_($chars);
+}
+function otjc_JSString() {
+ jl_Object.call(this);
+}
+function otjw_AudioContext() {
+ jl_Object.call(this);
+}
+function otjw_AudioContext_create$js_body$_44() {
+ var Context = window.AudioContext || window.webkitAudioContext;
+ return new Context();
+}
+function otjde_EventListener() {
+}
+function nlea_EaglerAdapterImpl2$2() {
+ jl_Object.call(this);
+}
+function nlea_EaglerAdapterImpl2$2__init_0() {
+ var var_0 = new nlea_EaglerAdapterImpl2$2();
+ nlea_EaglerAdapterImpl2$2__init_(var_0);
+ return var_0;
+}
+function nlea_EaglerAdapterImpl2$2__init_($this) {
+ return;
+}
+function nlea_EaglerAdapterImpl2$2_handleEvent($this, $evt) {
+ $evt.preventDefault();
+ $evt.stopPropagation();
+}
+function nlea_EaglerAdapterImpl2$2_handleEvent0($this, var$1) {
+ var$1 = var$1;
+ var$1.preventDefault();
+ var$1.stopPropagation();
+}
+function nlea_EaglerAdapterImpl2$2_handleEvent$exported$0(var$0, var$1) {
+ var$1 = var$1;
+ var$1.preventDefault();
+ var$1.stopPropagation();
+}
+function nlea_EaglerAdapterImpl2$3() {
+ jl_Object.call(this);
+}
+function nlea_EaglerAdapterImpl2$3__init_0() {
+ var var_0 = new nlea_EaglerAdapterImpl2$3();
+ nlea_EaglerAdapterImpl2$3__init_(var_0);
+ return var_0;
+}
+function nlea_EaglerAdapterImpl2$3__init_($this) {
+ return;
+}
+function nlea_EaglerAdapterImpl2$3_handleEvent($this, $evt) {
+ var $b, var$3, var$4, var$5;
+ $b = $evt.button;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ var$3 = nlea_EaglerAdapterImpl2_buttonStates;
+ if ($b == 1)
+ $b = 2;
+ else if ($b == 2)
+ $b = 1;
+ var$3.data[$b] = 1;
+ var$4 = nlea_EaglerAdapterImpl2_mouseEvents;
+ var$5 = var$4.$size;
+ if (var$5 >= 0) {
+ ju_LinkedList$SequentialListIterator_add(ju_LinkedList_listIterator(var$4, var$5), $evt);
+ $evt.preventDefault();
+ $evt.stopPropagation();
+ return;
+ }
+ $evt = new jl_IndexOutOfBoundsException;
+ $evt.$suppressionEnabled = 1;
+ $evt.$writableStackTrace = 1;
+ $rt_throw($evt);
+}
+function nlea_EaglerAdapterImpl2$3_handleEvent0($this, var$1) {
+ nlea_EaglerAdapterImpl2$3_handleEvent($this, var$1);
+}
+function nlea_EaglerAdapterImpl2$3_handleEvent$exported$0(var$0, var$1) {
+ nlea_EaglerAdapterImpl2$3_handleEvent(var$0, var$1);
+}
+function nlea_EaglerAdapterImpl2$4() {
+ jl_Object.call(this);
+}
+function nlea_EaglerAdapterImpl2$4__init_0() {
+ var var_0 = new nlea_EaglerAdapterImpl2$4();
+ nlea_EaglerAdapterImpl2$4__init_(var_0);
+ return var_0;
+}
+function nlea_EaglerAdapterImpl2$4__init_($this) {
+ return;
+}
+function nlea_EaglerAdapterImpl2$4_handleEvent($this, $evt) {
+ var $b, var$3, var$4, var$5;
+ $b = $evt.button;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ var$3 = nlea_EaglerAdapterImpl2_buttonStates;
+ if ($b == 1)
+ $b = 2;
+ else if ($b == 2)
+ $b = 1;
+ var$3.data[$b] = 0;
+ var$4 = nlea_EaglerAdapterImpl2_mouseEvents;
+ var$5 = var$4.$size;
+ if (var$5 >= 0) {
+ ju_LinkedList$SequentialListIterator_add(ju_LinkedList_listIterator(var$4, var$5), $evt);
+ $evt.preventDefault();
+ $evt.stopPropagation();
+ return;
+ }
+ $evt = new jl_IndexOutOfBoundsException;
+ $evt.$suppressionEnabled = 1;
+ $evt.$writableStackTrace = 1;
+ $rt_throw($evt);
+}
+function nlea_EaglerAdapterImpl2$4_handleEvent0($this, var$1) {
+ nlea_EaglerAdapterImpl2$4_handleEvent($this, var$1);
+}
+function nlea_EaglerAdapterImpl2$4_handleEvent$exported$0(var$0, var$1) {
+ nlea_EaglerAdapterImpl2$4_handleEvent(var$0, var$1);
+}
+function nlea_EaglerAdapterImpl2$5() {
+ jl_Object.call(this);
+}
+function nlea_EaglerAdapterImpl2$5__init_0() {
+ var var_0 = new nlea_EaglerAdapterImpl2$5();
+ nlea_EaglerAdapterImpl2$5__init_(var_0);
+ return var_0;
+}
+function nlea_EaglerAdapterImpl2$5__init_($this) {
+ return;
+}
+function nlea_EaglerAdapterImpl2$5_handleEvent($this, $evt) {
+ var var$2, var$3;
+ var$2 = $evt.clientX;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ nlea_EaglerAdapterImpl2_mouseX = var$2;
+ nlea_EaglerAdapterImpl2_mouseY = nlea_EaglerAdapterImpl2_canvas.clientHeight - $evt.clientY | 0;
+ var$3 = $evt.movementX;
+ nlea_EaglerAdapterImpl2_mouseDX = nlea_EaglerAdapterImpl2_mouseDX + var$3;
+ var$3 = -$evt.movementY;
+ nlea_EaglerAdapterImpl2_mouseDY = nlea_EaglerAdapterImpl2_mouseDY + var$3;
+ $evt.preventDefault();
+ $evt.stopPropagation();
+}
+function nlea_EaglerAdapterImpl2$5_handleEvent0($this, var$1) {
+ nlea_EaglerAdapterImpl2$5_handleEvent($this, var$1);
+}
+function nlea_EaglerAdapterImpl2$5_handleEvent$exported$0(var$0, var$1) {
+ nlea_EaglerAdapterImpl2$5_handleEvent(var$0, var$1);
+}
+function nlea_EaglerAdapterImpl2$6() {
+ jl_Object.call(this);
+}
+function nlea_EaglerAdapterImpl2$6__init_0() {
+ var var_0 = new nlea_EaglerAdapterImpl2$6();
+ nlea_EaglerAdapterImpl2$6__init_(var_0);
+ return var_0;
+}
+function nlea_EaglerAdapterImpl2$6__init_($this) {
+ return;
+}
+function nlea_EaglerAdapterImpl2$6_handleEvent($this, $evt) {
+ var var$2, var$3;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ nlea_EaglerAdapterImpl2_keyStates.data[nlea_EaglerAdapterImpl2_remapKey($evt.keyCode)] = 1;
+ var$2 = nlea_EaglerAdapterImpl2_keyEvents;
+ var$3 = var$2.$size;
+ if (var$3 >= 0) {
+ ju_LinkedList$SequentialListIterator_add(ju_LinkedList_listIterator(var$2, var$3), $evt);
+ $evt.preventDefault();
+ $evt.stopPropagation();
+ return;
+ }
+ $evt = new jl_IndexOutOfBoundsException;
+ $evt.$suppressionEnabled = 1;
+ $evt.$writableStackTrace = 1;
+ $rt_throw($evt);
+}
+function nlea_EaglerAdapterImpl2$6_handleEvent0($this, var$1) {
+ nlea_EaglerAdapterImpl2$6_handleEvent($this, var$1);
+}
+function nlea_EaglerAdapterImpl2$6_handleEvent$exported$0(var$0, var$1) {
+ nlea_EaglerAdapterImpl2$6_handleEvent(var$0, var$1);
+}
+function nlea_EaglerAdapterImpl2$7() {
+ jl_Object.call(this);
+}
+function nlea_EaglerAdapterImpl2$7__init_0() {
+ var var_0 = new nlea_EaglerAdapterImpl2$7();
+ nlea_EaglerAdapterImpl2$7__init_(var_0);
+ return var_0;
+}
+function nlea_EaglerAdapterImpl2$7__init_($this) {
+ return;
+}
+function nlea_EaglerAdapterImpl2$7_handleEvent($this, $evt) {
+ var var$2, var$3;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ nlea_EaglerAdapterImpl2_keyStates.data[nlea_EaglerAdapterImpl2_remapKey($evt.keyCode)] = 0;
+ var$2 = nlea_EaglerAdapterImpl2_keyEvents;
+ var$3 = var$2.$size;
+ if (var$3 >= 0) {
+ ju_LinkedList$SequentialListIterator_add(ju_LinkedList_listIterator(var$2, var$3), $evt);
+ $evt.preventDefault();
+ $evt.stopPropagation();
+ return;
+ }
+ $evt = new jl_IndexOutOfBoundsException;
+ $evt.$suppressionEnabled = 1;
+ $evt.$writableStackTrace = 1;
+ $rt_throw($evt);
+}
+function nlea_EaglerAdapterImpl2$7_handleEvent0($this, var$1) {
+ nlea_EaglerAdapterImpl2$7_handleEvent($this, var$1);
+}
+function nlea_EaglerAdapterImpl2$7_handleEvent$exported$0(var$0, var$1) {
+ nlea_EaglerAdapterImpl2$7_handleEvent(var$0, var$1);
+}
+function nlea_EaglerAdapterImpl2$8() {
+ jl_Object.call(this);
+}
+function nlea_EaglerAdapterImpl2$8__init_0() {
+ var var_0 = new nlea_EaglerAdapterImpl2$8();
+ nlea_EaglerAdapterImpl2$8__init_(var_0);
+ return var_0;
+}
+function nlea_EaglerAdapterImpl2$8__init_($this) {
+ return;
+}
+function nlea_EaglerAdapterImpl2$8_handleEvent($this, $evt) {
+ var var$2, var$3;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ if (nlea_EaglerAdapterImpl2_enableRepeatEvents && ($evt.repeat ? 1 : 0)) {
+ var$2 = nlea_EaglerAdapterImpl2_keyEvents;
+ var$3 = var$2.$size;
+ if (var$3 < 0) {
+ $evt = new jl_IndexOutOfBoundsException;
+ $evt.$suppressionEnabled = 1;
+ $evt.$writableStackTrace = 1;
+ $rt_throw($evt);
+ }
+ ju_LinkedList$SequentialListIterator_add(ju_LinkedList_listIterator(var$2, var$3), $evt);
+ }
+ $evt.preventDefault();
+ $evt.stopPropagation();
+}
+function nlea_EaglerAdapterImpl2$8_handleEvent0($this, var$1) {
+ nlea_EaglerAdapterImpl2$8_handleEvent($this, var$1);
+}
+function nlea_EaglerAdapterImpl2$8_handleEvent$exported$0(var$0, var$1) {
+ nlea_EaglerAdapterImpl2$8_handleEvent(var$0, var$1);
+}
+function nlea_EaglerAdapterImpl2$9() {
+ jl_Object.call(this);
+}
+function nlea_EaglerAdapterImpl2$9__init_0() {
+ var var_0 = new nlea_EaglerAdapterImpl2$9();
+ nlea_EaglerAdapterImpl2$9__init_(var_0);
+ return var_0;
+}
+function nlea_EaglerAdapterImpl2$9__init_($this) {
+ return;
+}
+function nlea_EaglerAdapterImpl2$9_handleEvent($this, $evt) {
+ var var$2, var$3;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ var$2 = nlea_EaglerAdapterImpl2_mouseEvents;
+ var$3 = var$2.$size;
+ if (var$3 >= 0) {
+ ju_LinkedList$SequentialListIterator_add(ju_LinkedList_listIterator(var$2, var$3), $evt);
+ $evt.preventDefault();
+ $evt.stopPropagation();
+ return;
+ }
+ $evt = new jl_IndexOutOfBoundsException;
+ $evt.$suppressionEnabled = 1;
+ $evt.$writableStackTrace = 1;
+ $rt_throw($evt);
+}
+function nlea_EaglerAdapterImpl2$9_handleEvent0($this, var$1) {
+ var var$2, var$3;
+ var$1 = var$1;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ var$2 = nlea_EaglerAdapterImpl2_mouseEvents;
+ var$3 = var$2.$size;
+ if (var$3 >= 0) {
+ ju_LinkedList$SequentialListIterator_add(ju_LinkedList_listIterator(var$2, var$3), var$1);
+ var$1.preventDefault();
+ var$1.stopPropagation();
+ return;
+ }
+ var$1 = new jl_IndexOutOfBoundsException;
+ var$1.$suppressionEnabled = 1;
+ var$1.$writableStackTrace = 1;
+ $rt_throw(var$1);
+}
+function nlea_EaglerAdapterImpl2$9_handleEvent$exported$0(var$0, var$1) {
+ var var$2, var$3;
+ var$1 = var$1;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ var$2 = nlea_EaglerAdapterImpl2_mouseEvents;
+ var$3 = var$2.$size;
+ if (var$3 >= 0) {
+ ju_LinkedList$SequentialListIterator_add(ju_LinkedList_listIterator(var$2, var$3), var$1);
+ var$1.preventDefault();
+ var$1.stopPropagation();
+ return;
+ }
+ var$1 = new jl_IndexOutOfBoundsException;
+ var$1.$suppressionEnabled = 1;
+ var$1.$writableStackTrace = 1;
+ $rt_throw(var$1);
+}
+function nlea_EaglerAdapterImpl2$10() {
+ jl_Object.call(this);
+}
+function nlea_EaglerAdapterImpl2$10__init_0() {
+ var var_0 = new nlea_EaglerAdapterImpl2$10();
+ nlea_EaglerAdapterImpl2$10__init_(var_0);
+ return var_0;
+}
+function nlea_EaglerAdapterImpl2$10__init_($this) {
+ return;
+}
+function nlea_EaglerAdapterImpl2$10_handleEvent($this, $evt) {
+ nlea_EaglerAdapterImpl2_$callClinit();
+ nlea_EaglerAdapterImpl2_isWindowFocused = 0;
+}
+function nlea_EaglerAdapterImpl2$10_handleEvent0($this, var$1) {
+ nlea_EaglerAdapterImpl2_$callClinit();
+ nlea_EaglerAdapterImpl2_isWindowFocused = 0;
+}
+function nlea_EaglerAdapterImpl2$10_handleEvent$exported$0(var$0, var$1) {
+ nlea_EaglerAdapterImpl2_$callClinit();
+ nlea_EaglerAdapterImpl2_isWindowFocused = 0;
+}
+function nlea_EaglerAdapterImpl2$11() {
+ jl_Object.call(this);
+}
+function nlea_EaglerAdapterImpl2$11__init_0() {
+ var var_0 = new nlea_EaglerAdapterImpl2$11();
+ nlea_EaglerAdapterImpl2$11__init_(var_0);
+ return var_0;
+}
+function nlea_EaglerAdapterImpl2$11__init_($this) {
+ return;
+}
+function nlea_EaglerAdapterImpl2$11_handleEvent($this, $evt) {
+ nlea_EaglerAdapterImpl2_$callClinit();
+ nlea_EaglerAdapterImpl2_isWindowFocused = 1;
+}
+function nlea_EaglerAdapterImpl2$11_handleEvent0($this, var$1) {
+ nlea_EaglerAdapterImpl2_$callClinit();
+ nlea_EaglerAdapterImpl2_isWindowFocused = 1;
+}
+function nlea_EaglerAdapterImpl2$11_handleEvent$exported$0(var$0, var$1) {
+ nlea_EaglerAdapterImpl2_$callClinit();
+ nlea_EaglerAdapterImpl2_isWindowFocused = 1;
+}
+function nle_EarlyLoadScreen() {
+ jl_Object.call(this);
+}
+var nle_EarlyLoadScreen_vbo = null;
+var nle_EarlyLoadScreen_program = null;
+function nle_EarlyLoadScreen__init_0() {
+ var var_0 = new nle_EarlyLoadScreen();
+ nle_EarlyLoadScreen__init_(var_0);
+ return var_0;
+}
+function nle_EarlyLoadScreen__init_($this) {
+ return;
+}
+function nle_EarlyLoadScreen_paintScreen() {
+ var $tex, $img, $upload, $vert, $frag, var$6, $e, $width, $height, $x, $y, $vao, $$je, $ptr, $tmp;
+ $ptr = 0;
+ if ($rt_resuming()) {
+ var $thread = $rt_nativeThread();
+ $ptr = $thread.pop();$vao = $thread.pop();$y = $thread.pop();$x = $thread.pop();$height = $thread.pop();$width = $thread.pop();$e = $thread.pop();var$6 = $thread.pop();$frag = $thread.pop();$vert = $thread.pop();$upload = $thread.pop();$img = $thread.pop();$tex = $thread.pop();
+ }
+ main: while (true) { switch ($ptr) {
+ case 0:
+ nlea_EaglerAdapterImpl2_$callClinit();
+ $tex = new nlea_EaglerAdapterImpl2$TextureGL;
+ $tex.$obj = nlea_EaglerAdapterImpl2_webgl.createTexture();
+ nlea_EaglerAdapterImpl2_webgl.activeTexture(33984);
+ $img = nlea_EaglerAdapterImpl2_webgl;
+ $upload = $tex.$obj;
+ $img.bindTexture(3553, $upload);
+ nlea_EaglerAdapterImpl2_webgl.texParameteri(3553, 10240, 9728);
+ nlea_EaglerAdapterImpl2_webgl.texParameteri(3553, 10241, 9728);
+ nlea_EaglerAdapterImpl2_webgl.texParameteri(3553, 10242, 33071);
+ nlea_EaglerAdapterImpl2_webgl.texParameteri(3553, 10243, 33071);
+ $img = nle_EaglerImage_loadImage(nle_BaseNCodec_decode0(nle_Base64__init_0(0, nle_BaseNCodec_CHUNK_SEPARATOR, 0, nle_BaseNCodec$CodecPolicy_LENIANT), $rt_s(206)));
+ $upload = nms_GLAllocation_createDirectIntBuffer(36864);
+ jn_IntBuffer_put($upload, $img.$data);
+ jn_IntBuffer_flip($upload);
+ nlea_EaglerAdapterImpl2__wglTexImage2D0(3553, 0, 6408, 192, 192, 0, 6408, 5121, $upload);
+ jn_IntBuffer_clear($upload);
+ jn_IntBufferImpl_put($upload, $rt_floatToIntBits(0.0));
+ jn_IntBufferImpl_put($upload, $rt_floatToIntBits(0.0));
+ jn_IntBufferImpl_put($upload, $rt_floatToIntBits(0.0));
+ jn_IntBufferImpl_put($upload, $rt_floatToIntBits(1.0));
+ jn_IntBufferImpl_put($upload, $rt_floatToIntBits(1.0));
+ jn_IntBufferImpl_put($upload, $rt_floatToIntBits(0.0));
+ jn_IntBufferImpl_put($upload, $rt_floatToIntBits(1.0));
+ jn_IntBufferImpl_put($upload, $rt_floatToIntBits(0.0));
+ jn_IntBufferImpl_put($upload, $rt_floatToIntBits(0.0));
+ jn_IntBufferImpl_put($upload, $rt_floatToIntBits(1.0));
+ jn_IntBufferImpl_put($upload, $rt_floatToIntBits(1.0));
+ jn_IntBufferImpl_put($upload, $rt_floatToIntBits(1.0));
+ jn_IntBuffer_flip($upload);
+ nle_EarlyLoadScreen_vbo = nlea_EaglerAdapterImpl2__wglCreateBuffer();
+ nlea_EaglerAdapterImpl2__wglBindBuffer(34962, nle_EarlyLoadScreen_vbo);
+ nlea_EaglerAdapterImpl2__wglBufferData0(34962, $upload, 35044);
+ $vert = nlea_EaglerAdapterImpl2__wglCreateShader(35633);
+ nlea_EaglerAdapterImpl2__wglShaderSource($vert, jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), nlea_EaglerAdapterImpl2__wgetShaderHeader()), $rt_s(207))));
+ nlea_EaglerAdapterImpl2__wglCompileShader($vert);
+ $frag = nlea_EaglerAdapterImpl2__wglCreateShader(35632);
+ nlea_EaglerAdapterImpl2__wglShaderSource($frag, jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), nlea_EaglerAdapterImpl2__wgetShaderHeader()), $rt_s(208))));
+ nlea_EaglerAdapterImpl2__wglCompileShader($frag);
+ nle_EarlyLoadScreen_program = nlea_EaglerAdapterImpl2__wglCreateProgram();
+ nlea_EaglerAdapterImpl2__wglAttachShader(nle_EarlyLoadScreen_program, $vert);
+ nlea_EaglerAdapterImpl2__wglAttachShader(nle_EarlyLoadScreen_program, $frag);
+ nlea_EaglerAdapterImpl2__wglLinkProgram(nle_EarlyLoadScreen_program);
+ nlea_EaglerAdapterImpl2__wglDetachShader(nle_EarlyLoadScreen_program, $vert);
+ nlea_EaglerAdapterImpl2__wglDetachShader(nle_EarlyLoadScreen_program, $frag);
+ nlea_EaglerAdapterImpl2__wglDeleteShader($vert);
+ nlea_EaglerAdapterImpl2__wglDeleteShader($frag);
+ try {
+ var$6 = Long_fromInt(50);
+ $ptr = 1;
+ continue main;
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof jl_InterruptedException) {
+ $e = $$je;
+ } else {
+ throw $$e;
+ }
+ }
+ $e.$printStackTrace0();
+ nlea_EaglerAdapterImpl2__wglUseProgram(nle_EarlyLoadScreen_program);
+ nlea_EaglerAdapterImpl2__wglBindAttributeLocation(nle_EarlyLoadScreen_program, 0, $rt_s(209));
+ nlea_EaglerAdapterImpl2__wglUniform1i(nlea_EaglerAdapterImpl2__wglGetUniformLocation(nle_EarlyLoadScreen_program, $rt_s(210)), 0);
+ $width = nlea_EaglerAdapterImpl2_getCanvasWidth();
+ $height = nlea_EaglerAdapterImpl2_getCanvasHeight();
+ if ($width <= $height) {
+ $x = 1.0;
+ $y = $height / $width;
+ } else {
+ $x = $width / $height;
+ $y = 1.0;
+ }
+ nlea_EaglerAdapterImpl2__wglActiveTexture(33984);
+ nlea_EaglerAdapterImpl2__wglBindTexture(3553, $tex);
+ nlea_EaglerAdapterImpl2__wglViewport(0, 0, $width, $height);
+ nlea_EaglerAdapterImpl2__wglClearColor(1.0, 1.0, 1.0, 1.0);
+ nlea_EaglerAdapterImpl2__wglClear(16640);
+ nlea_EaglerAdapterImpl2__wglUniform2f(nlea_EaglerAdapterImpl2__wglGetUniformLocation(nle_EarlyLoadScreen_program, $rt_s(211)), $x, $y);
+ $vao = nlea_EaglerAdapterImpl2__wglCreateVertexArray();
+ nlea_EaglerAdapterImpl2__wglBindVertexArray($vao);
+ nlea_EaglerAdapterImpl2__wglEnableVertexAttribArray(0);
+ nlea_EaglerAdapterImpl2__wglVertexAttribPointer(0, 2, 5126, 0, 8, 0);
+ nlea_EaglerAdapterImpl2__wglDrawArrays(4, 0, 6);
+ nlea_EaglerAdapterImpl2__wglDisableVertexAttribArray(0);
+ $ptr = 2;
+ continue main;
+ case 1:
+ a: {
+ try {
+ jl_Thread_sleep(var$6);
+ if ($rt_suspending()) {
+ break main;
+ }
+ break a;
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof jl_InterruptedException) {
+ $e = $$je;
+ } else {
+ throw $$e;
+ }
+ }
+ $e.$printStackTrace0();
+ }
+ nlea_EaglerAdapterImpl2__wglUseProgram(nle_EarlyLoadScreen_program);
+ nlea_EaglerAdapterImpl2__wglBindAttributeLocation(nle_EarlyLoadScreen_program, 0, $rt_s(209));
+ nlea_EaglerAdapterImpl2__wglUniform1i(nlea_EaglerAdapterImpl2__wglGetUniformLocation(nle_EarlyLoadScreen_program, $rt_s(210)), 0);
+ $width = nlea_EaglerAdapterImpl2_getCanvasWidth();
+ $height = nlea_EaglerAdapterImpl2_getCanvasHeight();
+ if ($width <= $height) {
+ $x = 1.0;
+ $y = $height / $width;
+ } else {
+ $x = $width / $height;
+ $y = 1.0;
+ }
+ nlea_EaglerAdapterImpl2__wglActiveTexture(33984);
+ nlea_EaglerAdapterImpl2__wglBindTexture(3553, $tex);
+ nlea_EaglerAdapterImpl2__wglViewport(0, 0, $width, $height);
+ nlea_EaglerAdapterImpl2__wglClearColor(1.0, 1.0, 1.0, 1.0);
+ nlea_EaglerAdapterImpl2__wglClear(16640);
+ nlea_EaglerAdapterImpl2__wglUniform2f(nlea_EaglerAdapterImpl2__wglGetUniformLocation(nle_EarlyLoadScreen_program, $rt_s(211)), $x, $y);
+ $vao = nlea_EaglerAdapterImpl2__wglCreateVertexArray();
+ nlea_EaglerAdapterImpl2__wglBindVertexArray($vao);
+ nlea_EaglerAdapterImpl2__wglEnableVertexAttribArray(0);
+ nlea_EaglerAdapterImpl2__wglVertexAttribPointer(0, 2, 5126, 0, 8, 0);
+ nlea_EaglerAdapterImpl2__wglDrawArrays(4, 0, 6);
+ nlea_EaglerAdapterImpl2__wglDisableVertexAttribArray(0);
+ $ptr = 2;
+ case 2:
+ nlea_EaglerAdapterImpl2_updateDisplay();
+ if ($rt_suspending()) {
+ break main;
+ }
+ nlea_EaglerAdapterImpl2__wglUseProgram(null);
+ nlea_EaglerAdapterImpl2__wglBindBuffer(34962, null);
+ nlea_EaglerAdapterImpl2__wglBindTexture(3553, null);
+ nlea_EaglerAdapterImpl2__wglDeleteTextures($tex);
+ nlea_EaglerAdapterImpl2__wglDeleteVertexArray($vao);
+ return;
+ default: $rt_invalidPointer();
+ }}
+ $rt_nativeThread().push($tex, $img, $upload, $vert, $frag, var$6, $e, $width, $height, $x, $y, $vao, $ptr);
+}
+function nle_EarlyLoadScreen_paintEnable() {
+ var $tex, $img, $vao, $upload, var$5, var$6, var$7, var$8, $e, var$10, $x, $y, $$je, $ptr, $tmp;
+ $ptr = 0;
+ if ($rt_resuming()) {
+ var $thread = $rt_nativeThread();
+ $ptr = $thread.pop();$y = $thread.pop();$x = $thread.pop();var$10 = $thread.pop();$e = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();var$5 = $thread.pop();$upload = $thread.pop();$vao = $thread.pop();$img = $thread.pop();$tex = $thread.pop();
+ }
+ main: while (true) { switch ($ptr) {
+ case 0:
+ nlea_EaglerAdapterImpl2_$callClinit();
+ $tex = new nlea_EaglerAdapterImpl2$TextureGL;
+ $tex.$obj = nlea_EaglerAdapterImpl2_webgl.createTexture();
+ nlea_EaglerAdapterImpl2_webgl.activeTexture(33984);
+ $img = nlea_EaglerAdapterImpl2_webgl;
+ $vao = $tex.$obj;
+ $img.bindTexture(3553, $vao);
+ nlea_EaglerAdapterImpl2_webgl.texParameteri(3553, 10240, 9728);
+ nlea_EaglerAdapterImpl2_webgl.texParameteri(3553, 10241, 9728);
+ nlea_EaglerAdapterImpl2_webgl.texParameteri(3553, 10242, 33071);
+ nlea_EaglerAdapterImpl2_webgl.texParameteri(3553, 10243, 33071);
+ $img = nle_EaglerImage_loadImage(nle_BaseNCodec_decode(nle_Base64__init_0(0, nle_BaseNCodec_CHUNK_SEPARATOR, 0, nle_BaseNCodec$CodecPolicy_LENIANT), jl_String_getBytes0($rt_s(212), jnc_Charset_forName($rt_s(2)))));
+ nleg_EaglerAdapterGL30_$callClinit();
+ if (!nleg_EaglerAdapterGL30_isWebGL)
+ $upload = jn_ByteBufferImpl_asIntBuffer(nms_GLAllocation_createDirectByteBuffer(65536));
+ else {
+ var$5 = $rt_createIntArray(16384);
+ var$6 = var$5.data.length;
+ $upload = new jn_IntBufferOverArray;
+ var$7 = 0 + var$6 | 0;
+ $upload.$mark = (-1);
+ $upload.$capacity = var$6;
+ $upload.$limit = var$6;
+ $upload.$position = 0;
+ $upload.$limit = var$7;
+ $upload.$start1 = 0;
+ $upload.$readOnly1 = 0;
+ $upload.$array2 = var$5;
+ }
+ var$5 = $img.$data;
+ jn_IntBuffer_put0($upload, var$5, 0, var$5.data.length);
+ $upload.$limit = $upload.$position;
+ $upload.$position = 0;
+ $upload.$mark = (-1);
+ nlea_EaglerAdapterImpl2__wglTexImage2D0(3553, 0, 6408, 128, 128, 0, 6408, 5121, $upload);
+ try {
+ var$8 = Long_fromInt(50);
+ $ptr = 1;
+ continue main;
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof jl_InterruptedException) {
+ $e = $$je;
+ } else {
+ throw $$e;
+ }
+ }
+ $e.$printStackTrace0();
+ nlea_EaglerAdapterImpl2__wglUseProgram(nle_EarlyLoadScreen_program);
+ var$10 = nlea_EaglerAdapterImpl2_parent.clientWidth;
+ $img = nlea_EaglerAdapterImpl2_canvas;
+ $vao = var$10;
+ $img.width = $vao;
+ var$7 = nlea_EaglerAdapterImpl2_parent.clientHeight;
+ $img = nlea_EaglerAdapterImpl2_canvas;
+ $vao = var$7;
+ $img.height = $vao;
+ if (var$10 <= var$7) {
+ $x = 1.0;
+ $y = var$7 / var$10;
+ } else {
+ $x = var$10 / var$7;
+ $y = 1.0;
+ }
+ nlea_EaglerAdapterImpl2_webgl.activeTexture(33984);
+ $img = nlea_EaglerAdapterImpl2_webgl;
+ $vao = $tex.$obj;
+ $img.bindTexture(3553, $vao);
+ nlea_EaglerAdapterImpl2__wglViewport(0, 0, var$10, var$7);
+ nlea_EaglerAdapterImpl2_webgl.clearColor(1.0, 1.0, 1.0, 1.0);
+ nlea_EaglerAdapterImpl2_webgl.clear(16640);
+ $img = nlea_EaglerAdapterImpl2__wglGetUniformLocation(nle_EarlyLoadScreen_program, $rt_s(211));
+ if ($img !== null) {
+ $vao = nlea_EaglerAdapterImpl2_webgl;
+ $img = $img.$obj3;
+ $vao.uniform2f($img, $x, $y);
+ }
+ $vao = nlea_EaglerAdapterImpl2$BufferArrayGL__init_(nlea_EaglerAdapterImpl2_webgl.createVertexArray());
+ nlea_EaglerAdapterImpl2__wglBindVertexArray($vao);
+ nlea_EaglerAdapterImpl2__wglBindBuffer(34962, nle_EarlyLoadScreen_vbo);
+ nlea_EaglerAdapterImpl2__wglEnableVertexAttribArray(0);
+ nlea_EaglerAdapterImpl2__wglVertexAttribPointer(0, 2, 5126, 0, 8, 0);
+ nlea_EaglerAdapterImpl2__wglDrawArrays(4, 0, 6);
+ nlea_EaglerAdapterImpl2__wglDisableVertexAttribArray(0);
+ nlea_EaglerAdapterImpl2__wglFlush();
+ $ptr = 2;
+ continue main;
+ case 1:
+ a: {
+ try {
+ jl_Thread_sleep(var$8);
+ if ($rt_suspending()) {
+ break main;
+ }
+ break a;
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof jl_InterruptedException) {
+ $e = $$je;
+ } else {
+ throw $$e;
+ }
+ }
+ $e.$printStackTrace0();
+ }
+ nlea_EaglerAdapterImpl2__wglUseProgram(nle_EarlyLoadScreen_program);
+ var$10 = nlea_EaglerAdapterImpl2_parent.clientWidth;
+ $img = nlea_EaglerAdapterImpl2_canvas;
+ $vao = var$10;
+ $img.width = $vao;
+ var$7 = nlea_EaglerAdapterImpl2_parent.clientHeight;
+ $img = nlea_EaglerAdapterImpl2_canvas;
+ $vao = var$7;
+ $img.height = $vao;
+ if (var$10 <= var$7) {
+ $x = 1.0;
+ $y = var$7 / var$10;
+ } else {
+ $x = var$10 / var$7;
+ $y = 1.0;
+ }
+ nlea_EaglerAdapterImpl2_webgl.activeTexture(33984);
+ $img = nlea_EaglerAdapterImpl2_webgl;
+ $vao = $tex.$obj;
+ $img.bindTexture(3553, $vao);
+ nlea_EaglerAdapterImpl2__wglViewport(0, 0, var$10, var$7);
+ nlea_EaglerAdapterImpl2_webgl.clearColor(1.0, 1.0, 1.0, 1.0);
+ nlea_EaglerAdapterImpl2_webgl.clear(16640);
+ $img = nlea_EaglerAdapterImpl2__wglGetUniformLocation(nle_EarlyLoadScreen_program, $rt_s(211));
+ if ($img !== null) {
+ $vao = nlea_EaglerAdapterImpl2_webgl;
+ $img = $img.$obj3;
+ $vao.uniform2f($img, $x, $y);
+ }
+ $vao = nlea_EaglerAdapterImpl2$BufferArrayGL__init_(nlea_EaglerAdapterImpl2_webgl.createVertexArray());
+ nlea_EaglerAdapterImpl2__wglBindVertexArray($vao);
+ nlea_EaglerAdapterImpl2__wglBindBuffer(34962, nle_EarlyLoadScreen_vbo);
+ nlea_EaglerAdapterImpl2__wglEnableVertexAttribArray(0);
+ nlea_EaglerAdapterImpl2__wglVertexAttribPointer(0, 2, 5126, 0, 8, 0);
+ nlea_EaglerAdapterImpl2__wglDrawArrays(4, 0, 6);
+ nlea_EaglerAdapterImpl2__wglDisableVertexAttribArray(0);
+ nlea_EaglerAdapterImpl2__wglFlush();
+ $ptr = 2;
+ case 2:
+ nlea_EaglerAdapterImpl2_updateDisplay();
+ if ($rt_suspending()) {
+ break main;
+ }
+ nlea_EaglerAdapterImpl2__wglUseProgram(null);
+ nlea_EaglerAdapterImpl2__wglBindBuffer(34962, null);
+ nlea_EaglerAdapterImpl2__wglBindTexture(3553, null);
+ nlea_EaglerAdapterImpl2__wglDeleteTextures($tex);
+ nlea_EaglerAdapterImpl2__wglDeleteVertexArray($vao);
+ return;
+ default: $rt_invalidPointer();
+ }}
+ $rt_nativeThread().push($tex, $img, $vao, $upload, var$5, var$6, var$7, var$8, $e, var$10, $x, $y, $ptr);
+}
+function nle_EarlyLoadScreen__clinit_() {
+ nle_EarlyLoadScreen_vbo = null;
+ nle_EarlyLoadScreen_program = null;
+}
+function jl_Runnable() {
+}
+function jl_Thread() {
+ var a = this; jl_Object.call(a);
+ a.$id = Long_ZERO;
+ a.$timeSliceStart = Long_ZERO;
+ a.$finishedLock = null;
+ a.$interruptHandler = null;
+ a.$name1 = null;
+ a.$alive = 0;
+ a.$target = null;
+}
+var jl_Thread_mainThread = null;
+var jl_Thread_currentThread0 = null;
+var jl_Thread_nextId = Long_ZERO;
+var jl_Thread_activeCount = 0;
+function jl_Thread__init_0() {
+ var var_0 = new jl_Thread();
+ jl_Thread__init_(var_0);
+ return var_0;
+}
+function jl_Thread__init_($this) {
+ var var$1, var$2, var$3;
+ var$1 = null;
+ var$2 = null;
+ $this.$finishedLock = new jl_Object;
+ $this.$alive = 1;
+ $this.$name1 = var$2;
+ $this.$target = var$1;
+ var$3 = jl_Thread_nextId;
+ jl_Thread_nextId = Long_add(var$3, Long_fromInt(1));
+ $this.$id = var$3;
+}
+function jl_Thread_setCurrentThread($thread_0) {
+ if (jl_Thread_currentThread0 !== $thread_0)
+ jl_Thread_currentThread0 = $thread_0;
+ jl_Thread_currentThread0.$timeSliceStart = jl_System_currentTimeMillis();
+}
+function jl_Thread_currentThread() {
+ return jl_Thread_currentThread0;
+}
+function jl_Thread_sleep(var$1) {
+ var thread = $rt_nativeThread();
+ var javaThread = $rt_getThread();
+ if (thread.isResuming()) {
+ thread.status = 0;
+ var result = thread.attribute;
+ if (result instanceof Error) {
+ throw result;
+ }
+ return result;
+ }
+ var callback = function() {};
+ callback.$complete = function(val) {
+ thread.attribute = val;
+ $rt_setThread(javaThread);
+ thread.resume();
+ };
+ callback.$error = function(e) {
+ thread.attribute = $rt_exception(e);
+ $rt_setThread(javaThread);
+ thread.resume();
+ };
+ callback = otpp_AsyncCallbackWrapper_create(callback);
+ return thread.suspend(function() {
+ try {
+ jl_Thread_sleep0(var$1, callback);
+ } catch($e) {
+ callback.$error($rt_exception($e));
+ }
+ });
+}
+function jl_Thread_sleep0($millis, $callback) {
+ var $current, $handler;
+ $current = jl_Thread_currentThread0;
+ $handler = new jl_Thread$SleepHandler;
+ $handler.$thread = $current;
+ $handler.$callback = $callback;
+ $handler.$scheduleId = otp_Platform_schedule($handler, Long_ge($millis, Long_fromInt(2147483647)) ? 2147483647 : $millis.lo);
+ $current.$interruptHandler = $handler;
+}
+function jl_Thread__clinit_() {
+ var var$1, var$2, var$3;
+ var$1 = new jl_Thread;
+ var$2 = null;
+ var$1.$finishedLock = new jl_Object;
+ var$1.$alive = 1;
+ var$1.$name1 = $rt_s(213);
+ var$1.$target = var$2;
+ var$3 = jl_Thread_nextId;
+ jl_Thread_nextId = Long_add(var$3, Long_fromInt(1));
+ var$1.$id = var$3;
+ jl_Thread_mainThread = var$1;
+ jl_Thread_currentThread0 = jl_Thread_mainThread;
+ jl_Thread_nextId = Long_fromInt(1);
+ jl_Thread_activeCount = 1;
+}
+function jl_InterruptedException() {
+ jl_Exception.call(this);
+}
+function jl_InterruptedException__init_0() {
+ var var_0 = new jl_InterruptedException();
+ jl_InterruptedException__init_(var_0);
+ return var_0;
+}
+function jl_InterruptedException__init_($this) {
+ $this.$suppressionEnabled = 1;
+ $this.$writableStackTrace = 1;
+}
+function nle_AssetRepository() {
+ jl_Object.call(this);
+}
+var nle_AssetRepository_filePool = null;
+function nle_AssetRepository__init_0() {
+ var var_0 = new nle_AssetRepository();
+ nle_AssetRepository__init_(var_0);
+ return var_0;
+}
+function nle_AssetRepository__init_($this) {
+ return;
+}
+function nle_AssetRepository_install($pkg) {
+ var $header, $in2, var$4, $in, var$6, var$7, $len, $dg, $digest, $digest2, $file;
+ $header = $pkg.data;
+ $in2 = new ji_ByteArrayInputStream;
+ var$4 = $header.length;
+ $in2.$buf = $pkg;
+ $in2.$pos = 0;
+ $in2.$mark0 = 0;
+ $in2.$count0 = 0 + var$4 | 0;
+ $in = new ji_DataInputStream;
+ $in.$in = $in2;
+ $in.$buff = $rt_createByteArray(8);
+ $header = $rt_createByteArray(8);
+ $pkg = $header.data;
+ var$6 = $in.$in;
+ var$4 = $pkg.length;
+ var$6.$read($header, 0, var$4);
+ var$7 = new jl_String;
+ jl_String_initWithBytes(var$7, $header, 0, var$4, jnc_Charset_forName($rt_s(2)));
+ if (!jl_String_equals($rt_s(214), var$7)) {
+ $in2 = new ji_IOException;
+ $in2.$suppressionEnabled = 1;
+ $in2.$writableStackTrace = 1;
+ $in2.$message = $rt_s(215);
+ $rt_throw($in2);
+ }
+ $len = ji_DataInputStream_readUnsignedShort($in);
+ $pkg = $rt_createByteArray($len);
+ $header = $rt_createCharArray($len);
+ ji_DataInputStream_readFully($in, $pkg, 0, $len);
+ ji_DataInputStream_convertUTF8WithBuf($pkg, $header, 0, $len);
+ var$6 = new ji_DataInputStream;
+ $in = cjj_InflaterInputStream__init_($in2, cjj_Inflater__init_0(15, 0), 512, 1);
+ $in.$myinflater = 1;
+ var$6.$in = $in;
+ var$6.$buff = $rt_createByteArray(8);
+ $dg = new nle_SHA1Digest;
+ $dg.$xBuf = $rt_createByteArray(4);
+ $dg.$xBufOff = 0;
+ $dg.$X = $rt_createIntArray(80);
+ nle_SHA1Digest_reset($dg);
+ while (true) {
+ $len = ji_DataInputStream_readUnsignedShort(var$6);
+ $pkg = $rt_createByteArray($len);
+ $header = $rt_createCharArray($len);
+ ji_DataInputStream_readFully(var$6, $pkg, 0, $len);
+ $in = ji_DataInputStream_convertUTF8WithBuf($pkg, $header, 0, $len);
+ if (!jl_String_equals($rt_s(216), $in)) {
+ if (var$6.$in.$available() <= 0 && jl_String_equals($rt_s(217), $in))
+ return;
+ $in2 = new ji_IOException;
+ $in2.$suppressionEnabled = 1;
+ $in2.$writableStackTrace = 1;
+ $in2.$message = $rt_s(215);
+ $rt_throw($in2);
+ }
+ $len = ji_DataInputStream_readUnsignedShort(var$6);
+ $pkg = $rt_createByteArray($len);
+ $header = $rt_createCharArray($len);
+ ji_DataInputStream_readFully(var$6, $pkg, 0, $len);
+ $in = ji_DataInputStream_convertUTF8WithBuf($pkg, $header, 0, $len);
+ $digest = $rt_createByteArray(20);
+ $pkg = $digest.data;
+ $digest2 = $rt_createByteArray(20);
+ var$6.$in.$read($digest, 0, $pkg.length);
+ $len = ji_DataInputStream_readInt(var$6);
+ $file = $rt_createByteArray($len);
+ $pkg = $file.data;
+ var$6.$in.$read($file, 0, $pkg.length);
+ if (ju_HashMap_getEntry(nle_AssetRepository_filePool, $in) === null ? 0 : 1)
+ continue;
+ nle_GeneralDigest_update($dg, $file, 0, $len);
+ nle_SHA1Digest_doFinal($dg, $digest2, 0);
+ if (!ju_Arrays_equals($digest, $digest2)) {
+ $in2 = new ji_IOException;
+ var$6 = new jl_StringBuilder;
+ var$6.$buffer = $rt_createCharArray(16);
+ jl_AbstractStringBuilder_insert(var$6, var$6.$length, $rt_s(218));
+ jl_AbstractStringBuilder_insert(var$6, var$6.$length, $in);
+ $in = jl_String__init_0(var$6.$buffer, 0, var$6.$length);
+ $in2.$suppressionEnabled = 1;
+ $in2.$writableStackTrace = 1;
+ $in2.$message = $in;
+ $rt_throw($in2);
+ }
+ ju_HashMap_putImpl(nle_AssetRepository_filePool, $in, $file);
+ $len = ji_DataInputStream_readUnsignedShort(var$6);
+ $pkg = $rt_createByteArray($len);
+ $header = $rt_createCharArray($len);
+ ji_DataInputStream_readFully(var$6, $pkg, 0, $len);
+ if (!jl_String_equals($rt_s(219), ji_DataInputStream_convertUTF8WithBuf($pkg, $header, 0, $len)))
+ break;
+ }
+ $in2 = new ji_IOException;
+ $in2.$suppressionEnabled = 1;
+ $in2.$writableStackTrace = 1;
+ $in2.$message = $rt_s(215);
+ $rt_throw($in2);
+}
+function nle_AssetRepository__clinit_() {
+ nle_AssetRepository_filePool = ju_HashMap__init_1(16, 0.75);
+}
+function ji_IOException() {
+ jl_Exception.call(this);
+}
+function ji_IOException__init_0() {
+ var var_0 = new ji_IOException();
+ ji_IOException__init_(var_0);
+ return var_0;
+}
+function ji_IOException__init_($this) {
+ $this.$suppressionEnabled = 1;
+ $this.$writableStackTrace = 1;
+}
+function nleg_EaglerAdapterGL30() {
+ nlea_EaglerAdapterImpl2.call(this);
+}
+var nleg_EaglerAdapterGL30_isWebGL = 0;
+var nleg_EaglerAdapterGL30_texObjects = null;
+var nleg_EaglerAdapterGL30_enableTexture2D = 0;
+var nleg_EaglerAdapterGL30_enableTexture2D_1 = 0;
+var nleg_EaglerAdapterGL30_enableLighting = 0;
+var nleg_EaglerAdapterGL30_enableAlphaTest = 0;
+var nleg_EaglerAdapterGL30_alphaThresh = 0.0;
+var nleg_EaglerAdapterGL30_isCompilingDisplayList = 0;
+var nleg_EaglerAdapterGL30_compilingDisplayList = null;
+var nleg_EaglerAdapterGL30_enableColorArray = 0;
+var nleg_EaglerAdapterGL30_enableNormalArray = 0;
+var nleg_EaglerAdapterGL30_enableTex0Array = 0;
+var nleg_EaglerAdapterGL30_enableTex1Array = 0;
+var nleg_EaglerAdapterGL30_colorR = 0.0;
+var nleg_EaglerAdapterGL30_colorG = 0.0;
+var nleg_EaglerAdapterGL30_colorB = 0.0;
+var nleg_EaglerAdapterGL30_colorA = 0.0;
+var nleg_EaglerAdapterGL30_normalX = 0.0;
+var nleg_EaglerAdapterGL30_normalY = 0.0;
+var nleg_EaglerAdapterGL30_normalZ = 0.0;
+var nleg_EaglerAdapterGL30_selectedTex = 0;
+var nleg_EaglerAdapterGL30_selectedClientTex = 0;
+var nleg_EaglerAdapterGL30_tex0X = 0.0;
+var nleg_EaglerAdapterGL30_tex0Y = 0.0;
+var nleg_EaglerAdapterGL30_tex1X = 0.0;
+var nleg_EaglerAdapterGL30_tex1Y = 0.0;
+var nleg_EaglerAdapterGL30_enableTexGen = 0;
+var nleg_EaglerAdapterGL30_enableColorMaterial = 0;
+var nleg_EaglerAdapterGL30_texS_plane = 0;
+var nleg_EaglerAdapterGL30_texS_X = 0.0;
+var nleg_EaglerAdapterGL30_texS_Y = 0.0;
+var nleg_EaglerAdapterGL30_texS_Z = 0.0;
+var nleg_EaglerAdapterGL30_texS_W = 0.0;
+var nleg_EaglerAdapterGL30_texT_plane = 0;
+var nleg_EaglerAdapterGL30_texT_X = 0.0;
+var nleg_EaglerAdapterGL30_texT_Y = 0.0;
+var nleg_EaglerAdapterGL30_texT_Z = 0.0;
+var nleg_EaglerAdapterGL30_texT_W = 0.0;
+var nleg_EaglerAdapterGL30_texR_plane = 0;
+var nleg_EaglerAdapterGL30_texR_X = 0.0;
+var nleg_EaglerAdapterGL30_texR_Y = 0.0;
+var nleg_EaglerAdapterGL30_texR_Z = 0.0;
+var nleg_EaglerAdapterGL30_texR_W = 0.0;
+var nleg_EaglerAdapterGL30_texQ_plane = 0;
+var nleg_EaglerAdapterGL30_texQ_X = 0.0;
+var nleg_EaglerAdapterGL30_texQ_Y = 0.0;
+var nleg_EaglerAdapterGL30_texQ_Z = 0.0;
+var nleg_EaglerAdapterGL30_texQ_W = 0.0;
+var nleg_EaglerAdapterGL30_fogColorR = 0.0;
+var nleg_EaglerAdapterGL30_fogColorG = 0.0;
+var nleg_EaglerAdapterGL30_fogColorB = 0.0;
+var nleg_EaglerAdapterGL30_fogColorA = 0.0;
+var nleg_EaglerAdapterGL30_fogMode = 0;
+var nleg_EaglerAdapterGL30_fogEnabled = 0;
+var nleg_EaglerAdapterGL30_fogPremultiply = 0;
+var nleg_EaglerAdapterGL30_fogStart = 0.0;
+var nleg_EaglerAdapterGL30_fogEnd = 0.0;
+var nleg_EaglerAdapterGL30_fogDensity = 0.0;
+var nleg_EaglerAdapterGL30_bytesUploaded = 0;
+var nleg_EaglerAdapterGL30_vertexDrawn = 0;
+var nleg_EaglerAdapterGL30_triangleDrawn = 0;
+var nleg_EaglerAdapterGL30_matrixMode = 0;
+var nleg_EaglerAdapterGL30_matModelV = null;
+var nleg_EaglerAdapterGL30_matNormV = null;
+var nleg_EaglerAdapterGL30_matNormV3 = null;
+var nleg_EaglerAdapterGL30_matModelPointer = 0;
+var nleg_EaglerAdapterGL30_matProjV = null;
+var nleg_EaglerAdapterGL30_matProjPointer = 0;
+var nleg_EaglerAdapterGL30_matTexV = null;
+var nleg_EaglerAdapterGL30_matTexPointer = 0;
+var nleg_EaglerAdapterGL30_quadsToTrianglesBuffer = null;
+var nleg_EaglerAdapterGL30_currentArray = null;
+var nleg_EaglerAdapterGL30_displayLists = null;
+var nleg_EaglerAdapterGL30_displayListsInitialized = null;
+var nleg_EaglerAdapterGL30_deevis = null;
+var nleg_EaglerAdapterGL30_lightPos0vec = null;
+var nleg_EaglerAdapterGL30_lightPos1vec = null;
+var nleg_EaglerAdapterGL30_displayListId = 0;
+var nleg_EaglerAdapterGL30_shader = null;
+var nleg_EaglerAdapterGL30_blankUploadArray = null;
+var nleg_EaglerAdapterGL30_occlusion_vao = null;
+var nleg_EaglerAdapterGL30_occlusion_vbo = null;
+var nleg_EaglerAdapterGL30_occlusion_program = null;
+var nleg_EaglerAdapterGL30_occlusion_matrix_m = null;
+var nleg_EaglerAdapterGL30_occlusion_matrix_p = null;
+var nleg_EaglerAdapterGL30_queryObjs = null;
+var nleg_EaglerAdapterGL30_cachedOcclusionP = null;
+var nleg_EaglerAdapterGL30_occlusionModel = null;
+var nleg_EaglerAdapterGL30_occlusionProj = null;
+var nleg_EaglerAdapterGL30_unprojA = null;
+var nleg_EaglerAdapterGL30_unprojB = null;
+var nleg_EaglerAdapterGL30_unprojC = null;
+var nleg_EaglerAdapterGL30_lastBandwidthReset = Long_ZERO;
+var nleg_EaglerAdapterGL30_lastBandwidth = 0;
+function nleg_EaglerAdapterGL30_$callClinit() {
+ nleg_EaglerAdapterGL30_$callClinit = $rt_eraseClinit(nleg_EaglerAdapterGL30);
+ nleg_EaglerAdapterGL30__clinit_();
+}
+function nleg_EaglerAdapterGL30__init_0() {
+ var var_0 = new nleg_EaglerAdapterGL30();
+ nleg_EaglerAdapterGL30__init_(var_0);
+ return var_0;
+}
+function nleg_EaglerAdapterGL30__init_($this) {
+ nleg_EaglerAdapterGL30_$callClinit();
+ nlea_EaglerAdapterImpl2_$callClinit();
+}
+function nleg_EaglerAdapterGL30_glClearStack() {
+ var var$1;
+ nleg_EaglerAdapterGL30_$callClinit();
+ var$1 = nleg_EaglerAdapterGL30_matModelV.data[0];
+ nlegv_Matrix4f_load(nleg_EaglerAdapterGL30_matModelV.data[nleg_EaglerAdapterGL30_matModelPointer], var$1);
+ nleg_EaglerAdapterGL30_matModelPointer = 0;
+ var$1 = nleg_EaglerAdapterGL30_matProjV.data[0];
+ nlegv_Matrix4f_load(nleg_EaglerAdapterGL30_matProjV.data[nleg_EaglerAdapterGL30_matProjPointer], var$1);
+ nleg_EaglerAdapterGL30_matProjPointer = 0;
+ var$1 = nleg_EaglerAdapterGL30_matTexV.data[0];
+ nlegv_Matrix4f_load(nleg_EaglerAdapterGL30_matTexV.data[nleg_EaglerAdapterGL30_matTexPointer], var$1);
+ nleg_EaglerAdapterGL30_matTexPointer = 0;
+}
+function nleg_EaglerAdapterGL30_getDisplayListCount() {
+ nleg_EaglerAdapterGL30_$callClinit();
+ return nleg_EaglerAdapterGL30_displayListsInitialized.$elementCount;
+}
+function nleg_EaglerAdapterGL30_glEnable($p1) {
+ nleg_EaglerAdapterGL30_$callClinit();
+ a: {
+ switch ($p1) {
+ case 2:
+ if (!nleg_EaglerAdapterGL30_selectedTex)
+ nleg_EaglerAdapterGL30_enableTexture2D = 1;
+ if (nleg_EaglerAdapterGL30_selectedTex != 1)
+ break a;
+ nleg_EaglerAdapterGL30_enableTexture2D_1 = 1;
+ break a;
+ case 4:
+ nlea_EaglerAdapterImpl2_$callClinit();
+ nlea_EaglerAdapterImpl2_webgl.enable(2929);
+ break a;
+ case 6:
+ nleg_EaglerAdapterGL30_enableAlphaTest = 1;
+ break a;
+ case 13:
+ nleg_EaglerAdapterGL30_enableLighting = 1;
+ break a;
+ case 14:
+ nleg_EaglerAdapterGL30_fogEnabled = 1;
+ break a;
+ case 15:
+ nleg_EaglerAdapterGL30_enableColorMaterial = 1;
+ break a;
+ case 16:
+ nlea_EaglerAdapterImpl2_$callClinit();
+ nlea_EaglerAdapterImpl2_webgl.enable(3042);
+ break a;
+ case 41:
+ break;
+ case 46:
+ nlea_EaglerAdapterImpl2_$callClinit();
+ nlea_EaglerAdapterImpl2_webgl.enable(2884);
+ break a;
+ case 61:
+ case 62:
+ case 63:
+ case 64:
+ nleg_EaglerAdapterGL30_enableTexGen = 1;
+ break a;
+ case 147:
+ break a;
+ default:
+ break a;
+ }
+ }
+}
+function nleg_EaglerAdapterGL30_glShadeModel($p1) {
+ nleg_EaglerAdapterGL30_$callClinit();
+}
+function nleg_EaglerAdapterGL30_glDepthFunc($p1) {
+ var $f;
+ nleg_EaglerAdapterGL30_$callClinit();
+ a: {
+ $f = 518;
+ switch ($p1) {
+ case 5:
+ $f = 518;
+ break a;
+ case 7:
+ $f = 513;
+ break a;
+ case 52:
+ $f = 514;
+ break a;
+ default:
+ }
+ }
+ nlea_EaglerAdapterImpl2_$callClinit();
+ nlea_EaglerAdapterImpl2_webgl.depthFunc($f);
+}
+function nleg_EaglerAdapterGL30_glAlphaFunc($p1, $p2) {
+ nleg_EaglerAdapterGL30_$callClinit();
+ nleg_EaglerAdapterGL30_alphaThresh = $p2;
+}
+function nleg_EaglerAdapterGL30_glCullFace($p1) {
+ var $f;
+ nleg_EaglerAdapterGL30_$callClinit();
+ a: {
+ $f = 1029;
+ switch ($p1) {
+ case 8:
+ $f = 1029;
+ break a;
+ case 36:
+ $f = 1032;
+ break a;
+ case 55:
+ $f = 1028;
+ break a;
+ default:
+ }
+ }
+ nlea_EaglerAdapterImpl2_$callClinit();
+ nlea_EaglerAdapterImpl2_webgl.cullFace($f);
+}
+function nleg_EaglerAdapterGL30_glMatrixMode($p1) {
+ nleg_EaglerAdapterGL30_$callClinit();
+ nleg_EaglerAdapterGL30_matrixMode = $p1;
+}
+function nleg_EaglerAdapterGL30_getMatrix() {
+ nleg_EaglerAdapterGL30_$callClinit();
+ a: {
+ switch (nleg_EaglerAdapterGL30_matrixMode) {
+ case 9:
+ break;
+ case 10:
+ break a;
+ case 54:
+ return nleg_EaglerAdapterGL30_matTexV.data[nleg_EaglerAdapterGL30_matTexPointer];
+ default:
+ break a;
+ }
+ return nleg_EaglerAdapterGL30_matProjV.data[nleg_EaglerAdapterGL30_matProjPointer];
+ }
+ return nleg_EaglerAdapterGL30_matModelV.data[nleg_EaglerAdapterGL30_matModelPointer];
+}
+function nleg_EaglerAdapterGL30_glLoadIdentity() {
+ nleg_EaglerAdapterGL30_$callClinit();
+ nlegv_Matrix4f_setIdentity(nleg_EaglerAdapterGL30_getMatrix());
+}
+function nleg_EaglerAdapterGL30_glViewport($p1, $p2, $p3, $p4) {
+ nleg_EaglerAdapterGL30_$callClinit();
+ nlea_EaglerAdapterImpl2__wglViewport($p1, $p2, $p3, $p4);
+}
+function nleg_EaglerAdapterGL30_glClear($p1) {
+ var $f;
+ nleg_EaglerAdapterGL30_$callClinit();
+ $f = 0;
+ if (($p1 & 1) == 1)
+ $f = 16384;
+ if (($p1 & 2) == 2)
+ $f = $f | 256;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ nlea_EaglerAdapterImpl2_webgl.clear($f);
+}
+function nleg_EaglerAdapterGL30_glOrtho($left, $right, $bottom, $top, $zNear, $zFar) {
+ var $res, var$8, var$9, var$10;
+ nleg_EaglerAdapterGL30_$callClinit();
+ $res = nleg_EaglerAdapterGL30_getMatrix();
+ var$8 = $right - $left;
+ $res.$m00 = 2.0 / var$8;
+ $res.$m01 = 0.0;
+ $res.$m02 = 0.0;
+ $res.$m03 = 0.0;
+ $res.$m10 = 0.0;
+ var$9 = $top - $bottom;
+ $res.$m11 = 2.0 / var$9;
+ $res.$m12 = 0.0;
+ $res.$m13 = 0.0;
+ $res.$m20 = 0.0;
+ $res.$m21 = 0.0;
+ var$10 = $zFar - $zNear;
+ $res.$m22 = 2.0 / var$10;
+ $res.$m23 = 0.0;
+ $res.$m30 = -($right + $left) / var$8;
+ $res.$m31 = -($top + $bottom) / var$9;
+ $res.$m32 = ($zFar + $zNear) / var$10;
+ $res.$m33 = 1.0;
+}
+function nleg_EaglerAdapterGL30_glTranslatef($p1, $p2, $p3) {
+ var var$4, var$5, var$6, var$7;
+ nleg_EaglerAdapterGL30_$callClinit();
+ var$4 = nleg_EaglerAdapterGL30_deevis;
+ var$4.$x = $p1;
+ var$4.$y = $p2;
+ var$4.$z = $p3;
+ var$4 = nleg_EaglerAdapterGL30_getMatrix();
+ nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, var$4, var$4);
+ if (nleg_EaglerAdapterGL30_isCompilingDisplayList) {
+ if (jl_System_errCache === null) {
+ var$5 = new ji_PrintStream;
+ var$5.$out = new jl_ConsoleOutputStreamStderr;
+ var$4 = new jl_StringBuilder;
+ var$4.$buffer = $rt_createCharArray(16);
+ var$5.$sb = var$4;
+ var$5.$buffer0 = $rt_createCharArray(32);
+ var$5.$autoFlush = 0;
+ var$4 = new jnci_UTF8Charset;
+ jnc_Charset__init_(var$4, $rt_s(2), $rt_createArray(jl_String, 0));
+ var$5.$charset = var$4;
+ jl_System_errCache = var$5;
+ }
+ var$6 = jl_System_errCache;
+ var$5 = var$6.$sb;
+ jl_AbstractStringBuilder_insert(var$5, var$5.$length, $rt_s(220));
+ var$7 = var$5.$length;
+ jl_AbstractStringBuilder_insertSpace(var$5, var$7, var$7 + 1 | 0);
+ var$5.$buffer.data[var$7] = 10;
+ ji_PrintStream_printSB(var$6);
+ }
+}
+function nleg_EaglerAdapterGL30_glClearColor($p1, $p2, $p3, $p4) {
+ nleg_EaglerAdapterGL30_$callClinit();
+ nlea_EaglerAdapterImpl2_$callClinit();
+ nlea_EaglerAdapterImpl2_webgl.clearColor($p1, $p2, $p3, $p4);
+}
+function nleg_EaglerAdapterGL30_glDisable($p1) {
+ nleg_EaglerAdapterGL30_$callClinit();
+ a: {
+ switch ($p1) {
+ case 2:
+ if (!nleg_EaglerAdapterGL30_selectedTex)
+ nleg_EaglerAdapterGL30_enableTexture2D = 0;
+ if (nleg_EaglerAdapterGL30_selectedTex != 1)
+ break a;
+ nleg_EaglerAdapterGL30_enableTexture2D_1 = 0;
+ break a;
+ case 4:
+ nlea_EaglerAdapterImpl2_$callClinit();
+ nlea_EaglerAdapterImpl2_webgl.disable(2929);
+ break a;
+ case 6:
+ nleg_EaglerAdapterGL30_enableAlphaTest = 0;
+ break a;
+ case 13:
+ nleg_EaglerAdapterGL30_enableLighting = 0;
+ break a;
+ case 14:
+ nleg_EaglerAdapterGL30_fogEnabled = 0;
+ break a;
+ case 15:
+ nleg_EaglerAdapterGL30_enableColorMaterial = 0;
+ break a;
+ case 16:
+ nlea_EaglerAdapterImpl2_$callClinit();
+ nlea_EaglerAdapterImpl2_webgl.disable(3042);
+ break a;
+ case 41:
+ break;
+ case 46:
+ nlea_EaglerAdapterImpl2_$callClinit();
+ nlea_EaglerAdapterImpl2_webgl.disable(2884);
+ break a;
+ case 61:
+ case 62:
+ case 63:
+ case 64:
+ nleg_EaglerAdapterGL30_enableTexGen = 0;
+ break a;
+ case 147:
+ break a;
+ default:
+ break a;
+ }
+ }
+}
+function nleg_EaglerAdapterGL30_glColor4f($p1, $p2, $p3, $p4) {
+ nleg_EaglerAdapterGL30_$callClinit();
+ nleg_EaglerAdapterGL30_colorR = $p1;
+ nleg_EaglerAdapterGL30_colorG = $p2;
+ nleg_EaglerAdapterGL30_colorB = $p3;
+ nleg_EaglerAdapterGL30_colorA = $p4;
+}
+function nleg_EaglerAdapterGL30_glFlush() {
+ nleg_EaglerAdapterGL30_$callClinit();
+ nlea_EaglerAdapterImpl2_$callClinit();
+}
+function nleg_EaglerAdapterGL30_glLineWidth($p1) {
+ nleg_EaglerAdapterGL30_$callClinit();
+}
+function nleg_EaglerAdapterGL30_copyModelToLightMatrix() {
+ var var$1;
+ nleg_EaglerAdapterGL30_$callClinit();
+ var$1 = nleg_EaglerAdapterGL30_lightPos0vec;
+ var$1.$x0 = 0.20000000298023224;
+ var$1.$y0 = 1.0;
+ var$1.$z0 = (-0.699999988079071);
+ var$1.$w = 0.0;
+ nlegv_Vector_normalise(nleg_EaglerAdapterGL30_lightPos0vec);
+ var$1 = nleg_EaglerAdapterGL30_lightPos1vec;
+ var$1.$x0 = (-0.20000000298023224);
+ var$1.$y0 = 1.0;
+ var$1.$z0 = 0.699999988079071;
+ var$1.$w = 0.0;
+ nlegv_Vector_normalise(nleg_EaglerAdapterGL30_lightPos1vec);
+ nlegv_Vector_normalise(nlegv_Matrix4f_transform(nleg_EaglerAdapterGL30_matModelV.data[nleg_EaglerAdapterGL30_matModelPointer], nleg_EaglerAdapterGL30_lightPos0vec, nleg_EaglerAdapterGL30_lightPos0vec));
+ nlegv_Vector_normalise(nlegv_Matrix4f_transform(nleg_EaglerAdapterGL30_matModelV.data[nleg_EaglerAdapterGL30_matModelPointer], nleg_EaglerAdapterGL30_lightPos1vec, nleg_EaglerAdapterGL30_lightPos1vec));
+}
+function nleg_EaglerAdapterGL30_glPushMatrix() {
+ var var$1, var$2, var$3, var$4;
+ nleg_EaglerAdapterGL30_$callClinit();
+ a: {
+ b: {
+ switch (nleg_EaglerAdapterGL30_matrixMode) {
+ case 9:
+ break;
+ case 10:
+ break b;
+ case 54:
+ if (nleg_EaglerAdapterGL30_matTexPointer < (nleg_EaglerAdapterGL30_matTexV.data.length - 1 | 0)) {
+ nleg_EaglerAdapterGL30_matTexPointer = nleg_EaglerAdapterGL30_matTexPointer + 1 | 0;
+ var$1 = nleg_EaglerAdapterGL30_matTexV.data[nleg_EaglerAdapterGL30_matTexPointer];
+ nlegv_Matrix4f_load(nleg_EaglerAdapterGL30_matTexV.data[nleg_EaglerAdapterGL30_matTexPointer - 1 | 0], var$1);
+ break a;
+ }
+ if (jl_System_errCache === null) {
+ var$2 = new ji_PrintStream;
+ var$2.$out = new jl_ConsoleOutputStreamStderr;
+ var$1 = new jl_StringBuilder;
+ var$1.$buffer = $rt_createCharArray(16);
+ var$2.$sb = var$1;
+ var$2.$buffer0 = $rt_createCharArray(32);
+ var$2.$autoFlush = 0;
+ var$1 = new jnci_UTF8Charset;
+ jnc_Charset__init_(var$1, $rt_s(2), $rt_createArray(jl_String, 0));
+ var$2.$charset = var$1;
+ jl_System_errCache = var$2;
+ }
+ var$3 = jl_System_errCache;
+ var$2 = var$3.$sb;
+ jl_AbstractStringBuilder_insert(var$2, var$2.$length, $rt_s(221));
+ var$4 = var$2.$length;
+ jl_AbstractStringBuilder_insertSpace(var$2, var$4, var$4 + 1 | 0);
+ var$2.$buffer.data[var$4] = 10;
+ ji_PrintStream_printSB(var$3);
+ break a;
+ default:
+ break b;
+ }
+ if (nleg_EaglerAdapterGL30_matProjPointer < (nleg_EaglerAdapterGL30_matProjV.data.length - 1 | 0)) {
+ nleg_EaglerAdapterGL30_matProjPointer = nleg_EaglerAdapterGL30_matProjPointer + 1 | 0;
+ var$1 = nleg_EaglerAdapterGL30_matProjV.data[nleg_EaglerAdapterGL30_matProjPointer];
+ nlegv_Matrix4f_load(nleg_EaglerAdapterGL30_matProjV.data[nleg_EaglerAdapterGL30_matProjPointer - 1 | 0], var$1);
+ break a;
+ }
+ if (jl_System_errCache === null) {
+ var$2 = new ji_PrintStream;
+ var$2.$out = new jl_ConsoleOutputStreamStderr;
+ var$1 = new jl_StringBuilder;
+ var$1.$buffer = $rt_createCharArray(16);
+ var$2.$sb = var$1;
+ var$2.$buffer0 = $rt_createCharArray(32);
+ var$2.$autoFlush = 0;
+ var$1 = new jnci_UTF8Charset;
+ jnc_Charset__init_(var$1, $rt_s(2), $rt_createArray(jl_String, 0));
+ var$2.$charset = var$1;
+ jl_System_errCache = var$2;
+ }
+ var$3 = jl_System_errCache;
+ var$2 = var$3.$sb;
+ jl_AbstractStringBuilder_insert(var$2, var$2.$length, $rt_s(222));
+ var$4 = var$2.$length;
+ jl_AbstractStringBuilder_insertSpace(var$2, var$4, var$4 + 1 | 0);
+ var$2.$buffer.data[var$4] = 10;
+ ji_PrintStream_printSB(var$3);
+ break a;
+ }
+ if (nleg_EaglerAdapterGL30_matModelPointer < (nleg_EaglerAdapterGL30_matModelV.data.length - 1 | 0)) {
+ nleg_EaglerAdapterGL30_matModelPointer = nleg_EaglerAdapterGL30_matModelPointer + 1 | 0;
+ var$1 = nleg_EaglerAdapterGL30_matModelV.data[nleg_EaglerAdapterGL30_matModelPointer];
+ nlegv_Matrix4f_load(nleg_EaglerAdapterGL30_matModelV.data[nleg_EaglerAdapterGL30_matModelPointer - 1 | 0], var$1);
+ } else {
+ if (jl_System_errCache === null) {
+ var$2 = new ji_PrintStream;
+ var$2.$out = new jl_ConsoleOutputStreamStderr;
+ var$1 = new jl_StringBuilder;
+ var$1.$buffer = $rt_createCharArray(16);
+ var$2.$sb = var$1;
+ var$2.$buffer0 = $rt_createCharArray(32);
+ var$2.$autoFlush = 0;
+ var$1 = new jnci_UTF8Charset;
+ jnc_Charset__init_(var$1, $rt_s(2), $rt_createArray(jl_String, 0));
+ var$2.$charset = var$1;
+ jl_System_errCache = var$2;
+ }
+ var$3 = jl_System_errCache;
+ var$2 = var$3.$sb;
+ jl_AbstractStringBuilder_insert(var$2, var$2.$length, $rt_s(223));
+ var$4 = var$2.$length;
+ jl_AbstractStringBuilder_insertSpace(var$2, var$4, var$4 + 1 | 0);
+ var$2.$buffer.data[var$4] = 10;
+ ji_PrintStream_printSB(var$3);
+ }
+ }
+}
+function nleg_EaglerAdapterGL30_glRotatef($p1, $p2, $p3, $p4) {
+ var var$5, var$6, var$7, var$8;
+ nleg_EaglerAdapterGL30_$callClinit();
+ var$5 = nleg_EaglerAdapterGL30_deevis;
+ var$5.$x = $p2;
+ var$5.$y = $p3;
+ var$5.$z = $p4;
+ var$5 = nleg_EaglerAdapterGL30_getMatrix();
+ nlegv_Matrix4f_rotate($p1 * 0.01745329238474369, nleg_EaglerAdapterGL30_deevis, var$5, var$5);
+ if (nleg_EaglerAdapterGL30_isCompilingDisplayList) {
+ if (jl_System_errCache === null) {
+ var$6 = new ji_PrintStream;
+ var$6.$out = new jl_ConsoleOutputStreamStderr;
+ var$5 = new jl_StringBuilder;
+ var$5.$buffer = $rt_createCharArray(16);
+ var$6.$sb = var$5;
+ var$6.$buffer0 = $rt_createCharArray(32);
+ var$6.$autoFlush = 0;
+ var$5 = new jnci_UTF8Charset;
+ jnc_Charset__init_(var$5, $rt_s(2), $rt_createArray(jl_String, 0));
+ var$6.$charset = var$5;
+ jl_System_errCache = var$6;
+ }
+ var$7 = jl_System_errCache;
+ var$6 = var$7.$sb;
+ jl_AbstractStringBuilder_insert(var$6, var$6.$length, $rt_s(220));
+ var$8 = var$6.$length;
+ jl_AbstractStringBuilder_insertSpace(var$6, var$8, var$8 + 1 | 0);
+ var$6.$buffer.data[var$8] = 10;
+ ji_PrintStream_printSB(var$7);
+ }
+}
+function nleg_EaglerAdapterGL30_glPopMatrix() {
+ var var$1, var$2, var$3, var$4;
+ nleg_EaglerAdapterGL30_$callClinit();
+ a: {
+ b: {
+ switch (nleg_EaglerAdapterGL30_matrixMode) {
+ case 9:
+ break;
+ case 10:
+ break b;
+ case 54:
+ if (nleg_EaglerAdapterGL30_matTexPointer > 0) {
+ nleg_EaglerAdapterGL30_matTexPointer = nleg_EaglerAdapterGL30_matTexPointer - 1 | 0;
+ break a;
+ }
+ if (jl_System_errCache === null) {
+ var$1 = new ji_PrintStream;
+ var$1.$out = new jl_ConsoleOutputStreamStderr;
+ var$2 = new jl_StringBuilder;
+ var$2.$buffer = $rt_createCharArray(16);
+ var$1.$sb = var$2;
+ var$1.$buffer0 = $rt_createCharArray(32);
+ var$1.$autoFlush = 0;
+ var$2 = new jnci_UTF8Charset;
+ jnc_Charset__init_(var$2, $rt_s(2), $rt_createArray(jl_String, 0));
+ var$1.$charset = var$2;
+ jl_System_errCache = var$1;
+ }
+ var$3 = jl_System_errCache;
+ var$1 = var$3.$sb;
+ jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(224));
+ var$4 = var$1.$length;
+ jl_AbstractStringBuilder_insertSpace(var$1, var$4, var$4 + 1 | 0);
+ var$1.$buffer.data[var$4] = 10;
+ ji_PrintStream_printSB(var$3);
+ break a;
+ default:
+ break b;
+ }
+ if (nleg_EaglerAdapterGL30_matProjPointer > 0) {
+ nleg_EaglerAdapterGL30_matProjPointer = nleg_EaglerAdapterGL30_matProjPointer - 1 | 0;
+ break a;
+ }
+ if (jl_System_errCache === null) {
+ var$1 = new ji_PrintStream;
+ var$1.$out = new jl_ConsoleOutputStreamStderr;
+ var$2 = new jl_StringBuilder;
+ var$2.$buffer = $rt_createCharArray(16);
+ var$1.$sb = var$2;
+ var$1.$buffer0 = $rt_createCharArray(32);
+ var$1.$autoFlush = 0;
+ var$2 = new jnci_UTF8Charset;
+ jnc_Charset__init_(var$2, $rt_s(2), $rt_createArray(jl_String, 0));
+ var$1.$charset = var$2;
+ jl_System_errCache = var$1;
+ }
+ var$3 = jl_System_errCache;
+ var$1 = var$3.$sb;
+ jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(225));
+ var$4 = var$1.$length;
+ jl_AbstractStringBuilder_insertSpace(var$1, var$4, var$4 + 1 | 0);
+ var$1.$buffer.data[var$4] = 10;
+ ji_PrintStream_printSB(var$3);
+ break a;
+ }
+ if (nleg_EaglerAdapterGL30_matModelPointer > 0)
+ nleg_EaglerAdapterGL30_matModelPointer = nleg_EaglerAdapterGL30_matModelPointer - 1 | 0;
+ else {
+ if (jl_System_errCache === null) {
+ var$1 = new ji_PrintStream;
+ var$1.$out = new jl_ConsoleOutputStreamStderr;
+ var$2 = new jl_StringBuilder;
+ var$2.$buffer = $rt_createCharArray(16);
+ var$1.$sb = var$2;
+ var$1.$buffer0 = $rt_createCharArray(32);
+ var$1.$autoFlush = 0;
+ var$2 = new jnci_UTF8Charset;
+ jnc_Charset__init_(var$2, $rt_s(2), $rt_createArray(jl_String, 0));
+ var$1.$charset = var$2;
+ jl_System_errCache = var$1;
+ }
+ var$3 = jl_System_errCache;
+ var$1 = var$3.$sb;
+ jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(226));
+ var$4 = var$1.$length;
+ jl_AbstractStringBuilder_insertSpace(var$1, var$4, var$4 + 1 | 0);
+ var$1.$buffer.data[var$4] = 10;
+ ji_PrintStream_printSB(var$3);
+ }
+ }
+}
+function nleg_EaglerAdapterGL30_glGetFloat($p1, $p2) {
+ nleg_EaglerAdapterGL30_$callClinit();
+ a: {
+ switch ($p1) {
+ case 38:
+ break;
+ case 39:
+ nlegv_Matrix4f_store(nleg_EaglerAdapterGL30_matProjV.data[nleg_EaglerAdapterGL30_matProjPointer], $p2);
+ break a;
+ default:
+ }
+ nlegv_Matrix4f_store(nleg_EaglerAdapterGL30_matModelV.data[nleg_EaglerAdapterGL30_matModelPointer], $p2);
+ }
+}
+function nleg_EaglerAdapterGL30_glScalef($p1, $p2, $p3) {
+ var var$4, var$5, var$6, var$7;
+ nleg_EaglerAdapterGL30_$callClinit();
+ var$4 = nleg_EaglerAdapterGL30_deevis;
+ var$4.$x = $p1;
+ var$4.$y = $p2;
+ var$4.$z = $p3;
+ var$4 = nleg_EaglerAdapterGL30_getMatrix();
+ nlegv_Matrix4f_scale(nleg_EaglerAdapterGL30_deevis, var$4, var$4);
+ if (nleg_EaglerAdapterGL30_isCompilingDisplayList) {
+ if (jl_System_errCache === null) {
+ var$5 = new ji_PrintStream;
+ var$5.$out = new jl_ConsoleOutputStreamStderr;
+ var$4 = new jl_StringBuilder;
+ var$4.$buffer = $rt_createCharArray(16);
+ var$5.$sb = var$4;
+ var$5.$buffer0 = $rt_createCharArray(32);
+ var$5.$autoFlush = 0;
+ var$4 = new jnci_UTF8Charset;
+ jnc_Charset__init_(var$4, $rt_s(2), $rt_createArray(jl_String, 0));
+ var$5.$charset = var$4;
+ jl_System_errCache = var$5;
+ }
+ var$6 = jl_System_errCache;
+ var$5 = var$6.$sb;
+ jl_AbstractStringBuilder_insert(var$5, var$5.$length, $rt_s(220));
+ var$7 = var$5.$length;
+ jl_AbstractStringBuilder_insertSpace(var$5, var$7, var$7 + 1 | 0);
+ var$5.$buffer.data[var$7] = 10;
+ ji_PrintStream_printSB(var$6);
+ }
+}
+function nleg_EaglerAdapterGL30_glBlendFunc($p1, $p2) {
+ var var$3, var$4;
+ nleg_EaglerAdapterGL30_$callClinit();
+ a: {
+ b: {
+ switch ($p1) {
+ case 0:
+ break;
+ case 1:
+ var$3 = 1;
+ break a;
+ case 42:
+ break b;
+ case 43:
+ var$3 = 771;
+ break a;
+ case 45:
+ var$3 = 769;
+ break a;
+ case 53:
+ var$3 = 768;
+ break a;
+ case 77:
+ var$3 = 774;
+ break a;
+ case 80:
+ var$3 = 772;
+ break a;
+ default:
+ break b;
+ }
+ var$3 = 0;
+ break a;
+ }
+ var$3 = 770;
+ }
+ c: {
+ d: {
+ switch ($p2) {
+ case 0:
+ break;
+ case 1:
+ var$4 = 1;
+ break c;
+ case 42:
+ break d;
+ case 43:
+ var$4 = 771;
+ break c;
+ case 45:
+ var$4 = 769;
+ break c;
+ case 53:
+ var$4 = 768;
+ break c;
+ case 77:
+ var$4 = 774;
+ break c;
+ case 80:
+ var$4 = 772;
+ break c;
+ default:
+ break d;
+ }
+ var$4 = 0;
+ break c;
+ }
+ var$4 = 770;
+ }
+ nleg_EaglerAdapterGL30_fogPremultiply = $p1 == 1 && $p2 == 43 ? 1 : 0;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ nlea_EaglerAdapterImpl2_webgl.blendFunc(var$3, var$4);
+}
+function nleg_EaglerAdapterGL30_glDepthMask($p1) {
+ nleg_EaglerAdapterGL30_$callClinit();
+ nlea_EaglerAdapterImpl2_$callClinit();
+ nlea_EaglerAdapterImpl2_webgl.depthMask(!!$p1);
+}
+function nleg_EaglerAdapterGL30_glColorMask($p1, $p2, $p3, $p4) {
+ nleg_EaglerAdapterGL30_$callClinit();
+ nlea_EaglerAdapterImpl2_$callClinit();
+ nlea_EaglerAdapterImpl2_webgl.colorMask(!!$p1, !!$p2, !!$p3, !!$p4);
+}
+function nleg_EaglerAdapterGL30_glTexParameteri($p1, $p2, $p3) {
+ nleg_EaglerAdapterGL30_$callClinit();
+ switch ($p1) {
+ case 2:
+ break;
+ default:
+ }
+ a: {
+ b: {
+ switch ($p2) {
+ case 47:
+ break;
+ case 48:
+ break b;
+ case 72:
+ $p2 = 10242;
+ break a;
+ case 73:
+ $p2 = 10243;
+ break a;
+ case 151:
+ $p2 = 33085;
+ break a;
+ default:
+ break b;
+ }
+ $p2 = 10241;
+ break a;
+ }
+ $p2 = 10240;
+ }
+ c: {
+ switch ($p3) {
+ case 49:
+ $p3 = 9729;
+ break c;
+ case 70:
+ $p3 = 9728;
+ break c;
+ case 71:
+ $p3 = 33071;
+ break c;
+ case 74:
+ $p3 = 10497;
+ break c;
+ case 149:
+ $p3 = 9986;
+ break c;
+ case 152:
+ $p3 = 9987;
+ break c;
+ case 153:
+ $p3 = 9985;
+ break c;
+ case 154:
+ $p3 = 9984;
+ break c;
+ default:
+ }
+ }
+ nlea_EaglerAdapterImpl2_$callClinit();
+ nlea_EaglerAdapterImpl2_webgl.texParameteri(3553, $p2, $p3);
+}
+function nleg_EaglerAdapterGL30_glTexParameterf($p1, $p2, $p3) {
+ nleg_EaglerAdapterGL30_$callClinit();
+ switch ($p1) {
+ case 2:
+ break;
+ default:
+ }
+ switch ($p2) {
+ case 150:
+ break;
+ default:
+ }
+ nlea_EaglerAdapterImpl2_$callClinit();
+ nlea_EaglerAdapterImpl2_webgl.texParameterf(3553, 34046, $p3);
+}
+function nleg_EaglerAdapterGL30_glNormal3f($p1, $p2, $p3) {
+ var $len;
+ nleg_EaglerAdapterGL30_$callClinit();
+ $len = jl_Math_sqrt($p1 * $p1 + $p2 * $p2 + $p3 * $p3);
+ nleg_EaglerAdapterGL30_normalX = $p1 / $len;
+ nleg_EaglerAdapterGL30_normalY = $p2 / $len;
+ nleg_EaglerAdapterGL30_normalZ = $p3 / $len;
+}
+function nleg_EaglerAdapterGL30_glGenLists($p1) {
+ var $base, $i, $id, var$5, var$6, var$7;
+ nleg_EaglerAdapterGL30_$callClinit();
+ $base = nleg_EaglerAdapterGL30_displayListId + 1 | 0;
+ $i = 0;
+ while ($i < $p1) {
+ $id = nleg_EaglerAdapterGL30_displayListId + 1 | 0;
+ nleg_EaglerAdapterGL30_displayListId = $id;
+ var$5 = nleg_EaglerAdapterGL30_displayLists;
+ var$6 = jl_Integer_valueOf($id);
+ var$7 = new nleg_EaglerAdapterGL30$DisplayList;
+ var$7.$id0 = $id;
+ var$7.$glarray = null;
+ var$7.$glbuffer = null;
+ var$7.$shaderMode = (-1);
+ var$7.$listLength = 0;
+ ju_HashMap_putImpl(var$5, var$6, var$7);
+ $i = $i + 1 | 0;
+ }
+ return $base;
+}
+function nleg_EaglerAdapterGL30_glCallList($p1) {
+ var $d, var$3, var$4;
+ nleg_EaglerAdapterGL30_$callClinit();
+ if (!nleg_EaglerAdapterGL30_isCompilingDisplayList) {
+ $d = ju_HashMap_getEntry(nleg_EaglerAdapterGL30_displayListsInitialized, jl_Integer_valueOf($p1));
+ $d = $d === null ? null : $d.$value0;
+ if ($d !== null && $d.$listLength > 0) {
+ nleg_EaglerAdapterGL30_bindTheShader($d.$shaderMode | nleg_EaglerAdapterGL30_getShaderModeFlag1());
+ var$3 = $d.$glarray;
+ nleg_EaglerAdapterGL30_currentArray = var$3;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ var$4 = nlea_EaglerAdapterImpl2_webgl;
+ var$3 = var$3 !== null ? var$3.$obj5 : null;
+ var$4.bindVertexArray(var$3);
+ nleg_EaglerAdapterGL30__wglDrawQuadArrays(0, $d.$listLength);
+ nleg_EaglerAdapterGL30_vertexDrawn = nleg_EaglerAdapterGL30_vertexDrawn + (($d.$listLength * 6 | 0) / 4 | 0) | 0;
+ nleg_EaglerAdapterGL30_triangleDrawn = nleg_EaglerAdapterGL30_triangleDrawn + ($d.$listLength / 2 | 0) | 0;
+ }
+ }
+}
+function nleg_EaglerAdapterGL30_glNewList($p1, $p2) {
+ var var$3;
+ nleg_EaglerAdapterGL30_$callClinit();
+ if (!nleg_EaglerAdapterGL30_isCompilingDisplayList) {
+ var$3 = ju_HashMap_getEntry(nleg_EaglerAdapterGL30_displayLists, jl_Integer_valueOf($p1));
+ nleg_EaglerAdapterGL30_compilingDisplayList = var$3 === null ? null : var$3.$value0;
+ if (nleg_EaglerAdapterGL30_compilingDisplayList !== null) {
+ nleg_EaglerAdapterGL30_compilingDisplayList.$listLength = 0;
+ nleg_EaglerAdapterGL30_isCompilingDisplayList = 1;
+ }
+ }
+}
+function nleg_EaglerAdapterGL30_glEndList() {
+ var var$1, var$2, $upload, $f, var$5, var$6;
+ nleg_EaglerAdapterGL30_$callClinit();
+ if (nleg_EaglerAdapterGL30_isCompilingDisplayList) {
+ nleg_EaglerAdapterGL30_isCompilingDisplayList = 0;
+ var$1 = nlea_EaglerAdapterImpl2__wGetLowLevelBuffersAppended();
+ var$2 = var$1.byteLength;
+ if (var$2 > 0) {
+ if (nleg_EaglerAdapterGL30_compilingDisplayList.$glbuffer === null) {
+ ju_HashMap_putImpl(nleg_EaglerAdapterGL30_displayListsInitialized, jl_Integer_valueOf(nleg_EaglerAdapterGL30_compilingDisplayList.$id0), nleg_EaglerAdapterGL30_compilingDisplayList);
+ $upload = nleg_EaglerAdapterGL30_compilingDisplayList;
+ $f = new nlea_EaglerAdapterImpl2$BufferArrayGL;
+ $f.$obj5 = nlea_EaglerAdapterImpl2_webgl.createVertexArray();
+ $f.$isQuadBufferBound = 0;
+ $upload.$glarray = $f;
+ $upload = nleg_EaglerAdapterGL30_compilingDisplayList;
+ var$5 = new nlea_EaglerAdapterImpl2$BufferGL;
+ var$5.$obj2 = nlea_EaglerAdapterImpl2_webgl.createBuffer();
+ $upload.$glbuffer = var$5;
+ $f = nleg_FixedFunctionShader_instance(nleg_EaglerAdapterGL30_compilingDisplayList.$shaderMode);
+ var$6 = nleg_EaglerAdapterGL30_compilingDisplayList.$glarray;
+ nleg_EaglerAdapterGL30_currentArray = var$6;
+ $upload = nlea_EaglerAdapterImpl2_webgl;
+ var$6 = var$6 !== null ? var$6.$obj5 : null;
+ $upload.bindVertexArray(var$6);
+ var$6 = nleg_EaglerAdapterGL30_compilingDisplayList.$glbuffer;
+ $upload = nlea_EaglerAdapterImpl2_webgl;
+ var$6 = var$6 !== null ? var$6.$obj2 : null;
+ $upload.bindBuffer(34962, var$6);
+ nleg_FixedFunctionShader_setupArrayForProgram($f);
+ }
+ $f = nleg_EaglerAdapterGL30_compilingDisplayList.$glbuffer;
+ $upload = nlea_EaglerAdapterImpl2_webgl;
+ $f = $f !== null ? $f.$obj2 : null;
+ $upload.bindBuffer(34962, $f);
+ nlea_EaglerAdapterImpl2_webgl.bufferData(34962, var$1, 35044);
+ nleg_EaglerAdapterGL30_bytesUploaded = nleg_EaglerAdapterGL30_bytesUploaded + var$2 | 0;
+ }
+ }
+}
+function nleg_EaglerAdapterGL30_glColor3f($p1, $p2, $p3) {
+ nleg_EaglerAdapterGL30_$callClinit();
+ nleg_EaglerAdapterGL30_colorR = $p1;
+ nleg_EaglerAdapterGL30_colorG = $p2;
+ nleg_EaglerAdapterGL30_colorB = $p3;
+ nleg_EaglerAdapterGL30_colorA = 1.0;
+}
+function nleg_EaglerAdapterGL30_glTexGeni($p1, $p2, $p3) {
+ nleg_EaglerAdapterGL30_$callClinit();
+}
+function nleg_EaglerAdapterGL30_glTexGen($p1, $p2, $p3) {
+ nleg_EaglerAdapterGL30_$callClinit();
+ a: {
+ switch ($p1) {
+ case 57:
+ break;
+ case 58:
+ nleg_EaglerAdapterGL30_texT_plane = $p2 != 67 ? 0 : 1;
+ nleg_EaglerAdapterGL30_texT_X = jn_FloatBufferImpl_get($p3);
+ nleg_EaglerAdapterGL30_texT_Y = jn_FloatBufferImpl_get($p3);
+ nleg_EaglerAdapterGL30_texT_Z = jn_FloatBufferImpl_get($p3);
+ nleg_EaglerAdapterGL30_texT_W = jn_FloatBufferImpl_get($p3);
+ break a;
+ case 59:
+ nleg_EaglerAdapterGL30_texR_plane = $p2 != 67 ? 0 : 1;
+ nleg_EaglerAdapterGL30_texR_X = jn_FloatBufferImpl_get($p3);
+ nleg_EaglerAdapterGL30_texR_Y = jn_FloatBufferImpl_get($p3);
+ nleg_EaglerAdapterGL30_texR_Z = jn_FloatBufferImpl_get($p3);
+ nleg_EaglerAdapterGL30_texR_W = jn_FloatBufferImpl_get($p3);
+ break a;
+ case 60:
+ nleg_EaglerAdapterGL30_texQ_plane = $p2 != 67 ? 0 : 1;
+ nleg_EaglerAdapterGL30_texQ_X = jn_FloatBufferImpl_get($p3);
+ nleg_EaglerAdapterGL30_texQ_Y = jn_FloatBufferImpl_get($p3);
+ nleg_EaglerAdapterGL30_texQ_Z = jn_FloatBufferImpl_get($p3);
+ nleg_EaglerAdapterGL30_texQ_W = jn_FloatBufferImpl_get($p3);
+ break a;
+ default:
+ break a;
+ }
+ nleg_EaglerAdapterGL30_texS_plane = $p2 != 67 ? 0 : 1;
+ nleg_EaglerAdapterGL30_texS_X = jn_FloatBufferImpl_get($p3);
+ nleg_EaglerAdapterGL30_texS_Y = jn_FloatBufferImpl_get($p3);
+ nleg_EaglerAdapterGL30_texS_Z = jn_FloatBufferImpl_get($p3);
+ nleg_EaglerAdapterGL30_texS_W = jn_FloatBufferImpl_get($p3);
+ }
+}
+function nleg_EaglerAdapterGL30_glTexSubImage2D($p1, $p2, $p3, $p4, $p5, $p6, $p7, $p8, $p9) {
+ nleg_EaglerAdapterGL30_$callClinit();
+ switch ($p1) {
+ case 2:
+ break;
+ default:
+ }
+ nleg_EaglerAdapterGL30_bytesUploaded = nleg_EaglerAdapterGL30_bytesUploaded + (($p9.$limit - $p9.$position | 0) * 4 | 0) | 0;
+ nlea_EaglerAdapterImpl2__wglTexSubImage2D(3553, $p2, $p3, $p4, $p5, $p6, 6408, 5121, $p9);
+}
+function nleg_EaglerAdapterGL30_glEnableVertexAttrib($p1) {
+ nleg_EaglerAdapterGL30_$callClinit();
+ a: {
+ switch ($p1) {
+ case 82:
+ switch (nleg_EaglerAdapterGL30_selectedClientTex) {
+ case 0:
+ nleg_EaglerAdapterGL30_enableTex0Array = 1;
+ break a;
+ case 1:
+ nleg_EaglerAdapterGL30_enableTex1Array = 1;
+ break a;
+ default:
+ }
+ break a;
+ case 84:
+ break;
+ case 87:
+ nleg_EaglerAdapterGL30_enableNormalArray = 1;
+ break a;
+ default:
+ break a;
+ }
+ nleg_EaglerAdapterGL30_enableColorArray = 1;
+ }
+}
+function nleg_EaglerAdapterGL30_glDisableVertexAttrib($p1) {
+ nleg_EaglerAdapterGL30_$callClinit();
+ a: {
+ switch ($p1) {
+ case 82:
+ switch (nleg_EaglerAdapterGL30_selectedClientTex) {
+ case 0:
+ nleg_EaglerAdapterGL30_enableTex0Array = 0;
+ break a;
+ case 1:
+ nleg_EaglerAdapterGL30_enableTex1Array = 0;
+ break a;
+ default:
+ }
+ break a;
+ case 84:
+ break;
+ case 87:
+ nleg_EaglerAdapterGL30_enableNormalArray = 0;
+ break a;
+ default:
+ break a;
+ }
+ nleg_EaglerAdapterGL30_enableColorArray = 0;
+ }
+}
+function nleg_EaglerAdapterGL30_getShaderModeFlag0() {
+ nleg_EaglerAdapterGL30_$callClinit();
+ return 0 | (!nleg_EaglerAdapterGL30_enableColorArray ? 0 : 1) | (!nleg_EaglerAdapterGL30_enableNormalArray ? 0 : 2) | (!nleg_EaglerAdapterGL30_enableTex0Array ? 0 : 4) | (!nleg_EaglerAdapterGL30_enableTex1Array ? 0 : 8);
+}
+function nleg_EaglerAdapterGL30_getShaderModeFlag1() {
+ nleg_EaglerAdapterGL30_$callClinit();
+ return 0 | (!nleg_EaglerAdapterGL30_enableTexGen ? 0 : 16) | (nleg_EaglerAdapterGL30_enableColorMaterial && nleg_EaglerAdapterGL30_enableLighting ? 32 : 0) | (!nleg_EaglerAdapterGL30_fogEnabled ? 0 : 64) | (!nleg_EaglerAdapterGL30_enableAlphaTest ? 0 : 128) | (!nleg_EaglerAdapterGL30_enableTexture2D ? 0 : 256) | (!nleg_EaglerAdapterGL30_enableTexture2D_1 ? 0 : 512);
+}
+function nleg_EaglerAdapterGL30_getShaderModeFlag() {
+ nleg_EaglerAdapterGL30_$callClinit();
+ return 0 | (!nleg_EaglerAdapterGL30_enableColorArray ? 0 : 1) | (!nleg_EaglerAdapterGL30_enableNormalArray ? 0 : 2) | (!nleg_EaglerAdapterGL30_enableTex0Array ? 0 : 4) | (!nleg_EaglerAdapterGL30_enableTex1Array ? 0 : 8) | (!nleg_EaglerAdapterGL30_enableTexGen ? 0 : 16) | (nleg_EaglerAdapterGL30_enableColorMaterial && nleg_EaglerAdapterGL30_enableLighting ? 32 : 0) | (!nleg_EaglerAdapterGL30_fogEnabled ? 0 : 64) | (!nleg_EaglerAdapterGL30_enableAlphaTest ? 0 : 128) | (!nleg_EaglerAdapterGL30_enableTexture2D
+ ? 0 : 256) | (!nleg_EaglerAdapterGL30_enableTexture2D_1 ? 0 : 512);
+}
+function nleg_EaglerAdapterGL30_bindTheShader($mode) {
+ var $s, $matNormV_l, $matNormV3_l, var$5;
+ nleg_EaglerAdapterGL30_$callClinit();
+ $s = nleg_FixedFunctionShader_instance($mode);
+ nleg_EaglerAdapterGL30_shader = $s;
+ nlea_EaglerAdapterImpl2__wglUseProgram($s.$globject);
+ if (nleg_EaglerAdapterGL30_enableAlphaTest)
+ nleg_FixedFunctionShader_setAlphaTest($s, nleg_EaglerAdapterGL30_alphaThresh);
+ nleg_FixedFunctionShader_setColor($s, nleg_EaglerAdapterGL30_colorR, nleg_EaglerAdapterGL30_colorG, nleg_EaglerAdapterGL30_colorB, nleg_EaglerAdapterGL30_colorA);
+ if (nleg_EaglerAdapterGL30_fogEnabled) {
+ nleg_FixedFunctionShader_setFogMode($s, (!nleg_EaglerAdapterGL30_fogPremultiply ? 0 : 2) + nleg_EaglerAdapterGL30_fogMode | 0);
+ nleg_FixedFunctionShader_setFogColor($s, nleg_EaglerAdapterGL30_fogColorR, nleg_EaglerAdapterGL30_fogColorG, nleg_EaglerAdapterGL30_fogColorB, nleg_EaglerAdapterGL30_fogColorA);
+ nleg_FixedFunctionShader_setFogDensity($s, nleg_EaglerAdapterGL30_fogDensity);
+ nleg_FixedFunctionShader_setFogStartEnd($s, nleg_EaglerAdapterGL30_fogStart, nleg_EaglerAdapterGL30_fogEnd);
+ }
+ nleg_FixedFunctionShader_setModelMatrix($s, nleg_EaglerAdapterGL30_matModelV.data[nleg_EaglerAdapterGL30_matModelPointer]);
+ nleg_FixedFunctionShader_setProjectionMatrix($s, nleg_EaglerAdapterGL30_matProjV.data[nleg_EaglerAdapterGL30_matProjPointer]);
+ nleg_FixedFunctionShader_setTextureMatrix($s, nleg_EaglerAdapterGL30_matTexV.data[nleg_EaglerAdapterGL30_matTexPointer]);
+ if (nleg_EaglerAdapterGL30_enableColorMaterial && nleg_EaglerAdapterGL30_enableLighting) {
+ nleg_FixedFunctionShader_setNormal($s, nleg_EaglerAdapterGL30_normalX, nleg_EaglerAdapterGL30_normalY, nleg_EaglerAdapterGL30_normalZ);
+ $matNormV_l = nleg_EaglerAdapterGL30_matNormV;
+ $matNormV3_l = nleg_EaglerAdapterGL30_matNormV3;
+ var$5 = nlegv_Matrix4f_load(nleg_EaglerAdapterGL30_matModelV.data[nleg_EaglerAdapterGL30_matModelPointer], $matNormV_l);
+ var$5 = nlegv_Matrix4f_invert(var$5, var$5);
+ nlegv_Matrix4f_transpose(var$5, var$5);
+ $matNormV3_l.$m000 = $matNormV_l.$m00;
+ $matNormV3_l.$m010 = $matNormV_l.$m01;
+ $matNormV3_l.$m020 = $matNormV_l.$m02;
+ $matNormV3_l.$m100 = $matNormV_l.$m10;
+ $matNormV3_l.$m110 = $matNormV_l.$m11;
+ $matNormV3_l.$m120 = $matNormV_l.$m12;
+ $matNormV3_l.$m200 = $matNormV_l.$m20;
+ $matNormV3_l.$m210 = $matNormV_l.$m21;
+ $matNormV3_l.$m220 = $matNormV_l.$m22;
+ nleg_FixedFunctionShader_setModelNormalMatrix($s, $matNormV3_l);
+ nleg_FixedFunctionShader_setLightPositions($s, nleg_EaglerAdapterGL30_lightPos0vec, nleg_EaglerAdapterGL30_lightPos1vec);
+ }
+ nleg_FixedFunctionShader_setTex0Coords($s, nleg_EaglerAdapterGL30_tex0X, nleg_EaglerAdapterGL30_tex0Y);
+ nleg_FixedFunctionShader_setTex1Coords($s, nleg_EaglerAdapterGL30_tex1X, nleg_EaglerAdapterGL30_tex1Y);
+ if (nleg_EaglerAdapterGL30_enableTexGen) {
+ nleg_FixedFunctionShader_setTexGenS($s, nleg_EaglerAdapterGL30_texS_plane, nleg_EaglerAdapterGL30_texS_X, nleg_EaglerAdapterGL30_texS_Y, nleg_EaglerAdapterGL30_texS_Z, nleg_EaglerAdapterGL30_texS_W);
+ nleg_FixedFunctionShader_setTexGenT($s, nleg_EaglerAdapterGL30_texT_plane, nleg_EaglerAdapterGL30_texT_X, nleg_EaglerAdapterGL30_texT_Y, nleg_EaglerAdapterGL30_texT_Z, nleg_EaglerAdapterGL30_texT_W);
+ nleg_FixedFunctionShader_setTexGenR($s, nleg_EaglerAdapterGL30_texR_plane, nleg_EaglerAdapterGL30_texR_X, nleg_EaglerAdapterGL30_texR_Y, nleg_EaglerAdapterGL30_texR_Z, nleg_EaglerAdapterGL30_texR_W);
+ nleg_FixedFunctionShader_setTexGenQ($s, nleg_EaglerAdapterGL30_texQ_plane, nleg_EaglerAdapterGL30_texQ_X, nleg_EaglerAdapterGL30_texQ_Y, nleg_EaglerAdapterGL30_texQ_Z, nleg_EaglerAdapterGL30_texQ_W);
+ }
+}
+function nleg_EaglerAdapterGL30_glDrawArrays($p1, $p2, $p3, $buffer) {
+ var var$5, var$6, var$7, var$8;
+ nleg_EaglerAdapterGL30_$callClinit();
+ if (nleg_EaglerAdapterGL30_isCompilingDisplayList) {
+ if ($p1 != 98) {
+ if (jl_System_errCache === null) {
+ var$5 = new ji_PrintStream;
+ var$5.$out = new jl_ConsoleOutputStreamStderr;
+ $buffer = new jl_StringBuilder;
+ $buffer.$buffer = $rt_createCharArray(16);
+ var$5.$sb = $buffer;
+ var$5.$buffer0 = $rt_createCharArray(32);
+ var$5.$autoFlush = 0;
+ $buffer = new jnci_UTF8Charset;
+ jnc_Charset__init_($buffer, $rt_s(2), $rt_createArray(jl_String, 0));
+ var$5.$charset = $buffer;
+ jl_System_errCache = var$5;
+ }
+ var$6 = jl_System_errCache;
+ var$5 = var$6.$sb;
+ jl_AbstractStringBuilder_insert(var$5, var$5.$length, $rt_s(227));
+ $p2 = var$5.$length;
+ jl_AbstractStringBuilder_insertSpace(var$5, $p2, $p2 + 1 | 0);
+ var$5.$buffer.data[$p2] = 10;
+ ji_PrintStream_printSB(var$6);
+ } else {
+ if (nleg_EaglerAdapterGL30_compilingDisplayList.$shaderMode == (-1))
+ nleg_EaglerAdapterGL30_compilingDisplayList.$shaderMode = nleg_EaglerAdapterGL30_getShaderModeFlag0();
+ else if (nleg_EaglerAdapterGL30_compilingDisplayList.$shaderMode != nleg_EaglerAdapterGL30_getShaderModeFlag0()) {
+ if (jl_System_errCache === null) {
+ var$6 = new ji_PrintStream;
+ var$6.$out = new jl_ConsoleOutputStreamStderr;
+ var$5 = new jl_StringBuilder;
+ var$5.$buffer = $rt_createCharArray(16);
+ var$6.$sb = var$5;
+ var$6.$buffer0 = $rt_createCharArray(32);
+ var$6.$autoFlush = 0;
+ var$5 = new jnci_UTF8Charset;
+ jnc_Charset__init_(var$5, $rt_s(2), $rt_createArray(jl_String, 0));
+ var$6.$charset = var$5;
+ jl_System_errCache = var$6;
+ }
+ var$7 = jl_System_errCache;
+ var$6 = var$7.$sb;
+ jl_AbstractStringBuilder_insert(var$6, var$6.$length, $rt_s(228));
+ $p2 = var$6.$length;
+ jl_AbstractStringBuilder_insertSpace(var$6, $p2, $p2 + 1 | 0);
+ var$6.$buffer.data[$p2] = 10;
+ ji_PrintStream_printSB(var$7);
+ }
+ var$5 = nleg_EaglerAdapterGL30_compilingDisplayList;
+ var$5.$listLength = var$5.$listLength + $p3 | 0;
+ nlea_EaglerAdapterImpl2__wAppendLowLevelBuffer($buffer);
+ }
+ } else {
+ var$8 = nleg_EaglerAdapterGL30_bytesUploaded;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ var$5 = $buffer;
+ nleg_EaglerAdapterGL30_bytesUploaded = var$8 + var$5.byteLength | 0;
+ nleg_EaglerAdapterGL30_vertexDrawn = nleg_EaglerAdapterGL30_vertexDrawn + $p3 | 0;
+ nleg_EaglerAdapterGL30_bindTheShader(nleg_EaglerAdapterGL30_getShaderModeFlag());
+ $buffer = nleg_EaglerAdapterGL30_shader.$genericArray;
+ nleg_EaglerAdapterGL30_currentArray = $buffer;
+ var$6 = nlea_EaglerAdapterImpl2_webgl;
+ $buffer = $buffer !== null ? $buffer.$obj5 : null;
+ var$6.bindVertexArray($buffer);
+ $buffer = nleg_EaglerAdapterGL30_shader.$genericBuffer;
+ var$6 = nlea_EaglerAdapterImpl2_webgl;
+ $buffer = $buffer !== null ? $buffer.$obj2 : null;
+ var$6.bindBuffer(34962, $buffer);
+ if (!nleg_EaglerAdapterGL30_shader.$bufferIsInitialized) {
+ nleg_EaglerAdapterGL30_shader.$bufferIsInitialized = 1;
+ $buffer = nleg_EaglerAdapterGL30_blankUploadArray;
+ var$6 = nlea_EaglerAdapterImpl2_webgl;
+ $buffer = $buffer;
+ var$6.bufferData(34962, $buffer, 35048);
+ }
+ nlea_EaglerAdapterImpl2_webgl.bufferSubData(34962, 0, var$5);
+ if ($p1 == 98) {
+ nleg_EaglerAdapterGL30__wglDrawQuadArrays($p2, $p3);
+ nleg_EaglerAdapterGL30_triangleDrawn = nleg_EaglerAdapterGL30_triangleDrawn + ($p3 / 2 | 0) | 0;
+ } else {
+ a: {
+ switch ($p1) {
+ case 86:
+ break;
+ case 95:
+ $p1 = 5;
+ nleg_EaglerAdapterGL30_triangleDrawn = nleg_EaglerAdapterGL30_triangleDrawn + ($p3 - 2 | 0) | 0;
+ break a;
+ case 145:
+ $p1 = 6;
+ nleg_EaglerAdapterGL30_triangleDrawn = nleg_EaglerAdapterGL30_triangleDrawn + ($p3 - 2 | 0) | 0;
+ break a;
+ case 146:
+ $p1 = 3;
+ nleg_EaglerAdapterGL30_triangleDrawn = nleg_EaglerAdapterGL30_triangleDrawn + ($p3 - 1 | 0) | 0;
+ break a;
+ case 148:
+ $p1 = 1;
+ nleg_EaglerAdapterGL30_triangleDrawn = nleg_EaglerAdapterGL30_triangleDrawn + ($p3 / 2 | 0) | 0;
+ break a;
+ default:
+ }
+ $p1 = 4;
+ nleg_EaglerAdapterGL30_triangleDrawn = nleg_EaglerAdapterGL30_triangleDrawn + ($p3 / 3 | 0) | 0;
+ }
+ nlea_EaglerAdapterImpl2_webgl.drawArrays($p1, $p2, $p3);
+ }
+ }
+}
+function nleg_EaglerAdapterGL30__wglDrawQuadArrays($p2, $p3) {
+ var $upload, var$4, $v3, var$6, $i, $v1, $v2, $v4, var$11, var$12;
+ nleg_EaglerAdapterGL30_$callClinit();
+ if (nleg_EaglerAdapterGL30_quadsToTrianglesBuffer === null) {
+ if (!nleg_EaglerAdapterGL30_isWebGL) {
+ $upload = jn_ByteBuffer_allocateDirect(196800);
+ $upload.$order = jn_ByteOrder_BIG_ENDIAN;
+ $upload = jn_ByteBufferImpl_asIntBuffer($upload);
+ } else {
+ var$4 = $rt_createIntArray(49200);
+ $v3 = var$4.data.length;
+ $upload = new jn_IntBufferOverArray;
+ var$6 = 0 + $v3 | 0;
+ $upload.$mark = (-1);
+ $upload.$capacity = $v3;
+ $upload.$limit = $v3;
+ $upload.$position = 0;
+ $upload.$limit = var$6;
+ $upload.$start1 = 0;
+ $upload.$readOnly1 = 0;
+ $upload.$array2 = var$4;
+ }
+ $i = 0;
+ while ($i < 16384) {
+ $v1 = $i * 4 | 0;
+ $v2 = $v1 + 1 | 0;
+ $v3 = $v1 + 2 | 0;
+ $v4 = $v1 + 3 | 0;
+ $v2 = $v2 << 16;
+ jn_IntBufferImpl_put($upload, $v1 | $v2);
+ jn_IntBufferImpl_put($upload, $v4 | $v2);
+ jn_IntBufferImpl_put($upload, $v3 | $v4 << 16);
+ $i = $i + 1 | 0;
+ }
+ $upload.$limit = $upload.$position;
+ $upload.$position = 0;
+ $upload.$mark = (-1);
+ nlea_EaglerAdapterImpl2_$callClinit();
+ var$11 = new nlea_EaglerAdapterImpl2$BufferGL;
+ var$11.$obj2 = nlea_EaglerAdapterImpl2_webgl.createBuffer();
+ nleg_EaglerAdapterGL30_quadsToTrianglesBuffer = var$11;
+ var$12 = nleg_EaglerAdapterGL30_quadsToTrianglesBuffer;
+ var$11 = nlea_EaglerAdapterImpl2_webgl;
+ var$12 = var$12 !== null ? var$12.$obj2 : null;
+ var$11.bindBuffer(34963, var$12);
+ nlea_EaglerAdapterImpl2__wglBufferData0(34963, $upload, 35044);
+ }
+ if (!nleg_EaglerAdapterGL30_currentArray.$isQuadBufferBound) {
+ nleg_EaglerAdapterGL30_currentArray.$isQuadBufferBound = 1;
+ $upload = nleg_EaglerAdapterGL30_quadsToTrianglesBuffer;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ var$11 = nlea_EaglerAdapterImpl2_webgl;
+ $upload = $upload !== null ? $upload.$obj2 : null;
+ var$11.bindBuffer(34963, $upload);
+ }
+ $v2 = ($p3 * 6 | 0) / 4 | 0;
+ $p2 = ($p2 * 6 | 0) / 4 | 0;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ nlea_EaglerAdapterImpl2_webgl.drawElements(4, $v2, 5123, $p2);
+}
+function nleg_EaglerAdapterGL30_initializeOcclusionObjects() {
+ var $upload, $verts, $i, $vert, $frag, $src;
+ nleg_EaglerAdapterGL30_$callClinit();
+ nleg_EaglerAdapterGL30_occlusion_vao = nlea_EaglerAdapterImpl2__wglCreateVertexArray();
+ nleg_EaglerAdapterGL30_occlusion_vbo = nlea_EaglerAdapterImpl2__wglCreateBuffer();
+ $upload = nleg_EaglerAdapterGL30_isWebGL ? jn_IntBuffer_wrap($rt_createIntArray(108)) : jn_ByteBufferImpl_asIntBuffer(jn_ByteBuffer_order(jn_ByteBuffer_allocateDirect(432), jn_ByteOrder_nativeOrder()));
+ $verts = $rt_createFloatArray(108).data;
+ $verts[0] = 0.0;
+ $verts[1] = 0.0;
+ $verts[2] = 0.0;
+ $verts[3] = 0.0;
+ $verts[4] = 0.0;
+ $verts[5] = 1.0;
+ $verts[6] = 0.0;
+ $verts[7] = 1.0;
+ $verts[8] = 1.0;
+ $verts[9] = 1.0;
+ $verts[10] = 1.0;
+ $verts[11] = 0.0;
+ $verts[12] = 0.0;
+ $verts[13] = 0.0;
+ $verts[14] = 0.0;
+ $verts[15] = 0.0;
+ $verts[16] = 1.0;
+ $verts[17] = 0.0;
+ $verts[18] = 1.0;
+ $verts[19] = 0.0;
+ $verts[20] = 1.0;
+ $verts[21] = 0.0;
+ $verts[22] = 0.0;
+ $verts[23] = 0.0;
+ $verts[24] = 1.0;
+ $verts[25] = 0.0;
+ $verts[26] = 0.0;
+ $verts[27] = 1.0;
+ $verts[28] = 1.0;
+ $verts[29] = 0.0;
+ $verts[30] = 1.0;
+ $verts[31] = 0.0;
+ $verts[32] = 0.0;
+ $verts[33] = 0.0;
+ $verts[34] = 0.0;
+ $verts[35] = 0.0;
+ $verts[36] = 0.0;
+ $verts[37] = 0.0;
+ $verts[38] = 0.0;
+ $verts[39] = 0.0;
+ $verts[40] = 1.0;
+ $verts[41] = 1.0;
+ $verts[42] = 0.0;
+ $verts[43] = 1.0;
+ $verts[44] = 0.0;
+ $verts[45] = 1.0;
+ $verts[46] = 0.0;
+ $verts[47] = 1.0;
+ $verts[48] = 0.0;
+ $verts[49] = 0.0;
+ $verts[50] = 1.0;
+ $verts[51] = 0.0;
+ $verts[52] = 0.0;
+ $verts[53] = 0.0;
+ $verts[54] = 0.0;
+ $verts[55] = 1.0;
+ $verts[56] = 1.0;
+ $verts[57] = 0.0;
+ $verts[58] = 0.0;
+ $verts[59] = 1.0;
+ $verts[60] = 1.0;
+ $verts[61] = 0.0;
+ $verts[62] = 1.0;
+ $verts[63] = 1.0;
+ $verts[64] = 1.0;
+ $verts[65] = 1.0;
+ $verts[66] = 1.0;
+ $verts[67] = 0.0;
+ $verts[68] = 0.0;
+ $verts[69] = 1.0;
+ $verts[70] = 1.0;
+ $verts[71] = 0.0;
+ $verts[72] = 1.0;
+ $verts[73] = 0.0;
+ $verts[74] = 0.0;
+ $verts[75] = 1.0;
+ $verts[76] = 1.0;
+ $verts[77] = 1.0;
+ $verts[78] = 1.0;
+ $verts[79] = 0.0;
+ $verts[80] = 1.0;
+ $verts[81] = 1.0;
+ $verts[82] = 1.0;
+ $verts[83] = 1.0;
+ $verts[84] = 1.0;
+ $verts[85] = 1.0;
+ $verts[86] = 0.0;
+ $verts[87] = 0.0;
+ $verts[88] = 1.0;
+ $verts[89] = 0.0;
+ $verts[90] = 1.0;
+ $verts[91] = 1.0;
+ $verts[92] = 1.0;
+ $verts[93] = 0.0;
+ $verts[94] = 1.0;
+ $verts[95] = 0.0;
+ $verts[96] = 0.0;
+ $verts[97] = 1.0;
+ $verts[98] = 1.0;
+ $verts[99] = 1.0;
+ $verts[100] = 1.0;
+ $verts[101] = 1.0;
+ $verts[102] = 0.0;
+ $verts[103] = 1.0;
+ $verts[104] = 1.0;
+ $verts[105] = 1.0;
+ $verts[106] = 0.0;
+ $verts[107] = 1.0;
+ $i = 0;
+ while ($i < $verts.length) {
+ jn_IntBufferImpl_put($upload, jl_Float_floatToRawIntBits($verts[$i]));
+ $i = $i + 1 | 0;
+ }
+ jn_IntBuffer_flip($upload);
+ nlea_EaglerAdapterImpl2__wglBindVertexArray(nleg_EaglerAdapterGL30_occlusion_vao);
+ nlea_EaglerAdapterImpl2__wglBindBuffer(34962, nleg_EaglerAdapterGL30_occlusion_vbo);
+ nlea_EaglerAdapterImpl2__wglBufferData0(34962, $upload, 35044);
+ nlea_EaglerAdapterImpl2__wglEnableVertexAttribArray(0);
+ nlea_EaglerAdapterImpl2__wglVertexAttribPointer(0, 3, 5126, 0, 12, 0);
+ $vert = nlea_EaglerAdapterImpl2__wglCreateShader(35633);
+ $frag = nlea_EaglerAdapterImpl2__wglCreateShader(35632);
+ $src = nlea_EaglerAdapterImpl2_fileContents($rt_s(229));
+ nlea_EaglerAdapterImpl2__wglShaderSource($vert, jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), nlea_EaglerAdapterImpl2__wgetShaderHeader()), $rt_s(230)), $src)));
+ nlea_EaglerAdapterImpl2__wglShaderSource($frag, jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), nlea_EaglerAdapterImpl2__wgetShaderHeader()), $rt_s(231)), $src)));
+ nlea_EaglerAdapterImpl2__wglCompileShader($vert);
+ if (!nlea_EaglerAdapterImpl2__wglGetShaderCompiled($vert))
+ ji_PrintStream_println0(jl_System_err(), jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), jl_String_replace0(jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $rt_s(60)), nlea_EaglerAdapterImpl2__wglGetShaderInfoLog($vert))), $rt_s(60), $rt_s(232))), $rt_s(60))));
+ nlea_EaglerAdapterImpl2__wglCompileShader($frag);
+ if (!nlea_EaglerAdapterImpl2__wglGetShaderCompiled($frag))
+ ji_PrintStream_println0(jl_System_err(), jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), jl_String_replace0(jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $rt_s(60)), nlea_EaglerAdapterImpl2__wglGetShaderInfoLog($frag))), $rt_s(60), $rt_s(233))), $rt_s(60))));
+ nleg_EaglerAdapterGL30_occlusion_program = nlea_EaglerAdapterImpl2__wglCreateProgram();
+ nlea_EaglerAdapterImpl2__wglAttachShader(nleg_EaglerAdapterGL30_occlusion_program, $vert);
+ nlea_EaglerAdapterImpl2__wglAttachShader(nleg_EaglerAdapterGL30_occlusion_program, $frag);
+ nlea_EaglerAdapterImpl2__wglLinkProgram(nleg_EaglerAdapterGL30_occlusion_program);
+ nlea_EaglerAdapterImpl2__wglDetachShader(nleg_EaglerAdapterGL30_occlusion_program, $vert);
+ nlea_EaglerAdapterImpl2__wglDetachShader(nleg_EaglerAdapterGL30_occlusion_program, $frag);
+ nlea_EaglerAdapterImpl2__wglDeleteShader($vert);
+ nlea_EaglerAdapterImpl2__wglDeleteShader($frag);
+ if (!nlea_EaglerAdapterImpl2__wglGetProgramLinked(nleg_EaglerAdapterGL30_occlusion_program))
+ ji_PrintStream_println0(jl_System_err(), jl_String_replace0(jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $rt_s(234)), nlea_EaglerAdapterImpl2__wglGetProgramInfoLog(nleg_EaglerAdapterGL30_occlusion_program))), $rt_s(60), $rt_s(235)));
+ nlea_EaglerAdapterImpl2__wglUseProgram(nleg_EaglerAdapterGL30_occlusion_program);
+ nleg_EaglerAdapterGL30_occlusion_matrix_m = nlea_EaglerAdapterImpl2__wglGetUniformLocation(nleg_EaglerAdapterGL30_occlusion_program, $rt_s(236));
+ nleg_EaglerAdapterGL30_occlusion_matrix_p = nlea_EaglerAdapterImpl2__wglGetUniformLocation(nleg_EaglerAdapterGL30_occlusion_program, $rt_s(237));
+}
+function nleg_EaglerAdapterGL30_glCreateQuery() {
+ var var$1, var$2;
+ nleg_EaglerAdapterGL30_$callClinit();
+ var$1 = nleg_EaglerAdapterGL30_queryObjs;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ var$2 = new nlea_EaglerAdapterImpl2$QueryGL;
+ var$2.$obj7 = nlea_EaglerAdapterImpl2_webgl.createQuery();
+ return nleg_GLObjectMap_register(var$1, var$2);
+}
+function nleg_EaglerAdapterGL30_glBeginQuery($obj) {
+ var var$2, var$3;
+ nleg_EaglerAdapterGL30_$callClinit();
+ var$2 = nleg_EaglerAdapterGL30_queryObjs;
+ var$2 = $obj < var$2.$size3 && $obj >= 0 ? var$2.$values.data[$obj] : null;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ var$3 = nlea_EaglerAdapterImpl2_webgl;
+ var$2 = var$2.$obj7;
+ var$3.beginQuery(36202, var$2);
+}
+function nleg_EaglerAdapterGL30_glBindOcclusionBB() {
+ var var$1, var$2;
+ nleg_EaglerAdapterGL30_$callClinit();
+ if (nleg_EaglerAdapterGL30_occlusion_vao === null)
+ nleg_EaglerAdapterGL30_initializeOcclusionObjects();
+ nlea_EaglerAdapterImpl2__wglUseProgram(nleg_EaglerAdapterGL30_occlusion_program);
+ var$1 = nleg_EaglerAdapterGL30_occlusion_vao;
+ var$2 = nlea_EaglerAdapterImpl2_webgl;
+ var$1 = var$1 !== null ? var$1.$obj5 : null;
+ var$2.bindVertexArray(var$1);
+ var$1 = nleg_EaglerAdapterGL30_cachedOcclusionP;
+ var$2 = nleg_EaglerAdapterGL30_matProjV.data[nleg_EaglerAdapterGL30_matProjPointer];
+ if (!(var$2 instanceof nlegv_Matrix4f && nlegv_Matrix4f_equal(var$1, var$2) ? 1 : 0)) {
+ var$1 = nleg_EaglerAdapterGL30_cachedOcclusionP;
+ nlegv_Matrix4f_load(nleg_EaglerAdapterGL30_matProjV.data[nleg_EaglerAdapterGL30_matProjPointer], var$1);
+ nlegv_Matrix4f_store0(nleg_EaglerAdapterGL30_cachedOcclusionP, nleg_EaglerAdapterGL30_occlusionProj);
+ nlea_EaglerAdapterImpl2__wglUniformMat4fv(nleg_EaglerAdapterGL30_occlusion_matrix_p, nleg_EaglerAdapterGL30_occlusionProj);
+ }
+}
+function nleg_EaglerAdapterGL30_glEndOcclusionBB() {
+ nleg_EaglerAdapterGL30_$callClinit();
+}
+function nleg_EaglerAdapterGL30_glDrawOcclusionBB($posX, $posY, $posZ, $sizeX, $sizeY, $sizeZ) {
+ var var$7, var$8, var$9, var$10, var$11;
+ nleg_EaglerAdapterGL30_$callClinit();
+ nleg_EaglerAdapterGL30_glPushMatrix();
+ var$7 = $posX - $sizeX * 9.999999747378752E-5;
+ $posY = $posY - $sizeY * 9.999999747378752E-5;
+ $posX = $posZ - $sizeZ * 9.999999747378752E-5;
+ var$8 = nleg_EaglerAdapterGL30_deevis;
+ var$8.$x = var$7;
+ var$8.$y = $posY;
+ var$8.$z = $posX;
+ var$8 = nleg_EaglerAdapterGL30_getMatrix();
+ nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, var$8, var$8);
+ if (nleg_EaglerAdapterGL30_isCompilingDisplayList) {
+ if (jl_System_errCache === null) {
+ var$9 = new ji_PrintStream;
+ var$9.$out = new jl_ConsoleOutputStreamStderr;
+ var$8 = new jl_StringBuilder;
+ var$8.$buffer = $rt_createCharArray(16);
+ var$9.$sb = var$8;
+ var$9.$buffer0 = $rt_createCharArray(32);
+ var$9.$autoFlush = 0;
+ var$8 = new jnci_UTF8Charset;
+ jnc_Charset__init_(var$8, $rt_s(2), $rt_createArray(jl_String, 0));
+ var$9.$charset = var$8;
+ jl_System_errCache = var$9;
+ }
+ var$10 = jl_System_errCache;
+ var$9 = var$10.$sb;
+ jl_AbstractStringBuilder_insert(var$9, var$9.$length, $rt_s(220));
+ var$11 = var$9.$length;
+ jl_AbstractStringBuilder_insertSpace(var$9, var$11, var$11 + 1 | 0);
+ var$9.$buffer.data[var$11] = 10;
+ ji_PrintStream_printSB(var$10);
+ }
+ $posX = $sizeX * 1.0002000331878662;
+ $posY = $sizeY * 1.0002000331878662;
+ $posZ = $sizeZ * 1.0002000331878662;
+ var$8 = nleg_EaglerAdapterGL30_deevis;
+ var$8.$x = $posX;
+ var$8.$y = $posY;
+ var$8.$z = $posZ;
+ var$8 = nleg_EaglerAdapterGL30_getMatrix();
+ nlegv_Matrix4f_scale(nleg_EaglerAdapterGL30_deevis, var$8, var$8);
+ if (nleg_EaglerAdapterGL30_isCompilingDisplayList) {
+ if (jl_System_errCache === null) {
+ var$9 = new ji_PrintStream;
+ var$9.$out = new jl_ConsoleOutputStreamStderr;
+ var$8 = new jl_StringBuilder;
+ var$8.$buffer = $rt_createCharArray(16);
+ var$9.$sb = var$8;
+ var$9.$buffer0 = $rt_createCharArray(32);
+ var$9.$autoFlush = 0;
+ var$8 = new jnci_UTF8Charset;
+ jnc_Charset__init_(var$8, $rt_s(2), $rt_createArray(jl_String, 0));
+ var$9.$charset = var$8;
+ jl_System_errCache = var$9;
+ }
+ var$10 = jl_System_errCache;
+ var$9 = var$10.$sb;
+ jl_AbstractStringBuilder_insert(var$9, var$9.$length, $rt_s(220));
+ var$11 = var$9.$length;
+ jl_AbstractStringBuilder_insertSpace(var$9, var$11, var$11 + 1 | 0);
+ var$9.$buffer.data[var$11] = 10;
+ ji_PrintStream_printSB(var$10);
+ }
+ nlegv_Matrix4f_store0(nleg_EaglerAdapterGL30_matModelV.data[nleg_EaglerAdapterGL30_matModelPointer], nleg_EaglerAdapterGL30_occlusionModel);
+ nlea_EaglerAdapterImpl2__wglUniformMat4fv(nleg_EaglerAdapterGL30_occlusion_matrix_m, nleg_EaglerAdapterGL30_occlusionModel);
+ nlea_EaglerAdapterImpl2_webgl.drawArrays(4, 0, 36);
+ nleg_EaglerAdapterGL30_glPopMatrix();
+}
+function nleg_EaglerAdapterGL30_glEndQuery() {
+ nleg_EaglerAdapterGL30_$callClinit();
+ nlea_EaglerAdapterImpl2_$callClinit();
+ nlea_EaglerAdapterImpl2_webgl.endQuery(36202);
+}
+function nleg_EaglerAdapterGL30_glGetQueryResult($obj) {
+ var $q, var$3, var$4;
+ nleg_EaglerAdapterGL30_$callClinit();
+ $q = nleg_EaglerAdapterGL30_queryObjs;
+ $q = $obj < $q.$size3 && $obj >= 0 ? $q.$values.data[$obj] : null;
+ a: {
+ $q = $q;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ var$3 = nlea_EaglerAdapterImpl2_webgl;
+ var$4 = $q.$obj7;
+ if (var$3.getQueryParameter(var$4, 34919)) {
+ var$3 = nlea_EaglerAdapterImpl2_webgl;
+ $q = $q.$obj7;
+ if (var$3.getQueryParameter($q, 34918) <= 0) {
+ $obj = 0;
+ break a;
+ }
+ }
+ $obj = 1;
+ }
+ return $obj;
+}
+function nleg_EaglerAdapterGL30_glFogi($p1, $p2) {
+ nleg_EaglerAdapterGL30_$callClinit();
+ a: {
+ if ($p1 == 89) {
+ switch ($p2) {
+ case 49:
+ break;
+ case 90:
+ nleg_EaglerAdapterGL30_fogMode = 2;
+ break a;
+ default:
+ }
+ nleg_EaglerAdapterGL30_fogMode = 1;
+ }
+ }
+}
+function nleg_EaglerAdapterGL30_glFogf($p1, $p2) {
+ nleg_EaglerAdapterGL30_$callClinit();
+ a: {
+ switch ($p1) {
+ case 91:
+ break;
+ case 92:
+ nleg_EaglerAdapterGL30_fogStart = $p2;
+ break a;
+ case 93:
+ nleg_EaglerAdapterGL30_fogEnd = $p2;
+ break a;
+ default:
+ break a;
+ }
+ nleg_EaglerAdapterGL30_fogDensity = $p2;
+ }
+}
+function nleg_EaglerAdapterGL30_glFog($p1, $p2) {
+ nleg_EaglerAdapterGL30_$callClinit();
+ if ($p1 == 94) {
+ nleg_EaglerAdapterGL30_fogColorR = jn_FloatBufferImpl_get($p2);
+ nleg_EaglerAdapterGL30_fogColorG = jn_FloatBufferImpl_get($p2);
+ nleg_EaglerAdapterGL30_fogColorB = jn_FloatBufferImpl_get($p2);
+ nleg_EaglerAdapterGL30_fogColorA = jn_FloatBufferImpl_get($p2);
+ }
+}
+function nleg_EaglerAdapterGL30_glDeleteLists($p1, $p2) {
+ var $i, var$4, var$5, $d, var$7;
+ nleg_EaglerAdapterGL30_$callClinit();
+ $i = 0;
+ while ($i < $p2) {
+ var$4 = nleg_EaglerAdapterGL30_displayListsInitialized;
+ var$5 = $p1 + $i | 0;
+ var$4 = ju_HashMap_removeEntry(var$4, jl_Integer_valueOf(var$5));
+ $d = var$4 === null ? null : var$4.$value0;
+ if ($d !== null) {
+ var$7 = $d.$glarray;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ var$4 = nlea_EaglerAdapterImpl2_webgl;
+ var$7 = var$7.$obj5;
+ var$4.deleteVertexArray(var$7);
+ var$7 = $d.$glbuffer;
+ var$4 = nlea_EaglerAdapterImpl2_webgl;
+ var$7 = var$7.$obj2;
+ var$4.deleteBuffer(var$7);
+ }
+ ju_HashMap_removeEntry(nleg_EaglerAdapterGL30_displayLists, jl_Integer_valueOf(var$5));
+ $i = $i + 1 | 0;
+ }
+}
+function nleg_EaglerAdapterGL30_glActiveTexture($p1) {
+ var var$2, var$3, var$4, var$5;
+ nleg_EaglerAdapterGL30_$callClinit();
+ a: {
+ switch ($p1) {
+ case 99:
+ break;
+ case 100:
+ nleg_EaglerAdapterGL30_selectedTex = 1;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ nlea_EaglerAdapterImpl2_webgl.activeTexture(33985);
+ break a;
+ default:
+ if (jl_System_errCache === null) {
+ var$2 = new ji_PrintStream;
+ var$2.$out = new jl_ConsoleOutputStreamStderr;
+ var$3 = new jl_StringBuilder;
+ var$3.$buffer = $rt_createCharArray(16);
+ var$2.$sb = var$3;
+ var$2.$buffer0 = $rt_createCharArray(32);
+ var$2.$autoFlush = 0;
+ var$3 = new jnci_UTF8Charset;
+ jnc_Charset__init_(var$3, $rt_s(2), $rt_createArray(jl_String, 0));
+ var$2.$charset = var$3;
+ jl_System_errCache = var$2;
+ }
+ var$4 = jl_System_errCache;
+ var$2 = var$4.$sb;
+ jl_AbstractStringBuilder_insert(var$2, var$2.$length, $rt_s(238));
+ var$5 = var$2.$length;
+ jl_AbstractStringBuilder_insertSpace(var$2, var$5, var$5 + 1 | 0);
+ var$2.$buffer.data[var$5] = 10;
+ ji_PrintStream_printSB(var$4);
+ break a;
+ }
+ nleg_EaglerAdapterGL30_selectedTex = 0;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ nlea_EaglerAdapterImpl2_webgl.activeTexture(33984);
+ }
+}
+function nleg_EaglerAdapterGL30_gluUnProject($p1, $p2, $p3, $p4, $p5, $p6, $p7) {
+ var var$8;
+ nleg_EaglerAdapterGL30_$callClinit();
+ $p6 = $p6.data;
+ nlegv_Matrix4f_load0(nleg_EaglerAdapterGL30_unprojA, $p4);
+ nlegv_Matrix4f_load0(nleg_EaglerAdapterGL30_unprojB, $p5);
+ nlegv_Matrix4f_mul(nleg_EaglerAdapterGL30_unprojA, nleg_EaglerAdapterGL30_unprojB, nleg_EaglerAdapterGL30_unprojB);
+ $p4 = nleg_EaglerAdapterGL30_unprojB;
+ nlegv_Matrix4f_invert($p4, $p4);
+ $p4 = nleg_EaglerAdapterGL30_unprojC;
+ var$8 = ($p1 - $p6[0]) / $p6[2] * 2.0 - 1.0;
+ $p1 = ($p2 - $p6[1]) / $p6[3] * 2.0 - 1.0;
+ $p4.$x0 = var$8;
+ $p4.$y0 = $p1;
+ $p4.$z0 = $p3;
+ $p4.$w = 1.0;
+ nlegv_Matrix4f_transform(nleg_EaglerAdapterGL30_unprojB, nleg_EaglerAdapterGL30_unprojC, nleg_EaglerAdapterGL30_unprojC);
+ jn_FloatBufferImpl_put($p7, nleg_EaglerAdapterGL30_unprojC.$x0 / nleg_EaglerAdapterGL30_unprojC.$w);
+ jn_FloatBufferImpl_put($p7, nleg_EaglerAdapterGL30_unprojC.$y0 / nleg_EaglerAdapterGL30_unprojC.$w);
+ jn_FloatBufferImpl_put($p7, nleg_EaglerAdapterGL30_unprojC.$z0 / nleg_EaglerAdapterGL30_unprojC.$w);
+}
+function nleg_EaglerAdapterGL30_gluPerspective($fovy, $aspect, $zNear, $zFar) {
+ var $res, var$6, $cotangent;
+ nleg_EaglerAdapterGL30_$callClinit();
+ $res = nleg_EaglerAdapterGL30_getMatrix();
+ var$6 = $fovy * 0.01745329238474369 * 0.5;
+ $cotangent = jl_Math_cos(var$6) / jl_Math_sin(var$6);
+ $res.$m00 = $cotangent / $aspect;
+ $res.$m01 = 0.0;
+ $res.$m02 = 0.0;
+ $res.$m03 = 0.0;
+ $res.$m10 = 0.0;
+ $res.$m11 = $cotangent;
+ $res.$m12 = 0.0;
+ $res.$m13 = 0.0;
+ $res.$m20 = 0.0;
+ $res.$m21 = 0.0;
+ $fovy = $zFar + $zNear;
+ $aspect = $zFar - $zNear;
+ $res.$m22 = $fovy / $aspect;
+ $res.$m23 = (-1.0);
+ $res.$m30 = 0.0;
+ $res.$m31 = 0.0;
+ $res.$m32 = 2.0 * $zFar * $zNear / $aspect;
+ $res.$m33 = 0.0;
+}
+function nleg_EaglerAdapterGL30_gluPerspectiveFlat($fovy, $aspect, $zNear, $zFar) {
+ var $res, var$6, $cotangent;
+ nleg_EaglerAdapterGL30_$callClinit();
+ $res = nleg_EaglerAdapterGL30_getMatrix();
+ var$6 = $fovy * 0.01745329238474369 * 0.5;
+ $cotangent = jl_Math_cos(var$6) / jl_Math_sin(var$6);
+ $res.$m00 = $cotangent / $aspect;
+ $res.$m01 = 0.0;
+ $res.$m02 = 0.0;
+ $res.$m03 = 0.0;
+ $res.$m10 = 0.0;
+ $res.$m11 = $cotangent;
+ $res.$m12 = 0.0;
+ $res.$m13 = 0.0;
+ $res.$m20 = 0.0;
+ $res.$m21 = 0.0;
+ $fovy = $zFar + $zNear;
+ $aspect = $zFar - $zNear;
+ $res.$m22 = $fovy / $aspect * 0.0010000000474974513;
+ $res.$m23 = (-1.0);
+ $res.$m30 = 0.0;
+ $res.$m31 = 0.0;
+ $res.$m32 = 2.0 * $zFar * $zNear / $aspect;
+ $res.$m33 = 0.0;
+}
+function nleg_EaglerAdapterGL30_getBitsPerSecond() {
+ nleg_EaglerAdapterGL30_$callClinit();
+ if (Long_gt(Long_sub(jl_System_currentTimeMillis(), nleg_EaglerAdapterGL30_lastBandwidthReset), Long_fromInt(1000))) {
+ nleg_EaglerAdapterGL30_lastBandwidthReset = jl_System_currentTimeMillis();
+ nleg_EaglerAdapterGL30_lastBandwidth = nleg_EaglerAdapterGL30_bytesUploaded * 8 | 0;
+ nleg_EaglerAdapterGL30_bytesUploaded = 0;
+ }
+ return nleg_EaglerAdapterGL30_lastBandwidth;
+}
+function nleg_EaglerAdapterGL30_getVertexesPerSecond() {
+ var $ret;
+ nleg_EaglerAdapterGL30_$callClinit();
+ $ret = nleg_EaglerAdapterGL30_vertexDrawn;
+ nleg_EaglerAdapterGL30_vertexDrawn = 0;
+ return $ret;
+}
+function nleg_EaglerAdapterGL30_getTrianglesPerSecond() {
+ var $ret;
+ nleg_EaglerAdapterGL30_$callClinit();
+ $ret = nleg_EaglerAdapterGL30_triangleDrawn;
+ nleg_EaglerAdapterGL30_triangleDrawn = 0;
+ return $ret;
+}
+function nleg_EaglerAdapterGL30__clinit_() {
+ var var$1, $i, var$3;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ nleg_EaglerAdapterGL30_isWebGL = 1;
+ var$1 = new nleg_GLObjectMap;
+ var$1.$values = $rt_createArray(jl_Object, 256);
+ var$1.$size3 = 256;
+ var$1.$insertIndex = 0;
+ var$1.$allocatedObjects = 0;
+ nleg_EaglerAdapterGL30_texObjects = var$1;
+ nleg_EaglerAdapterGL30_enableTexture2D = 0;
+ nleg_EaglerAdapterGL30_enableTexture2D_1 = 0;
+ nleg_EaglerAdapterGL30_enableLighting = 0;
+ nleg_EaglerAdapterGL30_enableAlphaTest = 0;
+ nleg_EaglerAdapterGL30_alphaThresh = 0.10000000149011612;
+ nleg_EaglerAdapterGL30_isCompilingDisplayList = 0;
+ nleg_EaglerAdapterGL30_compilingDisplayList = null;
+ nleg_EaglerAdapterGL30_enableColorArray = 0;
+ nleg_EaglerAdapterGL30_enableNormalArray = 0;
+ nleg_EaglerAdapterGL30_enableTex0Array = 0;
+ nleg_EaglerAdapterGL30_enableTex1Array = 0;
+ nleg_EaglerAdapterGL30_colorR = 1.0;
+ nleg_EaglerAdapterGL30_colorG = 1.0;
+ nleg_EaglerAdapterGL30_colorB = 1.0;
+ nleg_EaglerAdapterGL30_colorA = 1.0;
+ nleg_EaglerAdapterGL30_normalX = 1.0;
+ nleg_EaglerAdapterGL30_normalY = 0.0;
+ nleg_EaglerAdapterGL30_normalZ = 0.0;
+ nleg_EaglerAdapterGL30_selectedTex = 0;
+ nleg_EaglerAdapterGL30_selectedClientTex = 0;
+ nleg_EaglerAdapterGL30_tex0X = 0.0;
+ nleg_EaglerAdapterGL30_tex0Y = 0.0;
+ nleg_EaglerAdapterGL30_tex1X = 0.0;
+ nleg_EaglerAdapterGL30_tex1Y = 0.0;
+ nleg_EaglerAdapterGL30_enableTexGen = 0;
+ nleg_EaglerAdapterGL30_enableColorMaterial = 0;
+ nleg_EaglerAdapterGL30_texS_plane = 0;
+ nleg_EaglerAdapterGL30_texS_X = 0.0;
+ nleg_EaglerAdapterGL30_texS_Y = 0.0;
+ nleg_EaglerAdapterGL30_texS_Z = 0.0;
+ nleg_EaglerAdapterGL30_texS_W = 0.0;
+ nleg_EaglerAdapterGL30_texT_plane = 0;
+ nleg_EaglerAdapterGL30_texT_X = 0.0;
+ nleg_EaglerAdapterGL30_texT_Y = 0.0;
+ nleg_EaglerAdapterGL30_texT_Z = 0.0;
+ nleg_EaglerAdapterGL30_texT_W = 0.0;
+ nleg_EaglerAdapterGL30_texR_plane = 0;
+ nleg_EaglerAdapterGL30_texR_X = 0.0;
+ nleg_EaglerAdapterGL30_texR_Y = 0.0;
+ nleg_EaglerAdapterGL30_texR_Z = 0.0;
+ nleg_EaglerAdapterGL30_texR_W = 0.0;
+ nleg_EaglerAdapterGL30_texQ_plane = 0;
+ nleg_EaglerAdapterGL30_texQ_X = 0.0;
+ nleg_EaglerAdapterGL30_texQ_Y = 0.0;
+ nleg_EaglerAdapterGL30_texQ_Z = 0.0;
+ nleg_EaglerAdapterGL30_texQ_W = 0.0;
+ nleg_EaglerAdapterGL30_fogColorR = 1.0;
+ nleg_EaglerAdapterGL30_fogColorG = 1.0;
+ nleg_EaglerAdapterGL30_fogColorB = 1.0;
+ nleg_EaglerAdapterGL30_fogColorA = 1.0;
+ nleg_EaglerAdapterGL30_fogMode = 1;
+ nleg_EaglerAdapterGL30_fogEnabled = 0;
+ nleg_EaglerAdapterGL30_fogPremultiply = 0;
+ nleg_EaglerAdapterGL30_fogStart = 1.0;
+ nleg_EaglerAdapterGL30_fogEnd = 1.0;
+ nleg_EaglerAdapterGL30_fogDensity = 1.0;
+ nleg_EaglerAdapterGL30_bytesUploaded = 0;
+ nleg_EaglerAdapterGL30_vertexDrawn = 0;
+ nleg_EaglerAdapterGL30_triangleDrawn = 0;
+ nleg_EaglerAdapterGL30_matrixMode = 10;
+ nleg_EaglerAdapterGL30_matModelV = $rt_createArray(nlegv_Matrix4f, 32);
+ var$1 = new nlegv_Matrix4f;
+ nlegv_Matrix4f_setIdentity(var$1);
+ nleg_EaglerAdapterGL30_matNormV = var$1;
+ var$1 = new nlegv_Matrix3f;
+ nlegv_Matrix3f_setIdentity(var$1);
+ nleg_EaglerAdapterGL30_matNormV3 = var$1;
+ nleg_EaglerAdapterGL30_matModelPointer = 0;
+ nleg_EaglerAdapterGL30_matProjV = $rt_createArray(nlegv_Matrix4f, 6);
+ nleg_EaglerAdapterGL30_matProjPointer = 0;
+ nleg_EaglerAdapterGL30_matTexV = $rt_createArray(nlegv_Matrix4f, 16);
+ nleg_EaglerAdapterGL30_matTexPointer = 0;
+ $i = 0;
+ while ($i < nleg_EaglerAdapterGL30_matModelV.data.length) {
+ var$3 = nleg_EaglerAdapterGL30_matModelV.data;
+ var$1 = new nlegv_Matrix4f;
+ nlegv_Matrix4f_setIdentity(var$1);
+ var$3[$i] = var$1;
+ $i = $i + 1 | 0;
+ }
+ $i = 0;
+ while ($i < nleg_EaglerAdapterGL30_matProjV.data.length) {
+ var$3 = nleg_EaglerAdapterGL30_matProjV.data;
+ var$1 = new nlegv_Matrix4f;
+ nlegv_Matrix4f_setIdentity(var$1);
+ var$3[$i] = var$1;
+ $i = $i + 1 | 0;
+ }
+ $i = 0;
+ while ($i < nleg_EaglerAdapterGL30_matTexV.data.length) {
+ var$3 = nleg_EaglerAdapterGL30_matTexV.data;
+ var$1 = new nlegv_Matrix4f;
+ nlegv_Matrix4f_setIdentity(var$1);
+ var$3[$i] = var$1;
+ $i = $i + 1 | 0;
+ }
+ nleg_EaglerAdapterGL30_quadsToTrianglesBuffer = null;
+ nleg_EaglerAdapterGL30_currentArray = null;
+ nleg_EaglerAdapterGL30_displayLists = ju_HashMap__init_1(16, 0.75);
+ nleg_EaglerAdapterGL30_displayListsInitialized = ju_HashMap__init_1(16, 0.75);
+ nleg_EaglerAdapterGL30_deevis = new nlegv_Vector3f;
+ nleg_EaglerAdapterGL30_lightPos0vec = new nlegv_Vector4f;
+ nleg_EaglerAdapterGL30_lightPos1vec = new nlegv_Vector4f;
+ nleg_EaglerAdapterGL30_displayListId = 0;
+ nleg_EaglerAdapterGL30_shader = null;
+ nleg_EaglerAdapterGL30_blankUploadArray = new Int32Array(525000);
+ nleg_EaglerAdapterGL30_occlusion_vao = null;
+ nleg_EaglerAdapterGL30_occlusion_vbo = null;
+ nleg_EaglerAdapterGL30_occlusion_program = null;
+ nleg_EaglerAdapterGL30_occlusion_matrix_m = null;
+ nleg_EaglerAdapterGL30_occlusion_matrix_p = null;
+ var$1 = new nleg_GLObjectMap;
+ var$1.$values = $rt_createArray(jl_Object, 256);
+ var$1.$size3 = 256;
+ var$1.$insertIndex = 0;
+ var$1.$allocatedObjects = 0;
+ nleg_EaglerAdapterGL30_queryObjs = var$1;
+ var$1 = new nlegv_Matrix4f;
+ nlegv_Matrix4f_setIdentity(var$1);
+ nleg_EaglerAdapterGL30_cachedOcclusionP = nlegv_Matrix4f_setZero(var$1);
+ nleg_EaglerAdapterGL30_occlusionModel = $rt_createFloatArray(16);
+ nleg_EaglerAdapterGL30_occlusionProj = $rt_createFloatArray(16);
+ var$1 = new nlegv_Matrix4f;
+ nlegv_Matrix4f_setIdentity(var$1);
+ nleg_EaglerAdapterGL30_unprojA = var$1;
+ var$1 = new nlegv_Matrix4f;
+ nlegv_Matrix4f_setIdentity(var$1);
+ nleg_EaglerAdapterGL30_unprojB = var$1;
+ nleg_EaglerAdapterGL30_unprojC = new nlegv_Vector4f;
+ nleg_EaglerAdapterGL30_lastBandwidthReset = Long_ZERO;
+ nleg_EaglerAdapterGL30_lastBandwidth = 0;
+}
+function nle_EaglerAdapter() {
+ nleg_EaglerAdapterGL30.call(this);
+}
+function nle_EaglerAdapter__init_0() {
+ var var_0 = new nle_EaglerAdapter();
+ nle_EaglerAdapter__init_(var_0);
+ return var_0;
+}
+function nle_EaglerAdapter__init_($this) {
+ nleg_EaglerAdapterGL30_$callClinit();
+ nlea_EaglerAdapterImpl2_$callClinit();
+}
+function nms_CompressedStreamTools() {
+ jl_Object.call(this);
+}
+function nms_CompressedStreamTools__init_0() {
+ var var_0 = new nms_CompressedStreamTools();
+ nms_CompressedStreamTools__init_(var_0);
+ return var_0;
+}
+function nms_CompressedStreamTools__init_($this) {
+ return;
+}
+function nms_CompressedStreamTools_readUncompressed($par0ArrayOfByte) {
+ var var$2, $var1, $var2, var$5, var$6, $$je;
+ var$2 = $par0ArrayOfByte.data;
+ $var1 = new ji_DataInputStream;
+ $var2 = new ji_BufferedInputStream;
+ var$5 = new ji_ByteArrayInputStream;
+ var$6 = var$2.length;
+ var$5.$buf = $par0ArrayOfByte;
+ var$5.$pos = 0;
+ var$5.$mark0 = 0;
+ var$5.$count0 = 0 + var$6 | 0;
+ $var2.$in = var$5;
+ $var2.$markpos = (-1);
+ $var2.$buf0 = $rt_createByteArray(8192);
+ $var1.$in = $var2;
+ $var1.$buff = $rt_createByteArray(8);
+ a: {
+ try {
+ $var2 = nms_CompressedStreamTools_read($var1);
+ break a;
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ $var2 = $$je;
+
+ }
+ $var1.$in.$close();
+ $rt_throw($var2);
+ }
+ $var1.$in.$close();
+ return $var2;
+}
+function nms_CompressedStreamTools_writeUncompressed($par0NBTTagCompound) {
+ var $var1, $var2, $$je;
+ $var1 = new ji_ByteArrayOutputStream;
+ $var1.$buf1 = $rt_createByteArray(32);
+ $var2 = new ji_DataOutputStream;
+ $var2.$out = $var1;
+ $var2.$buff0 = $rt_createByteArray(8);
+ a: {
+ try {
+ nms_CompressedStreamTools_write($par0NBTTagCompound, $var2);
+ break a;
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ $par0NBTTagCompound = $$je;
+
+ }
+ b: {
+ try {
+ $var2.$out.$flush();
+ break b;
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof ji_IOException) {
+ } else {
+ throw $$e;
+ }
+ }
+ }
+ $var2.$out.$close();
+ $rt_throw($par0NBTTagCompound);
+ }
+ c: {
+ try {
+ $var2.$out.$flush();
+ break c;
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof ji_IOException) {
+ } else {
+ throw $$e;
+ }
+ }
+ }
+ $var2.$out.$close();
+ return ju_Arrays_copyOf0($var1.$buf1, $var1.$count1);
+}
+function nms_CompressedStreamTools_read($par0DataInput) {
+ var var$2, var$3, var$4, var$5, $var1;
+ var$2 = $par0DataInput.$in.$read1();
+ if (var$2 < 0) {
+ $par0DataInput = new ji_EOFException;
+ $par0DataInput.$suppressionEnabled = 1;
+ $par0DataInput.$writableStackTrace = 1;
+ $rt_throw($par0DataInput);
+ }
+ var$3 = var$2 << 24 >> 24;
+ if (var$3) {
+ var$2 = ji_DataInputStream_readUnsignedShort($par0DataInput);
+ var$4 = $rt_createByteArray(var$2);
+ var$5 = $rt_createCharArray(var$2);
+ ji_DataInputStream_readFully($par0DataInput, var$4, 0, var$2);
+ $var1 = nms_NBTBase_newTag(var$3, ji_DataInputStream_convertUTF8WithBuf(var$4, var$5, 0, var$2));
+ $var1.$load1($par0DataInput);
+ } else {
+ $var1 = new nms_NBTTagEnd;
+ $par0DataInput = null;
+ if ($par0DataInput !== null)
+ $var1.$name0 = $par0DataInput;
+ else
+ $var1.$name0 = $rt_s(44);
+ }
+ if ($var1 instanceof nms_NBTTagCompound)
+ return $var1;
+ $var1 = new ji_IOException;
+ $var1.$suppressionEnabled = 1;
+ $var1.$writableStackTrace = 1;
+ $var1.$message = $rt_s(239);
+ $rt_throw($var1);
+}
+function nms_CompressedStreamTools_write($par0NBTTagCompound, $par1DataOutput) {
+ $par1DataOutput.$out.$write0(10);
+ $par1DataOutput.$written = $par1DataOutput.$written + 1 | 0;
+ ji_DataOutputStream_writeUTF($par1DataOutput, $par0NBTTagCompound.$name0 !== null ? $par0NBTTagCompound.$name0 : $rt_s(44));
+ nms_NBTTagCompound_write($par0NBTTagCompound, $par1DataOutput);
+}
+function nms_NBTBase() {
+ jl_Object.call(this);
+ this.$name0 = null;
+}
+var nms_NBTBase_NBTTypes = null;
+function nms_NBTBase__init_(var_0) {
+ var var_1 = new nms_NBTBase();
+ nms_NBTBase__init_0(var_1, var_0);
+ return var_1;
+}
+function nms_NBTBase__init_0($this, $par1Str) {
+ if ($par1Str !== null)
+ $this.$name0 = $par1Str;
+ else
+ $this.$name0 = $rt_s(44);
+}
+function nms_NBTBase_setName($this, $par1Str) {
+ if ($par1Str !== null)
+ $this.$name0 = $par1Str;
+ else
+ $this.$name0 = $rt_s(44);
+ return $this;
+}
+function nms_NBTBase_getName($this) {
+ return $this.$name0 !== null ? $this.$name0 : $rt_s(44);
+}
+function nms_NBTBase_newTag($par0, $par1Str) {
+ var var$3;
+ switch ($par0) {
+ case 0:
+ $par1Str = new nms_NBTTagEnd;
+ var$3 = null;
+ if (var$3 !== null)
+ $par1Str.$name0 = var$3;
+ else
+ $par1Str.$name0 = $rt_s(44);
+ return $par1Str;
+ case 1:
+ var$3 = new nms_NBTTagByte;
+ if ($par1Str !== null)
+ var$3.$name0 = $par1Str;
+ else
+ var$3.$name0 = $rt_s(44);
+ return var$3;
+ case 2:
+ var$3 = new nms_NBTTagShort;
+ if ($par1Str !== null)
+ var$3.$name0 = $par1Str;
+ else
+ var$3.$name0 = $rt_s(44);
+ return var$3;
+ case 3:
+ var$3 = new nms_NBTTagInt;
+ if ($par1Str !== null)
+ var$3.$name0 = $par1Str;
+ else
+ var$3.$name0 = $rt_s(44);
+ return var$3;
+ case 4:
+ var$3 = new nms_NBTTagLong;
+ if ($par1Str !== null)
+ var$3.$name0 = $par1Str;
+ else
+ var$3.$name0 = $rt_s(44);
+ return var$3;
+ case 5:
+ var$3 = new nms_NBTTagFloat;
+ if ($par1Str !== null)
+ var$3.$name0 = $par1Str;
+ else
+ var$3.$name0 = $rt_s(44);
+ return var$3;
+ case 6:
+ var$3 = new nms_NBTTagDouble;
+ if ($par1Str !== null)
+ var$3.$name0 = $par1Str;
+ else
+ var$3.$name0 = $rt_s(44);
+ return var$3;
+ case 7:
+ var$3 = new nms_NBTTagByteArray;
+ if ($par1Str !== null)
+ var$3.$name0 = $par1Str;
+ else
+ var$3.$name0 = $rt_s(44);
+ return var$3;
+ case 8:
+ var$3 = new nms_NBTTagString;
+ if ($par1Str !== null)
+ var$3.$name0 = $par1Str;
+ else
+ var$3.$name0 = $rt_s(44);
+ return var$3;
+ case 9:
+ var$3 = new nms_NBTTagList;
+ if ($par1Str !== null)
+ var$3.$name0 = $par1Str;
+ else
+ var$3.$name0 = $rt_s(44);
+ $par1Str = new ju_ArrayList;
+ $par1Str.$array1 = $rt_createArray(jl_Object, 10);
+ var$3.$tagList = $par1Str;
+ return var$3;
+ case 10:
+ var$3 = new nms_NBTTagCompound;
+ if ($par1Str !== null)
+ var$3.$name0 = $par1Str;
+ else
+ var$3.$name0 = $rt_s(44);
+ var$3.$tagMap = ju_HashMap__init_1(16, 0.75);
+ return var$3;
+ case 11:
+ var$3 = new nms_NBTTagIntArray;
+ if ($par1Str !== null)
+ var$3.$name0 = $par1Str;
+ else
+ var$3.$name0 = $rt_s(44);
+ return var$3;
+ default:
+ }
+ return null;
+}
+function nms_NBTBase_getTagName($par0) {
+ switch ($par0) {
+ case 0:
+ break;
+ case 1:
+ return $rt_s(240);
+ case 2:
+ return $rt_s(241);
+ case 3:
+ return $rt_s(242);
+ case 4:
+ return $rt_s(243);
+ case 5:
+ return $rt_s(244);
+ case 6:
+ return $rt_s(245);
+ case 7:
+ return $rt_s(246);
+ case 8:
+ return $rt_s(247);
+ case 9:
+ return $rt_s(248);
+ case 10:
+ return $rt_s(249);
+ case 11:
+ return $rt_s(250);
+ default:
+ return $rt_s(251);
+ }
+ return $rt_s(252);
+}
+function nms_NBTBase_equals($this, $par1Obj) {
+ var $var2, var$3;
+ if (!($par1Obj instanceof nms_NBTBase))
+ return 0;
+ a: {
+ $var2 = $par1Obj;
+ if ($this.$getId() != $var2.$getId())
+ var$3 = 0;
+ else {
+ b: {
+ if (!($this.$name0 === null && $var2.$name0 !== null)) {
+ if ($this.$name0 === null)
+ break b;
+ if ($var2.$name0 !== null)
+ break b;
+ }
+ var$3 = 0;
+ break a;
+ }
+ if ($this.$name0 !== null && !jl_String_equals($this.$name0, $var2.$name0))
+ var$3 = 0;
+ else
+ var$3 = 1;
+ }
+ }
+ return var$3;
+}
+function nms_NBTBase_hashCode($this) {
+ return jl_String_hashCode($this.$name0) ^ $this.$getId();
+}
+function nms_NBTBase__clinit_() {
+ var var$1, var$2;
+ var$1 = $rt_createArray(jl_String, 12);
+ var$2 = var$1.data;
+ var$2[0] = $rt_s(190);
+ var$2[1] = $rt_s(253);
+ var$2[2] = $rt_s(254);
+ var$2[3] = $rt_s(255);
+ var$2[4] = $rt_s(256);
+ var$2[5] = $rt_s(257);
+ var$2[6] = $rt_s(258);
+ var$2[7] = $rt_s(259);
+ var$2[8] = $rt_s(260);
+ var$2[9] = $rt_s(261);
+ var$2[10] = $rt_s(262);
+ var$2[11] = $rt_s(263);
+ nms_NBTBase_NBTTypes = var$1;
+}
+function nms_NBTTagCompound() {
+ nms_NBTBase.call(this);
+ this.$tagMap = null;
+}
+function nms_NBTTagCompound__init_0() {
+ var var_0 = new nms_NBTTagCompound();
+ nms_NBTTagCompound__init_(var_0);
+ return var_0;
+}
+function nms_NBTTagCompound__init_1(var_0) {
+ var var_1 = new nms_NBTTagCompound();
+ nms_NBTTagCompound__init_2(var_1, var_0);
+ return var_1;
+}
+function nms_NBTTagCompound__init_($this) {
+ $this.$name0 = $rt_s(44);
+ $this.$tagMap = ju_HashMap__init_1(16, 0.75);
+}
+function nms_NBTTagCompound__init_2($this, $par1Str) {
+ if ($par1Str !== null)
+ $this.$name0 = $par1Str;
+ else
+ $this.$name0 = $rt_s(44);
+ $this.$tagMap = ju_HashMap__init_1(16, 0.75);
+}
+function nms_NBTTagCompound_write($this, $par1DataOutput) {
+ var $var2, $var3, var$4;
+ $var2 = $this.$tagMap;
+ if ($var2.$cachedValues === null) {
+ $var3 = new ju_HashMap$2;
+ $var3.$this$00 = $var2;
+ $var2.$cachedValues = $var3;
+ }
+ $var2 = $var2.$cachedValues.$iterator();
+ while ($var2.$hasNext()) {
+ $var3 = $var2.$next();
+ var$4 = $var3.$getId();
+ $par1DataOutput.$out.$write0(var$4);
+ $par1DataOutput.$written = $par1DataOutput.$written + 1 | 0;
+ if ($var3.$getId()) {
+ ji_DataOutputStream_writeUTF($par1DataOutput, $var3.$name0 !== null ? $var3.$name0 : $rt_s(44));
+ $var3.$write1($par1DataOutput);
+ }
+ }
+ $par1DataOutput.$out.$write0(0);
+ $par1DataOutput.$written = $par1DataOutput.$written + 1 | 0;
+}
+function nms_NBTTagCompound_load($this, $par1DataInput) {
+ var var$2, var$3, var$4, var$5, var$6, var$7, var$8;
+ ju_HashMap_clear($this.$tagMap);
+ var$2 = null;
+ while (true) {
+ var$3 = $par1DataInput.$in.$read1();
+ if (var$3 < 0) {
+ $par1DataInput = new ji_EOFException;
+ $par1DataInput.$suppressionEnabled = 1;
+ $par1DataInput.$writableStackTrace = 1;
+ $rt_throw($par1DataInput);
+ }
+ var$4 = var$3 << 24 >> 24;
+ if (var$4) {
+ var$5 = ji_DataInputStream_readUnsignedShort($par1DataInput);
+ var$6 = $rt_createByteArray(var$5);
+ var$7 = $rt_createCharArray(var$5);
+ ji_DataInputStream_readFully($par1DataInput, var$6, 0, var$5);
+ var$8 = nms_NBTBase_newTag(var$4, ji_DataInputStream_convertUTF8WithBuf(var$6, var$7, 0, var$5));
+ var$8.$load1($par1DataInput);
+ } else {
+ var$8 = new nms_NBTTagEnd;
+ if (var$2 !== null)
+ var$8.$name0 = var$2;
+ else
+ var$8.$name0 = $rt_s(44);
+ }
+ if (!var$8.$getId())
+ break;
+ ju_HashMap_putImpl($this.$tagMap, var$8.$name0 !== null ? var$8.$name0 : $rt_s(44), var$8);
+ }
+}
+function nms_NBTTagCompound_getId($this) {
+ return 10;
+}
+function nms_NBTTagCompound_setTag($this, $par1Str, $par2NBTBase) {
+ var var$3;
+ var$3 = $this.$tagMap;
+ if ($par1Str !== null)
+ $par2NBTBase.$name0 = $par1Str;
+ else
+ $par2NBTBase.$name0 = $rt_s(44);
+ ju_HashMap_putImpl(var$3, $par1Str, $par2NBTBase);
+}
+function nms_NBTTagCompound_setByte($this, $par1Str, $par2) {
+ var var$3, var$4;
+ var$3 = $this.$tagMap;
+ var$4 = new nms_NBTTagByte;
+ if ($par1Str !== null)
+ var$4.$name0 = $par1Str;
+ else
+ var$4.$name0 = $rt_s(44);
+ var$4.$data0 = $par2;
+ ju_HashMap_putImpl(var$3, $par1Str, var$4);
+}
+function nms_NBTTagCompound_setShort($this, $par1Str, $par2) {
+ var var$3, var$4;
+ var$3 = $this.$tagMap;
+ var$4 = new nms_NBTTagShort;
+ if ($par1Str !== null)
+ var$4.$name0 = $par1Str;
+ else
+ var$4.$name0 = $rt_s(44);
+ var$4.$data1 = $par2;
+ ju_HashMap_putImpl(var$3, $par1Str, var$4);
+}
+function nms_NBTTagCompound_setInteger($this, $par1Str, $par2) {
+ var var$3, var$4;
+ var$3 = $this.$tagMap;
+ var$4 = new nms_NBTTagInt;
+ if ($par1Str !== null)
+ var$4.$name0 = $par1Str;
+ else
+ var$4.$name0 = $rt_s(44);
+ var$4.$data2 = $par2;
+ ju_HashMap_putImpl(var$3, $par1Str, var$4);
+}
+function nms_NBTTagCompound_setFloat($this, $par1Str, $par2) {
+ var var$3, var$4;
+ var$3 = $this.$tagMap;
+ var$4 = new nms_NBTTagFloat;
+ if ($par1Str !== null)
+ var$4.$name0 = $par1Str;
+ else
+ var$4.$name0 = $rt_s(44);
+ var$4.$data3 = $par2;
+ ju_HashMap_putImpl(var$3, $par1Str, var$4);
+}
+function nms_NBTTagCompound_setString($this, $par1Str, $par2Str) {
+ var var$3, var$4;
+ var$3 = $this.$tagMap;
+ var$4 = new nms_NBTTagString;
+ if ($par1Str !== null)
+ var$4.$name0 = $par1Str;
+ else
+ var$4.$name0 = $rt_s(44);
+ var$4.$data4 = $par2Str;
+ if ($par2Str !== null) {
+ ju_HashMap_putImpl(var$3, $par1Str, var$4);
+ return;
+ }
+ $par2Str = new jl_IllegalArgumentException;
+ $par2Str.$suppressionEnabled = 1;
+ $par2Str.$writableStackTrace = 1;
+ $par2Str.$message = $rt_s(264);
+ $rt_throw($par2Str);
+}
+function nms_NBTTagCompound_setByteArray($this, $par1Str, $par2ArrayOfByte) {
+ var var$3, var$4;
+ var$3 = $this.$tagMap;
+ var$4 = new nms_NBTTagByteArray;
+ if ($par1Str !== null)
+ var$4.$name0 = $par1Str;
+ else
+ var$4.$name0 = $rt_s(44);
+ var$4.$byteArray = $par2ArrayOfByte;
+ ju_HashMap_putImpl(var$3, $par1Str, var$4);
+}
+function nms_NBTTagCompound_setIntArray($this, $par1Str, $par2ArrayOfInteger) {
+ var var$3, var$4;
+ var$3 = $this.$tagMap;
+ var$4 = new nms_NBTTagIntArray;
+ if ($par1Str !== null)
+ var$4.$name0 = $par1Str;
+ else
+ var$4.$name0 = $rt_s(44);
+ var$4.$intArray = $par2ArrayOfInteger;
+ ju_HashMap_putImpl(var$3, $par1Str, var$4);
+}
+function nms_NBTTagCompound_setCompoundTag($this, $par1Str, $par2NBTTagCompound) {
+ var var$3;
+ var$3 = $this.$tagMap;
+ if ($par1Str !== null)
+ $par2NBTTagCompound.$name0 = $par1Str;
+ else
+ $par2NBTTagCompound.$name0 = $rt_s(44);
+ ju_HashMap_putImpl(var$3, $par1Str, $par2NBTTagCompound);
+}
+function nms_NBTTagCompound_setBoolean($this, $par1Str, $par2) {
+ var var$3, var$4;
+ $par2 = (!$par2 ? 0 : 1) << 24 >> 24;
+ var$3 = $this.$tagMap;
+ var$4 = new nms_NBTTagByte;
+ if ($par1Str !== null)
+ var$4.$name0 = $par1Str;
+ else
+ var$4.$name0 = $rt_s(44);
+ var$4.$data0 = $par2;
+ ju_HashMap_putImpl(var$3, $par1Str, var$4);
+}
+function nms_NBTTagCompound_getTag($this, $par1Str) {
+ $par1Str = ju_HashMap_getEntry($this.$tagMap, $par1Str);
+ return $par1Str === null ? null : $par1Str.$value0;
+}
+function nms_NBTTagCompound_hasKey($this, $par1Str) {
+ return ju_HashMap_getEntry($this.$tagMap, $par1Str) === null ? 0 : 1;
+}
+function nms_NBTTagCompound_getByte($this, $par1Str) {
+ var var$2;
+ if (!(ju_HashMap_getEntry($this.$tagMap, $par1Str) === null ? 0 : 1))
+ var$2 = 0;
+ else {
+ $par1Str = ju_HashMap_getEntry($this.$tagMap, $par1Str);
+ var$2 = ($par1Str === null ? null : $par1Str.$value0).$data0;
+ }
+ return var$2;
+}
+function nms_NBTTagCompound_getShort($this, $par1Str) {
+ var var$2;
+ if (!(ju_HashMap_getEntry($this.$tagMap, $par1Str) === null ? 0 : 1))
+ var$2 = 0;
+ else {
+ $par1Str = ju_HashMap_getEntry($this.$tagMap, $par1Str);
+ var$2 = ($par1Str === null ? null : $par1Str.$value0).$data1;
+ }
+ return var$2;
+}
+function nms_NBTTagCompound_getInteger($this, $par1Str) {
+ var var$2;
+ if (!(ju_HashMap_getEntry($this.$tagMap, $par1Str) === null ? 0 : 1))
+ var$2 = 0;
+ else {
+ $par1Str = ju_HashMap_getEntry($this.$tagMap, $par1Str);
+ var$2 = ($par1Str === null ? null : $par1Str.$value0).$data2;
+ }
+ return var$2;
+}
+function nms_NBTTagCompound_getFloat($this, $par1Str) {
+ var var$2;
+ if (!(ju_HashMap_getEntry($this.$tagMap, $par1Str) === null ? 0 : 1))
+ var$2 = 0.0;
+ else {
+ $par1Str = ju_HashMap_getEntry($this.$tagMap, $par1Str);
+ var$2 = ($par1Str === null ? null : $par1Str.$value0).$data3;
+ }
+ return var$2;
+}
+function nms_NBTTagCompound_getString($this, $par1Str) {
+ if (!(ju_HashMap_getEntry($this.$tagMap, $par1Str) === null ? 0 : 1))
+ $par1Str = $rt_s(44);
+ else {
+ $par1Str = ju_HashMap_getEntry($this.$tagMap, $par1Str);
+ $par1Str = ($par1Str === null ? null : $par1Str.$value0).$data4;
+ }
+ return $par1Str;
+}
+function nms_NBTTagCompound_getByteArray($this, $par1Str) {
+ var var$2;
+ if (!(ju_HashMap_getEntry($this.$tagMap, $par1Str) === null ? 0 : 1))
+ var$2 = $rt_createByteArray(0);
+ else {
+ $par1Str = ju_HashMap_getEntry($this.$tagMap, $par1Str);
+ var$2 = ($par1Str === null ? null : $par1Str.$value0).$byteArray;
+ }
+ return var$2;
+}
+function nms_NBTTagCompound_getIntArray($this, $par1Str) {
+ var var$2;
+ if (!(ju_HashMap_getEntry($this.$tagMap, $par1Str) === null ? 0 : 1))
+ var$2 = $rt_createIntArray(0);
+ else {
+ $par1Str = ju_HashMap_getEntry($this.$tagMap, $par1Str);
+ var$2 = ($par1Str === null ? null : $par1Str.$value0).$intArray;
+ }
+ return var$2;
+}
+function nms_NBTTagCompound_getCompoundTag($this, $par1Str) {
+ var var$2;
+ if (ju_HashMap_getEntry($this.$tagMap, $par1Str) === null ? 0 : 1) {
+ $par1Str = ju_HashMap_getEntry($this.$tagMap, $par1Str);
+ var$2 = $par1Str === null ? null : $par1Str.$value0;
+ } else {
+ var$2 = new nms_NBTTagCompound;
+ if ($par1Str !== null)
+ var$2.$name0 = $par1Str;
+ else
+ var$2.$name0 = $rt_s(44);
+ var$2.$tagMap = ju_HashMap__init_1(16, 0.75);
+ }
+ return var$2;
+}
+function nms_NBTTagCompound_getTagList($this, $par1Str) {
+ var var$2;
+ if (ju_HashMap_getEntry($this.$tagMap, $par1Str) === null ? 0 : 1) {
+ $par1Str = ju_HashMap_getEntry($this.$tagMap, $par1Str);
+ var$2 = $par1Str === null ? null : $par1Str.$value0;
+ } else {
+ var$2 = new nms_NBTTagList;
+ if ($par1Str !== null)
+ var$2.$name0 = $par1Str;
+ else
+ var$2.$name0 = $rt_s(44);
+ $par1Str = new ju_ArrayList;
+ $par1Str.$array1 = $rt_createArray(jl_Object, 10);
+ var$2.$tagList = $par1Str;
+ }
+ return var$2;
+}
+function nms_NBTTagCompound_getBoolean($this, $par1Str) {
+ var var$2;
+ if (!(ju_HashMap_getEntry($this.$tagMap, $par1Str) === null ? 0 : 1))
+ var$2 = 0;
+ else {
+ $par1Str = ju_HashMap_getEntry($this.$tagMap, $par1Str);
+ var$2 = ($par1Str === null ? null : $par1Str.$value0).$data0;
+ }
+ return !var$2 ? 0 : 1;
+}
+function nms_NBTTagCompound_removeTag($this, $par1Str) {
+ ju_HashMap_removeEntry($this.$tagMap, $par1Str);
+}
+function nms_NBTTagCompound_toString($this) {
+ var $var2, var$2, $var3, var$4;
+ $var2 = new jl_StringBuilder;
+ $var2.$buffer = $rt_createCharArray(16);
+ var$2 = $this.$name0 !== null ? $this.$name0 : $rt_s(44);
+ jl_AbstractStringBuilder_insert($var2, $var2.$length, var$2);
+ jl_AbstractStringBuilder_insert($var2, $var2.$length, $rt_s(265));
+ var$2 = jl_String__init_0($var2.$buffer, 0, $var2.$length);
+ $var2 = $this.$tagMap;
+ if ($var2.$cachedKeySet === null) {
+ $var3 = new ju_HashMap$1;
+ $var3.$this$01 = $var2;
+ $var2.$cachedKeySet = $var3;
+ }
+ $var2 = $var2.$cachedKeySet.$iterator();
+ while ($var2.$hasNext()) {
+ $var3 = $var2.$next();
+ var$4 = new jl_StringBuilder;
+ var$4.$buffer = $rt_createCharArray(16);
+ jl_AbstractStringBuilder_insert(var$4, var$4.$length, var$2);
+ jl_AbstractStringBuilder_insert(var$4, var$4.$length, $var3);
+ jl_AbstractStringBuilder_insert(var$4, var$4.$length, $rt_s(266));
+ var$2 = ju_HashMap_getEntry($this.$tagMap, $var3);
+ var$2 = var$2 === null ? null : var$2.$value0;
+ jl_AbstractStringBuilder_insert(var$4, var$4.$length, var$2 === null ? $rt_s(47) : var$2.$toString());
+ jl_AbstractStringBuilder_insert(var$4, var$4.$length, $rt_s(267));
+ var$2 = jl_String__init_0(var$4.$buffer, 0, var$4.$length);
+ }
+ $var2 = new jl_StringBuilder;
+ $var2.$buffer = $rt_createCharArray(16);
+ jl_AbstractStringBuilder_insert($var2, $var2.$length, var$2);
+ jl_AbstractStringBuilder_insert($var2, $var2.$length, $rt_s(268));
+ return jl_String__init_0($var2.$buffer, 0, $var2.$length);
+}
+function nms_NBTTagCompound_hasNoTags($this) {
+ return $this.$tagMap.$elementCount ? 0 : 1;
+}
+function nms_NBTTagCompound_copy($this) {
+ var $var1, $var2, var$3, $var3, var$5;
+ $var1 = new nms_NBTTagCompound;
+ $var2 = $this.$name0 !== null ? $this.$name0 : $rt_s(44);
+ if ($var2 !== null)
+ $var1.$name0 = $var2;
+ else
+ $var1.$name0 = $rt_s(44);
+ $var1.$tagMap = ju_HashMap__init_1(16, 0.75);
+ $var2 = $this.$tagMap;
+ if ($var2.$cachedKeySet === null) {
+ var$3 = new ju_HashMap$1;
+ var$3.$this$01 = $var2;
+ $var2.$cachedKeySet = var$3;
+ }
+ $var2 = $var2.$cachedKeySet.$iterator();
+ while ($var2.$hasNext()) {
+ $var3 = $var2.$next();
+ var$3 = ju_HashMap_getEntry($this.$tagMap, $var3);
+ var$3 = (var$3 === null ? null : var$3.$value0).$copy();
+ var$5 = $var1.$tagMap;
+ if ($var3 !== null)
+ var$3.$name0 = $var3;
+ else
+ var$3.$name0 = $rt_s(44);
+ ju_HashMap_putImpl(var$5, $var3, var$3);
+ }
+ return $var1;
+}
+function nms_NBTTagCompound_equals($this, $par1Obj) {
+ var $var2, var$3;
+ if (!nms_NBTBase_equals($this, $par1Obj))
+ return 0;
+ $var2 = $par1Obj;
+ $par1Obj = $this.$tagMap;
+ var$3 = new ju_HashMap$HashMapEntrySet;
+ var$3.$associatedMap = $par1Obj;
+ $par1Obj = $var2.$tagMap;
+ $var2 = new ju_HashMap$HashMapEntrySet;
+ $var2.$associatedMap = $par1Obj;
+ return ju_AbstractSet_equals(var$3, $var2);
+}
+function nms_NBTTagCompound_hashCode($this) {
+ return jl_String_hashCode($this.$name0) ^ 10 ^ ju_AbstractMap_hashCode($this.$tagMap);
+}
+function jl_System() {
+ jl_Object.call(this);
+}
+var jl_System_outCache = null;
+var jl_System_errCache = null;
+var jl_System_properties = null;
+function jl_System__init_0() {
+ var var_0 = new jl_System();
+ jl_System__init_(var_0);
+ return var_0;
+}
+function jl_System__init_($this) {
+ return;
+}
+function jl_System_out() {
+ var var$1, var$2;
+ if (jl_System_outCache === null) {
+ var$1 = new ji_PrintStream;
+ var$1.$out = new jl_ConsoleOutputStreamStdout;
+ var$2 = new jl_StringBuilder;
+ var$2.$buffer = $rt_createCharArray(16);
+ var$1.$sb = var$2;
+ var$1.$buffer0 = $rt_createCharArray(32);
+ var$1.$autoFlush = 0;
+ var$2 = new jnci_UTF8Charset;
+ jnc_Charset__init_(var$2, $rt_s(2), $rt_createArray(jl_String, 0));
+ var$1.$charset = var$2;
+ jl_System_outCache = var$1;
+ }
+ return jl_System_outCache;
+}
+function jl_System_err() {
+ var var$1, var$2;
+ if (jl_System_errCache === null) {
+ var$1 = new ji_PrintStream;
+ var$1.$out = new jl_ConsoleOutputStreamStderr;
+ var$2 = new jl_StringBuilder;
+ var$2.$buffer = $rt_createCharArray(16);
+ var$1.$sb = var$2;
+ var$1.$buffer0 = $rt_createCharArray(32);
+ var$1.$autoFlush = 0;
+ var$2 = new jnci_UTF8Charset;
+ jnc_Charset__init_(var$2, $rt_s(2), $rt_createArray(jl_String, 0));
+ var$1.$charset = var$2;
+ jl_System_errCache = var$1;
+ }
+ return jl_System_errCache;
+}
+function jl_System_arraycopy($src, $srcPos, $dest, $destPos, $length) {
+ var $srcType, $targetType, $srcArray, $i, var$10, var$11, var$12;
+ if ($src !== null && $dest !== null) {
+ if ($srcPos >= 0 && $destPos >= 0 && $length >= 0 && ($srcPos + $length | 0) <= jlr_Array_getLength($src) && ($destPos + $length | 0) <= jlr_Array_getLength($dest)) {
+ a: {
+ b: {
+ if ($src !== $dest) {
+ $srcType = jl_Class_getClass(jl_Class_getClass($src.constructor).$platformClass.$meta.item);
+ $targetType = jl_Class_getClass(jl_Class_getClass($dest.constructor).$platformClass.$meta.item);
+ if ($srcType !== null && $targetType !== null) {
+ if ($srcType === $targetType)
+ break b;
+ if (!($srcType.$platformClass.$meta.primitive ? 1 : 0) && !($targetType.$platformClass.$meta.primitive ? 1 : 0)) {
+ $srcArray = $src;
+ $i = 0;
+ var$10 = $srcPos;
+ while ($i < $length) {
+ var$11 = $srcArray.data;
+ var$12 = var$10 + 1 | 0;
+ if (!otp_Platform_isInstance(var$11[var$10], $targetType.$platformClass)) {
+ jl_System_doArrayCopy($src, $srcPos, $dest, $destPos, $i);
+ $src = new jl_ArrayStoreException;
+ $src.$suppressionEnabled = 1;
+ $src.$writableStackTrace = 1;
+ $rt_throw($src);
+ }
+ $i = $i + 1 | 0;
+ var$10 = var$12;
+ }
+ jl_System_doArrayCopy($src, $srcPos, $dest, $destPos, $length);
+ return;
+ }
+ if (!($srcType.$platformClass.$meta.primitive ? 1 : 0))
+ break a;
+ if ($targetType.$platformClass.$meta.primitive ? 1 : 0)
+ break b;
+ else
+ break a;
+ }
+ $src = new jl_ArrayStoreException;
+ $src.$suppressionEnabled = 1;
+ $src.$writableStackTrace = 1;
+ $rt_throw($src);
+ }
+ }
+ jl_System_doArrayCopy($src, $srcPos, $dest, $destPos, $length);
+ return;
+ }
+ $src = new jl_ArrayStoreException;
+ $src.$suppressionEnabled = 1;
+ $src.$writableStackTrace = 1;
+ $rt_throw($src);
+ }
+ $src = new jl_IndexOutOfBoundsException;
+ $src.$suppressionEnabled = 1;
+ $src.$writableStackTrace = 1;
+ $rt_throw($src);
+ }
+ $dest = new jl_NullPointerException;
+ $dest.$suppressionEnabled = 1;
+ $dest.$writableStackTrace = 1;
+ $dest.$message = $rt_s(269);
+ $rt_throw($dest);
+}
+function jl_System_doArrayCopy(var$1, var$2, var$3, var$4, var$5) {
+ if (var$1 !== var$3 || var$4 < var$2) {
+ for (var i = 0; i < var$5; i = (i + 1) | 0) {
+ var$3.data[var$4++] = var$1.data[var$2++];
+ }
+ } else {
+ var$2 = (var$2 + var$5) | 0;
+ var$4 = (var$4 + var$5) | 0;
+ for (var i = 0; i < var$5; i = (i + 1) | 0) {
+ var$3.data[--var$4] = var$1.data[--var$2];
+ }
+ }
+}
+function jl_System_currentTimeMillis() {
+ return Long_fromNumber(new Date().getTime());
+}
+function jl_System_initPropertiesIfNeeded() {
+ var $defaults, var$2;
+ if (jl_System_properties === null) {
+ $defaults = new ju_Properties;
+ ju_Hashtable__init_0($defaults, 11);
+ ju_Hashtable_put($defaults, $rt_s(270), $rt_s(271));
+ ju_Hashtable_put($defaults, $rt_s(272), $rt_s(273));
+ ju_Hashtable_put($defaults, $rt_s(274), $rt_s(58));
+ ju_Hashtable_put($defaults, $rt_s(275), $rt_s(266));
+ ju_Hashtable_put($defaults, $rt_s(276), $rt_s(60));
+ ju_Hashtable_put($defaults, $rt_s(277), $rt_s(278));
+ ju_Hashtable_put($defaults, $rt_s(279), $rt_s(271));
+ ju_Hashtable_put($defaults, $rt_s(280), $rt_s(58));
+ var$2 = new ju_Properties;
+ ju_Hashtable__init_0(var$2, 11);
+ var$2.$defaults = $defaults;
+ jl_System_properties = var$2;
+ }
+}
+function jl_System_gc() {
+ return;
+}
+function jl_System_nanoTime() {
+ return Long_fromNumber(performance.now() * 1000000.0);
+}
+function nmc_Minecraft() {
+ var a = this; jl_Object.call(a);
+ a.$currentServerData = null;
+ a.$playerController = null;
+ a.$fullscreen = 0;
+ a.$hasCrashed = 0;
+ a.$displayWidth = 0;
+ a.$displayHeight = 0;
+ a.$timer = null;
+ a.$theWorld = null;
+ a.$renderGlobal = null;
+ a.$thePlayer = null;
+ a.$renderViewEntity = null;
+ a.$pointedEntityLiving = null;
+ a.$effectRenderer = null;
+ a.$hideQuitButton = 0;
+ a.$isGamePaused = 0;
+ a.$renderEngine = null;
+ a.$fontRenderer = null;
+ a.$standardGalacticFontRenderer = null;
+ a.$currentScreen = null;
+ a.$loadingScreen = null;
+ a.$entityRenderer = null;
+ a.$leftClickCounter = 0;
+ a.$tempDisplayHeight = 0;
+ a.$guiAchievement = null;
+ a.$ingameGUI = null;
+ a.$skipRenderWorld = 0;
+ a.$objectMouseOver = null;
+ a.$gameSettings = null;
+ a.$sndManager = null;
+ a.$mouseHelper = null;
+ a.$texturePackList = null;
+ a.$rightClickDelayTimer = 0;
+ a.$refreshTexturePacksScheduled = 0;
+ a.$isTakingScreenshot = 0;
+ a.$inGameHasFocus = 0;
+ a.$systemTime = Long_ZERO;
+ a.$joinPlayerCounter = 0;
+ a.$isDemo = 0;
+ a.$myNetworkManager = null;
+ a.$integratedServerIsRunning = 0;
+ a.$mcProfiler = null;
+ a.$field_83002_am = Long_ZERO;
+ a.$chunkUpdates = 0;
+ a.$running = 0;
+ a.$debug = null;
+ a.$debugUpdateTime = Long_ZERO;
+ a.$fpsCounter = 0;
+ a.$prevFrameTime = Long_ZERO;
+ a.$secondTimer = Long_ZERO;
+ a.$shownPlayerMessages = null;
+ a.$debugProfilerName = null;
+ a.$titleMusicObj = 0;
+}
+var nmc_Minecraft_theMinecraft = null;
+var nmc_Minecraft_debugFPS = 0;
+var nmc_Minecraft_debugChunkUpdates = 0;
+function nmc_Minecraft__init_() {
+ var var_0 = new nmc_Minecraft();
+ nmc_Minecraft__init_0(var_0);
+ return var_0;
+}
+function nmc_Minecraft__init_0($this) {
+ var var$1;
+ $this.$fullscreen = 0;
+ $this.$hasCrashed = 0;
+ var$1 = new nms_Timer;
+ var$1.$timerSpeed = 1.0;
+ var$1.$elapsedPartialTicks = 0.0;
+ var$1.$timeSyncAdjustment = 1.0;
+ var$1.$ticksPerSecond = 20.0;
+ var$1.$lastSyncSysClock = jl_System_currentTimeMillis();
+ var$1.$lastSyncHRClock = Long_div(Long_fromNumber(performance.now() * 1000000.0), Long_fromInt(1000000));
+ $this.$timer = var$1;
+ $this.$hideQuitButton = 0;
+ $this.$isGamePaused = 0;
+ $this.$currentScreen = null;
+ $this.$leftClickCounter = 0;
+ $this.$skipRenderWorld = 0;
+ $this.$objectMouseOver = null;
+ $this.$sndManager = nms_SoundManager__init_0();
+ $this.$rightClickDelayTimer = 0;
+ $this.$isTakingScreenshot = 0;
+ $this.$inGameHasFocus = 0;
+ $this.$systemTime = jl_System_currentTimeMillis();
+ $this.$joinPlayerCounter = 0;
+ $this.$mcProfiler = nms_Profiler__init_0();
+ $this.$field_83002_am = Long_fromInt(-1);
+ $this.$chunkUpdates = 0;
+ $this.$running = 1;
+ $this.$debug = $rt_s(44);
+ $this.$debugUpdateTime = jl_System_currentTimeMillis();
+ $this.$fpsCounter = 0;
+ $this.$prevFrameTime = Long_fromInt(-1);
+ $this.$secondTimer = Long_ZERO;
+ var$1 = new ju_HashSet;
+ var$1.$backingMap = ju_HashMap__init_1(16, 0.75);
+ $this.$shownPlayerMessages = var$1;
+ $this.$debugProfilerName = $rt_s(281);
+ $this.$titleMusicObj = (-1);
+ $this.$tempDisplayHeight = 480;
+ $this.$fullscreen = 0;
+ nms_Packet3Chat_maxChatLength = 32767;
+ $this.$displayWidth = 854;
+ $this.$displayHeight = 480;
+ $this.$fullscreen = 0;
+ nmc_Minecraft_theMinecraft = $this;
+}
+function nmc_Minecraft_startGame($this) {
+ var var$1, var$2, var$3, $ptr, $tmp;
+ $ptr = 0;
+ if ($rt_resuming()) {
+ var $thread = $rt_nativeThread();
+ $ptr = $thread.pop();var$3 = $thread.pop();var$2 = $thread.pop();var$1 = $thread.pop();$this = $thread.pop();
+ }
+ main: while (true) { switch ($ptr) {
+ case 0:
+ nms_OpenGlHelper_defaultTexUnit = 99;
+ nms_OpenGlHelper_lightmapTexUnit = 100;
+ var$1 = new nms_TextureManager;
+ var$1.$nextTextureID = 0;
+ var$1.$texturesMap = ju_HashMap__init_1(16, 0.75);
+ var$1.$mapNameToId = ju_HashMap__init_1(16, 0.75);
+ nms_TextureManager_instance = var$1;
+ $this.$gameSettings = nms_GameSettings__init_($this);
+ var$1 = new nms_TexturePackList;
+ nms_TexturePackList_$callClinit();
+ var$2 = new ju_ArrayList;
+ var$2.$array1 = $rt_createArray(jl_Object, 10);
+ var$1.$availableTexturePacks = var$2;
+ var$1.$texturePackCache = ju_HashMap__init_1(16, 0.75);
+ var$1.$mc0 = $this;
+ var$2 = new ju_ArrayList;
+ var$2.$array1 = $rt_createArray(jl_Object, 10);
+ var$1.$selectedTexturePack = nms_TexturePackList_defaultTexturePack;
+ ju_ArrayList_add(var$2, nms_TexturePackList_defaultTexturePack);
+ var$1.$availableTexturePacks = var$2;
+ $this.$texturePackList = var$1;
+ $this.$renderEngine = nms_RenderEngine__init_($this.$texturePackList, $this.$gameSettings);
+ $ptr = 1;
+ case 1:
+ nmc_Minecraft_loadScreen($this);
+ if ($rt_suspending()) {
+ break main;
+ }
+ nms_ChatAllowedCharacters_getAllowedCharacters();
+ $this.$fontRenderer = nms_FontRenderer__init_($this.$gameSettings, $rt_s(282), $this.$renderEngine, 0);
+ $this.$standardGalacticFontRenderer = nms_FontRenderer__init_($this.$gameSettings, $rt_s(283), $this.$renderEngine, 0);
+ if ($this.$gameSettings.$language !== null)
+ nms_StringTranslate_setLanguage(nms_StringTranslate_instance, $this.$gameSettings.$language, 0);
+ $ptr = 2;
+ case 2:
+ a: {
+ nmc_Minecraft_loadScreen($this);
+ if ($rt_suspending()) {
+ break main;
+ }
+ nms_ColorizerGrass_grassBuffer = nms_RenderEngine_getTextureContents($this.$renderEngine, $rt_s(284));
+ nms_ColorizerFoliage_foliageBuffer = nms_RenderEngine_getTextureContents($this.$renderEngine, $rt_s(285));
+ $this.$entityRenderer = nms_EntityRenderer__init_($this);
+ nms_RenderManager_instance = nms_RenderManager__init_0();
+ nms_RenderManager_instance.$itemRenderer = nms_ItemRenderer__init_($this);
+ nms_AchievementList_$callClinit();
+ var$1 = nms_AchievementList_openInventory;
+ var$2 = new nms_StatStringFormatKeyInv;
+ var$2.$mc1 = $this;
+ var$1.$statStringFormatter = var$2;
+ var$1 = new nms_MouseHelper;
+ var$1.$field_85184_d = $this.$gameSettings;
+ $this.$mouseHelper = var$1;
+ nleg_EaglerAdapterGL30_glEnable(2);
+ nlea_EaglerAdapterImpl2_$callClinit();
+ nlea_EaglerAdapterImpl2_webgl.clearDepth((-1.0));
+ nleg_EaglerAdapterGL30_glEnable(4);
+ var$3 = 518;
+ switch (5) {
+ case 5:
+ var$3 = 518;
+ break a;
+ case 7:
+ var$3 = 513;
+ break a;
+ case 52:
+ var$3 = 514;
+ break a;
+ default:
+ }
+ }
+ b: {
+ nlea_EaglerAdapterImpl2_webgl.depthFunc(var$3);
+ nleg_EaglerAdapterGL30_glEnable(6);
+ nleg_EaglerAdapterGL30_alphaThresh = 0.10000000149011612;
+ var$3 = 1029;
+ switch (8) {
+ case 8:
+ var$3 = 1029;
+ break b;
+ case 36:
+ var$3 = 1032;
+ break b;
+ case 55:
+ var$3 = 1028;
+ break b;
+ default:
+ }
+ }
+ nlea_EaglerAdapterImpl2_webgl.cullFace(var$3);
+ nleg_EaglerAdapterGL30_matrixMode = 9;
+ nlegv_Matrix4f_setIdentity(nleg_EaglerAdapterGL30_getMatrix());
+ nleg_EaglerAdapterGL30_matrixMode = 10;
+ nms_SoundManager_loadSoundSettings($this.$sndManager, $this.$gameSettings);
+ $this.$renderGlobal = nms_RenderGlobal__init_($this, $this.$renderEngine);
+ var$1 = $this.$renderEngine;
+ nle_TextureTerrainMap_refreshTextures(var$1.$textureMapBlocks);
+ nms_TextureMap_refreshTextures(var$1.$textureMapItems);
+ nlea_EaglerAdapterImpl2__wglViewport(0, 0, $this.$displayWidth, $this.$displayHeight);
+ $this.$effectRenderer = nms_EffectRenderer__init_($this.$theWorld, $this.$renderEngine);
+ nleg_EffectPipeline_init();
+ var$1 = new nms_GuiAchievement;
+ var$1.$zLevel = 0.0;
+ var$1.$theGame = $this;
+ var$1.$itemRender = nms_RenderItem__init_0();
+ $this.$guiAchievement = var$1;
+ $this.$ingameGUI = nms_GuiIngame__init_($this);
+ nle_EaglerProfile_loadFromStorage();
+ var$1 = $this.$sndManager;
+ $ptr = 3;
+ case 3:
+ nms_SoundManager_playTheTitleMusic(var$1);
+ if ($rt_suspending()) {
+ break main;
+ }
+ $ptr = 4;
+ case 4:
+ nmc_Minecraft_showIntroAnimation($this);
+ if ($rt_suspending()) {
+ break main;
+ }
+ var$1 = nle_GuiScreenEditProfile__init_(nms_GuiMainMenu__init_0());
+ $ptr = 5;
+ case 5:
+ nmc_Minecraft_displayGuiScreen($this, var$1);
+ if ($rt_suspending()) {
+ break main;
+ }
+ var$1 = new nms_LoadingScreenRenderer;
+ var$1.$field_73727_a = $rt_s(44);
+ var$1.$currentlyDisplayedText = $rt_s(44);
+ var$1.$field_73723_d = jl_System_currentTimeMillis();
+ var$1.$field_73724_e = 0;
+ var$1.$mc2 = $this;
+ $this.$loadingScreen = var$1;
+ return;
+ default: $rt_invalidPointer();
+ }}
+ $rt_nativeThread().push($this, var$1, var$2, var$3, $ptr);
+}
+function nmc_Minecraft_showWarningText($this) {
+ var $var1;
+ $var1 = nms_ScaledResolution__init_($this.$gameSettings, $this.$displayWidth, $this.$displayHeight);
+ nms_FontRenderer_drawString($this.$fontRenderer, $rt_s(286), ($var1.$scaledWidth - nms_FontRenderer_getStringWidth($this.$fontRenderer, $rt_s(286)) | 0) / 2 | 0, $var1.$scaledHeight - 50 | 0, (-3355444), 0);
+}
+function nmc_Minecraft_showIntroAnimation($this) {
+ var $t1, $i, $t, $var1, $f, $f1, var$7, $f_0, $e, $i_0, $t_0, $$je, $ptr, $tmp;
+ $ptr = 0;
+ if ($rt_resuming()) {
+ var $thread = $rt_nativeThread();
+ $ptr = $thread.pop();$t_0 = $thread.pop();$i_0 = $thread.pop();$e = $thread.pop();$f_0 = $thread.pop();var$7 = $thread.pop();$f1 = $thread.pop();$f = $thread.pop();$var1 = $thread.pop();$t = $thread.pop();$i = $thread.pop();$t1 = $thread.pop();$this = $thread.pop();
+ }
+ main: while (true) { switch ($ptr) {
+ case 0:
+ nms_ScaledResolution__init_0(new nms_ScaledResolution, $this.$gameSettings, $this.$displayWidth, $this.$displayHeight);
+ nleg_EaglerAdapterGL30_glClearColor(1.0, 1.0, 1.0, 1.0);
+ nleg_EaglerAdapterGL30_glDisable(6);
+ nleg_EaglerAdapterGL30_glMatrixMode(10);
+ nleg_EaglerAdapterGL30_glLoadIdentity();
+ nleg_EaglerAdapterGL30_glTranslatef(0.0, 0.0, (-2000.0));
+ nleg_EaglerAdapterGL30_glViewport(0, 0, $this.$displayWidth, $this.$displayHeight);
+ nleg_EaglerAdapterGL30_glDisable(13);
+ nleg_EaglerAdapterGL30_glEnable(2);
+ nleg_EaglerAdapterGL30_glEnable(16);
+ nleg_EaglerAdapterGL30_glBlendFunc(42, 43);
+ nleg_EaglerAdapterGL30_glDisable(14);
+ nleg_EaglerAdapterGL30_glColor4f(1.0, 1.0, 1.0, 1.0);
+ $t1 = jl_System_currentTimeMillis();
+ $i = 0;
+ $t = Long_add($t1, Long_fromInt(17));
+ if ($i < 20) {
+ $this.$displayWidth = nlea_EaglerAdapterImpl2_getCanvasWidth();
+ $this.$displayHeight = nlea_EaglerAdapterImpl2_getCanvasHeight();
+ nleg_EaglerAdapterGL30_glViewport(0, 0, $this.$displayWidth, $this.$displayHeight);
+ $var1 = nms_ScaledResolution__init_($this.$gameSettings, $this.$displayWidth, $this.$displayHeight);
+ nleg_EaglerAdapterGL30_glMatrixMode(9);
+ nleg_EaglerAdapterGL30_glLoadIdentity();
+ nleg_EaglerAdapterGL30_glOrtho(0.0, nms_ScaledResolution_getScaledWidth($var1), nms_ScaledResolution_getScaledHeight($var1), 0.0, 1000.0, 3000.0);
+ nleg_EaglerAdapterGL30_glMatrixMode(10);
+ $f = Long_toNumber(Long_sub(jl_System_currentTimeMillis(), $t1)) / 333.0;
+ nleg_EaglerAdapterGL30_glClear(3);
+ nleg_EaglerAdapterGL30_glColor4f(1.0, 1.0, 1.0, nms_MathHelper_clamp_float(1.0 - $f, 0.0, 1.0));
+ nms_RenderEngine_bindTexture($this.$renderEngine, $rt_s(287));
+ nleg_EaglerAdapterGL30_glPushMatrix();
+ $f1 = 1.0 + 0.02500000037252903 * $f * $f;
+ nleg_EaglerAdapterGL30_glTranslatef((nms_ScaledResolution_getScaledWidth($var1) - 256 | 0) / 2 | 0, (nms_ScaledResolution_getScaledHeight($var1) - 256 | 0) / 2 | 0, 0.0);
+ $f = (-128.0) * ($f1 - 1.0);
+ nleg_EaglerAdapterGL30_glTranslatef($f, $f, 0.0);
+ nleg_EaglerAdapterGL30_glScalef($f1, $f1, 1.0);
+ nmc_Minecraft_scaledTessellator($this, 0, 0, 0, 0, 256, 256);
+ nleg_EaglerAdapterGL30_glPopMatrix();
+ nmc_Minecraft_showWarningText($this);
+ nleg_EaglerAdapterGL30_glFlush();
+ $ptr = 1;
+ continue main;
+ }
+ $t1 = jl_System_currentTimeMillis();
+ $i = 0;
+ $t = Long_add($t1, Long_fromInt(17));
+ if ($i < 20) {
+ $this.$displayWidth = nlea_EaglerAdapterImpl2_getCanvasWidth();
+ $this.$displayHeight = nlea_EaglerAdapterImpl2_getCanvasHeight();
+ nleg_EaglerAdapterGL30_glViewport(0, 0, $this.$displayWidth, $this.$displayHeight);
+ var$7 = nms_ScaledResolution__init_($this.$gameSettings, $this.$displayWidth, $this.$displayHeight);
+ nleg_EaglerAdapterGL30_glMatrixMode(9);
+ nleg_EaglerAdapterGL30_glLoadIdentity();
+ nleg_EaglerAdapterGL30_glOrtho(0.0, nms_ScaledResolution_getScaledWidth(var$7), nms_ScaledResolution_getScaledHeight(var$7), 0.0, 1000.0, 3000.0);
+ nleg_EaglerAdapterGL30_glMatrixMode(10);
+ $f_0 = Long_toNumber(Long_sub(jl_System_currentTimeMillis(), $t1)) / 333.0;
+ nleg_EaglerAdapterGL30_glClear(3);
+ nleg_EaglerAdapterGL30_glColor4f(1.0, 1.0, 1.0, nms_MathHelper_clamp_float($f_0 * 0.6000000238418579, 0.0, 1.0));
+ nms_RenderEngine_bindTexture($this.$renderEngine, $rt_s(288));
+ nleg_EaglerAdapterGL30_glPushMatrix();
+ $f1 = 0.875 + 0.02500000037252903 * jl_Math_sqrt($f_0);
+ nleg_EaglerAdapterGL30_glTranslatef((nms_ScaledResolution_getScaledWidth(var$7) - 256 | 0) / 2 | 0, (nms_ScaledResolution_getScaledHeight(var$7) - 256 | 0) / 2 | 0, 0.0);
+ $f = (-128.0) * ($f1 - 1.0);
+ nleg_EaglerAdapterGL30_glTranslatef($f, $f, 0.0);
+ nleg_EaglerAdapterGL30_glScalef($f1, $f1, 1.0);
+ nmc_Minecraft_scaledTessellator($this, 0, 0, 0, 0, 256, 256);
+ nleg_EaglerAdapterGL30_glPopMatrix();
+ nmc_Minecraft_showWarningText($this);
+ nleg_EaglerAdapterGL30_glFlush();
+ $ptr = 4;
+ continue main;
+ }
+ try {
+ $t1 = Long_fromInt(1600);
+ $ptr = 3;
+ continue main;
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof jl_InterruptedException) {
+ $e = $$je;
+ } else {
+ throw $$e;
+ }
+ }
+ $e.$printStackTrace0();
+ $t1 = jl_System_currentTimeMillis();
+ $i_0 = 0;
+ $t_0 = Long_add($t1, Long_fromInt(17));
+ if ($i_0 >= 21) {
+ nleg_EaglerAdapterGL30_glClear(3);
+ nmc_Minecraft_showWarningText($this);
+ nleg_EaglerAdapterGL30_glFlush();
+ $ptr = 6;
+ continue main;
+ }
+ $this.$displayWidth = nlea_EaglerAdapterImpl2_getCanvasWidth();
+ $this.$displayHeight = nlea_EaglerAdapterImpl2_getCanvasHeight();
+ nleg_EaglerAdapterGL30_glViewport(0, 0, $this.$displayWidth, $this.$displayHeight);
+ $var1 = nms_ScaledResolution__init_($this.$gameSettings, $this.$displayWidth, $this.$displayHeight);
+ $f = Long_toNumber(Long_sub(jl_System_currentTimeMillis(), $t1)) / 340.0;
+ nleg_EaglerAdapterGL30_glClear(3);
+ nleg_EaglerAdapterGL30_glColor4f(1.0, 1.0, 1.0, nms_MathHelper_clamp_float((1.0 - $f) * 0.6000000238418579, 0.0, 1.0));
+ nms_RenderEngine_bindTexture($this.$renderEngine, $rt_s(288));
+ nleg_EaglerAdapterGL30_glPushMatrix();
+ $f1 = 0.8999999761581421 + 0.02500000037252903 * $f * $f;
+ nleg_EaglerAdapterGL30_glTranslatef((nms_ScaledResolution_getScaledWidth($var1) - 256 | 0) / 2 | 0, (nms_ScaledResolution_getScaledHeight($var1) - 256 | 0) / 2 | 0, 0.0);
+ $f = (-128.0) * ($f1 - 1.0);
+ nleg_EaglerAdapterGL30_glTranslatef($f, $f, 0.0);
+ nleg_EaglerAdapterGL30_glScalef($f1, $f1, 1.0);
+ nmc_Minecraft_scaledTessellator($this, 0, 0, 0, 0, 256, 256);
+ nleg_EaglerAdapterGL30_glPopMatrix();
+ nmc_Minecraft_showWarningText($this);
+ nleg_EaglerAdapterGL30_glFlush();
+ $ptr = 7;
+ continue main;
+ case 1:
+ nlea_EaglerAdapterImpl2_updateDisplay();
+ if ($rt_suspending()) {
+ break main;
+ }
+ $t_0 = Long_sub(Long_add($t, Long_fromInt(17 * $i | 0)), jl_System_currentTimeMillis());
+ if (Long_gt($t_0, Long_ZERO)) {
+ try {
+ $ptr = 2;
+ continue main;
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof jl_InterruptedException) {
+ $e = $$je;
+ } else {
+ throw $$e;
+ }
+ }
+ $e.$printStackTrace0();
+ }
+ $i = $i + 1 | 0;
+ if ($i < 20) {
+ $this.$displayWidth = nlea_EaglerAdapterImpl2_getCanvasWidth();
+ $this.$displayHeight = nlea_EaglerAdapterImpl2_getCanvasHeight();
+ nleg_EaglerAdapterGL30_glViewport(0, 0, $this.$displayWidth, $this.$displayHeight);
+ $var1 = nms_ScaledResolution__init_($this.$gameSettings, $this.$displayWidth, $this.$displayHeight);
+ nleg_EaglerAdapterGL30_glMatrixMode(9);
+ nleg_EaglerAdapterGL30_glLoadIdentity();
+ nleg_EaglerAdapterGL30_glOrtho(0.0, nms_ScaledResolution_getScaledWidth($var1), nms_ScaledResolution_getScaledHeight($var1), 0.0, 1000.0, 3000.0);
+ nleg_EaglerAdapterGL30_glMatrixMode(10);
+ $f = Long_toNumber(Long_sub(jl_System_currentTimeMillis(), $t1)) / 333.0;
+ nleg_EaglerAdapterGL30_glClear(3);
+ nleg_EaglerAdapterGL30_glColor4f(1.0, 1.0, 1.0, nms_MathHelper_clamp_float(1.0 - $f, 0.0, 1.0));
+ nms_RenderEngine_bindTexture($this.$renderEngine, $rt_s(287));
+ nleg_EaglerAdapterGL30_glPushMatrix();
+ $f1 = 1.0 + 0.02500000037252903 * $f * $f;
+ nleg_EaglerAdapterGL30_glTranslatef((nms_ScaledResolution_getScaledWidth($var1) - 256 | 0) / 2 | 0, (nms_ScaledResolution_getScaledHeight($var1) - 256 | 0) / 2 | 0, 0.0);
+ $f = (-128.0) * ($f1 - 1.0);
+ nleg_EaglerAdapterGL30_glTranslatef($f, $f, 0.0);
+ nleg_EaglerAdapterGL30_glScalef($f1, $f1, 1.0);
+ nmc_Minecraft_scaledTessellator($this, 0, 0, 0, 0, 256, 256);
+ nleg_EaglerAdapterGL30_glPopMatrix();
+ nmc_Minecraft_showWarningText($this);
+ nleg_EaglerAdapterGL30_glFlush();
+ continue main;
+ }
+ $t1 = jl_System_currentTimeMillis();
+ $i = 0;
+ $t = Long_add($t1, Long_fromInt(17));
+ if ($i < 20) {
+ $this.$displayWidth = nlea_EaglerAdapterImpl2_getCanvasWidth();
+ $this.$displayHeight = nlea_EaglerAdapterImpl2_getCanvasHeight();
+ nleg_EaglerAdapterGL30_glViewport(0, 0, $this.$displayWidth, $this.$displayHeight);
+ var$7 = nms_ScaledResolution__init_($this.$gameSettings, $this.$displayWidth, $this.$displayHeight);
+ nleg_EaglerAdapterGL30_glMatrixMode(9);
+ nleg_EaglerAdapterGL30_glLoadIdentity();
+ nleg_EaglerAdapterGL30_glOrtho(0.0, nms_ScaledResolution_getScaledWidth(var$7), nms_ScaledResolution_getScaledHeight(var$7), 0.0, 1000.0, 3000.0);
+ nleg_EaglerAdapterGL30_glMatrixMode(10);
+ $f_0 = Long_toNumber(Long_sub(jl_System_currentTimeMillis(), $t1)) / 333.0;
+ nleg_EaglerAdapterGL30_glClear(3);
+ nleg_EaglerAdapterGL30_glColor4f(1.0, 1.0, 1.0, nms_MathHelper_clamp_float($f_0 * 0.6000000238418579, 0.0, 1.0));
+ nms_RenderEngine_bindTexture($this.$renderEngine, $rt_s(288));
+ nleg_EaglerAdapterGL30_glPushMatrix();
+ $f1 = 0.875 + 0.02500000037252903 * jl_Math_sqrt($f_0);
+ nleg_EaglerAdapterGL30_glTranslatef((nms_ScaledResolution_getScaledWidth(var$7) - 256 | 0) / 2 | 0, (nms_ScaledResolution_getScaledHeight(var$7) - 256 | 0) / 2 | 0, 0.0);
+ $f = (-128.0) * ($f1 - 1.0);
+ nleg_EaglerAdapterGL30_glTranslatef($f, $f, 0.0);
+ nleg_EaglerAdapterGL30_glScalef($f1, $f1, 1.0);
+ nmc_Minecraft_scaledTessellator($this, 0, 0, 0, 0, 256, 256);
+ nleg_EaglerAdapterGL30_glPopMatrix();
+ nmc_Minecraft_showWarningText($this);
+ nleg_EaglerAdapterGL30_glFlush();
+ $ptr = 4;
+ continue main;
+ }
+ try {
+ $t1 = Long_fromInt(1600);
+ $ptr = 3;
+ continue main;
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof jl_InterruptedException) {
+ $e = $$je;
+ } else {
+ throw $$e;
+ }
+ }
+ $e.$printStackTrace0();
+ $t1 = jl_System_currentTimeMillis();
+ $i_0 = 0;
+ $t_0 = Long_add($t1, Long_fromInt(17));
+ if ($i_0 >= 21) {
+ nleg_EaglerAdapterGL30_glClear(3);
+ nmc_Minecraft_showWarningText($this);
+ nleg_EaglerAdapterGL30_glFlush();
+ $ptr = 6;
+ continue main;
+ }
+ $this.$displayWidth = nlea_EaglerAdapterImpl2_getCanvasWidth();
+ $this.$displayHeight = nlea_EaglerAdapterImpl2_getCanvasHeight();
+ nleg_EaglerAdapterGL30_glViewport(0, 0, $this.$displayWidth, $this.$displayHeight);
+ $var1 = nms_ScaledResolution__init_($this.$gameSettings, $this.$displayWidth, $this.$displayHeight);
+ $f = Long_toNumber(Long_sub(jl_System_currentTimeMillis(), $t1)) / 340.0;
+ nleg_EaglerAdapterGL30_glClear(3);
+ nleg_EaglerAdapterGL30_glColor4f(1.0, 1.0, 1.0, nms_MathHelper_clamp_float((1.0 - $f) * 0.6000000238418579, 0.0, 1.0));
+ nms_RenderEngine_bindTexture($this.$renderEngine, $rt_s(288));
+ nleg_EaglerAdapterGL30_glPushMatrix();
+ $f1 = 0.8999999761581421 + 0.02500000037252903 * $f * $f;
+ nleg_EaglerAdapterGL30_glTranslatef((nms_ScaledResolution_getScaledWidth($var1) - 256 | 0) / 2 | 0, (nms_ScaledResolution_getScaledHeight($var1) - 256 | 0) / 2 | 0, 0.0);
+ $f = (-128.0) * ($f1 - 1.0);
+ nleg_EaglerAdapterGL30_glTranslatef($f, $f, 0.0);
+ nleg_EaglerAdapterGL30_glScalef($f1, $f1, 1.0);
+ nmc_Minecraft_scaledTessellator($this, 0, 0, 0, 0, 256, 256);
+ nleg_EaglerAdapterGL30_glPopMatrix();
+ nmc_Minecraft_showWarningText($this);
+ nleg_EaglerAdapterGL30_glFlush();
+ $ptr = 7;
+ continue main;
+ case 2:
+ a: {
+ try {
+ jl_Thread_sleep($t_0);
+ if ($rt_suspending()) {
+ break main;
+ }
+ break a;
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof jl_InterruptedException) {
+ $e = $$je;
+ } else {
+ throw $$e;
+ }
+ }
+ $e.$printStackTrace0();
+ }
+ $i = $i + 1 | 0;
+ if ($i < 20) {
+ $this.$displayWidth = nlea_EaglerAdapterImpl2_getCanvasWidth();
+ $this.$displayHeight = nlea_EaglerAdapterImpl2_getCanvasHeight();
+ nleg_EaglerAdapterGL30_glViewport(0, 0, $this.$displayWidth, $this.$displayHeight);
+ $var1 = nms_ScaledResolution__init_($this.$gameSettings, $this.$displayWidth, $this.$displayHeight);
+ nleg_EaglerAdapterGL30_glMatrixMode(9);
+ nleg_EaglerAdapterGL30_glLoadIdentity();
+ nleg_EaglerAdapterGL30_glOrtho(0.0, nms_ScaledResolution_getScaledWidth($var1), nms_ScaledResolution_getScaledHeight($var1), 0.0, 1000.0, 3000.0);
+ nleg_EaglerAdapterGL30_glMatrixMode(10);
+ $f = Long_toNumber(Long_sub(jl_System_currentTimeMillis(), $t1)) / 333.0;
+ nleg_EaglerAdapterGL30_glClear(3);
+ nleg_EaglerAdapterGL30_glColor4f(1.0, 1.0, 1.0, nms_MathHelper_clamp_float(1.0 - $f, 0.0, 1.0));
+ nms_RenderEngine_bindTexture($this.$renderEngine, $rt_s(287));
+ nleg_EaglerAdapterGL30_glPushMatrix();
+ $f1 = 1.0 + 0.02500000037252903 * $f * $f;
+ nleg_EaglerAdapterGL30_glTranslatef((nms_ScaledResolution_getScaledWidth($var1) - 256 | 0) / 2 | 0, (nms_ScaledResolution_getScaledHeight($var1) - 256 | 0) / 2 | 0, 0.0);
+ $f = (-128.0) * ($f1 - 1.0);
+ nleg_EaglerAdapterGL30_glTranslatef($f, $f, 0.0);
+ nleg_EaglerAdapterGL30_glScalef($f1, $f1, 1.0);
+ nmc_Minecraft_scaledTessellator($this, 0, 0, 0, 0, 256, 256);
+ nleg_EaglerAdapterGL30_glPopMatrix();
+ nmc_Minecraft_showWarningText($this);
+ nleg_EaglerAdapterGL30_glFlush();
+ $ptr = 1;
+ continue main;
+ }
+ $t1 = jl_System_currentTimeMillis();
+ $i = 0;
+ $t = Long_add($t1, Long_fromInt(17));
+ if ($i < 20) {
+ $this.$displayWidth = nlea_EaglerAdapterImpl2_getCanvasWidth();
+ $this.$displayHeight = nlea_EaglerAdapterImpl2_getCanvasHeight();
+ nleg_EaglerAdapterGL30_glViewport(0, 0, $this.$displayWidth, $this.$displayHeight);
+ var$7 = nms_ScaledResolution__init_($this.$gameSettings, $this.$displayWidth, $this.$displayHeight);
+ nleg_EaglerAdapterGL30_glMatrixMode(9);
+ nleg_EaglerAdapterGL30_glLoadIdentity();
+ nleg_EaglerAdapterGL30_glOrtho(0.0, nms_ScaledResolution_getScaledWidth(var$7), nms_ScaledResolution_getScaledHeight(var$7), 0.0, 1000.0, 3000.0);
+ nleg_EaglerAdapterGL30_glMatrixMode(10);
+ $f_0 = Long_toNumber(Long_sub(jl_System_currentTimeMillis(), $t1)) / 333.0;
+ nleg_EaglerAdapterGL30_glClear(3);
+ nleg_EaglerAdapterGL30_glColor4f(1.0, 1.0, 1.0, nms_MathHelper_clamp_float($f_0 * 0.6000000238418579, 0.0, 1.0));
+ nms_RenderEngine_bindTexture($this.$renderEngine, $rt_s(288));
+ nleg_EaglerAdapterGL30_glPushMatrix();
+ $f1 = 0.875 + 0.02500000037252903 * jl_Math_sqrt($f_0);
+ nleg_EaglerAdapterGL30_glTranslatef((nms_ScaledResolution_getScaledWidth(var$7) - 256 | 0) / 2 | 0, (nms_ScaledResolution_getScaledHeight(var$7) - 256 | 0) / 2 | 0, 0.0);
+ $f = (-128.0) * ($f1 - 1.0);
+ nleg_EaglerAdapterGL30_glTranslatef($f, $f, 0.0);
+ nleg_EaglerAdapterGL30_glScalef($f1, $f1, 1.0);
+ nmc_Minecraft_scaledTessellator($this, 0, 0, 0, 0, 256, 256);
+ nleg_EaglerAdapterGL30_glPopMatrix();
+ nmc_Minecraft_showWarningText($this);
+ nleg_EaglerAdapterGL30_glFlush();
+ $ptr = 4;
+ continue main;
+ }
+ try {
+ $t1 = Long_fromInt(1600);
+ $ptr = 3;
+ continue main;
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof jl_InterruptedException) {
+ $e = $$je;
+ } else {
+ throw $$e;
+ }
+ }
+ $e.$printStackTrace0();
+ $t1 = jl_System_currentTimeMillis();
+ $i_0 = 0;
+ $t_0 = Long_add($t1, Long_fromInt(17));
+ if ($i_0 >= 21) {
+ nleg_EaglerAdapterGL30_glClear(3);
+ nmc_Minecraft_showWarningText($this);
+ nleg_EaglerAdapterGL30_glFlush();
+ $ptr = 6;
+ continue main;
+ }
+ $this.$displayWidth = nlea_EaglerAdapterImpl2_getCanvasWidth();
+ $this.$displayHeight = nlea_EaglerAdapterImpl2_getCanvasHeight();
+ nleg_EaglerAdapterGL30_glViewport(0, 0, $this.$displayWidth, $this.$displayHeight);
+ $var1 = nms_ScaledResolution__init_($this.$gameSettings, $this.$displayWidth, $this.$displayHeight);
+ $f = Long_toNumber(Long_sub(jl_System_currentTimeMillis(), $t1)) / 340.0;
+ nleg_EaglerAdapterGL30_glClear(3);
+ nleg_EaglerAdapterGL30_glColor4f(1.0, 1.0, 1.0, nms_MathHelper_clamp_float((1.0 - $f) * 0.6000000238418579, 0.0, 1.0));
+ nms_RenderEngine_bindTexture($this.$renderEngine, $rt_s(288));
+ nleg_EaglerAdapterGL30_glPushMatrix();
+ $f1 = 0.8999999761581421 + 0.02500000037252903 * $f * $f;
+ nleg_EaglerAdapterGL30_glTranslatef((nms_ScaledResolution_getScaledWidth($var1) - 256 | 0) / 2 | 0, (nms_ScaledResolution_getScaledHeight($var1) - 256 | 0) / 2 | 0, 0.0);
+ $f = (-128.0) * ($f1 - 1.0);
+ nleg_EaglerAdapterGL30_glTranslatef($f, $f, 0.0);
+ nleg_EaglerAdapterGL30_glScalef($f1, $f1, 1.0);
+ nmc_Minecraft_scaledTessellator($this, 0, 0, 0, 0, 256, 256);
+ nleg_EaglerAdapterGL30_glPopMatrix();
+ nmc_Minecraft_showWarningText($this);
+ nleg_EaglerAdapterGL30_glFlush();
+ $ptr = 7;
+ continue main;
+ case 3:
+ a: {
+ try {
+ jl_Thread_sleep($t1);
+ if ($rt_suspending()) {
+ break main;
+ }
+ break a;
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof jl_InterruptedException) {
+ $e = $$je;
+ } else {
+ throw $$e;
+ }
+ }
+ $e.$printStackTrace0();
+ }
+ $t1 = jl_System_currentTimeMillis();
+ $i_0 = 0;
+ $t_0 = Long_add($t1, Long_fromInt(17));
+ if ($i_0 >= 21) {
+ nleg_EaglerAdapterGL30_glClear(3);
+ nmc_Minecraft_showWarningText($this);
+ nleg_EaglerAdapterGL30_glFlush();
+ $ptr = 6;
+ continue main;
+ }
+ $this.$displayWidth = nlea_EaglerAdapterImpl2_getCanvasWidth();
+ $this.$displayHeight = nlea_EaglerAdapterImpl2_getCanvasHeight();
+ nleg_EaglerAdapterGL30_glViewport(0, 0, $this.$displayWidth, $this.$displayHeight);
+ $var1 = nms_ScaledResolution__init_($this.$gameSettings, $this.$displayWidth, $this.$displayHeight);
+ $f = Long_toNumber(Long_sub(jl_System_currentTimeMillis(), $t1)) / 340.0;
+ nleg_EaglerAdapterGL30_glClear(3);
+ nleg_EaglerAdapterGL30_glColor4f(1.0, 1.0, 1.0, nms_MathHelper_clamp_float((1.0 - $f) * 0.6000000238418579, 0.0, 1.0));
+ nms_RenderEngine_bindTexture($this.$renderEngine, $rt_s(288));
+ nleg_EaglerAdapterGL30_glPushMatrix();
+ $f1 = 0.8999999761581421 + 0.02500000037252903 * $f * $f;
+ nleg_EaglerAdapterGL30_glTranslatef((nms_ScaledResolution_getScaledWidth($var1) - 256 | 0) / 2 | 0, (nms_ScaledResolution_getScaledHeight($var1) - 256 | 0) / 2 | 0, 0.0);
+ $f = (-128.0) * ($f1 - 1.0);
+ nleg_EaglerAdapterGL30_glTranslatef($f, $f, 0.0);
+ nleg_EaglerAdapterGL30_glScalef($f1, $f1, 1.0);
+ nmc_Minecraft_scaledTessellator($this, 0, 0, 0, 0, 256, 256);
+ nleg_EaglerAdapterGL30_glPopMatrix();
+ nmc_Minecraft_showWarningText($this);
+ nleg_EaglerAdapterGL30_glFlush();
+ $ptr = 7;
+ continue main;
+ case 4:
+ nlea_EaglerAdapterImpl2_updateDisplay();
+ if ($rt_suspending()) {
+ break main;
+ }
+ $t_0 = Long_sub(Long_add($t, Long_fromInt(17 * $i | 0)), jl_System_currentTimeMillis());
+ if (Long_gt($t_0, Long_ZERO)) {
+ try {
+ $ptr = 5;
+ continue main;
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof jl_InterruptedException) {
+ $e = $$je;
+ } else {
+ throw $$e;
+ }
+ }
+ $e.$printStackTrace0();
+ }
+ $i = $i + 1 | 0;
+ if ($i < 20) {
+ $this.$displayWidth = nlea_EaglerAdapterImpl2_getCanvasWidth();
+ $this.$displayHeight = nlea_EaglerAdapterImpl2_getCanvasHeight();
+ nleg_EaglerAdapterGL30_glViewport(0, 0, $this.$displayWidth, $this.$displayHeight);
+ var$7 = nms_ScaledResolution__init_($this.$gameSettings, $this.$displayWidth, $this.$displayHeight);
+ nleg_EaglerAdapterGL30_glMatrixMode(9);
+ nleg_EaglerAdapterGL30_glLoadIdentity();
+ nleg_EaglerAdapterGL30_glOrtho(0.0, nms_ScaledResolution_getScaledWidth(var$7), nms_ScaledResolution_getScaledHeight(var$7), 0.0, 1000.0, 3000.0);
+ nleg_EaglerAdapterGL30_glMatrixMode(10);
+ $f_0 = Long_toNumber(Long_sub(jl_System_currentTimeMillis(), $t1)) / 333.0;
+ nleg_EaglerAdapterGL30_glClear(3);
+ nleg_EaglerAdapterGL30_glColor4f(1.0, 1.0, 1.0, nms_MathHelper_clamp_float($f_0 * 0.6000000238418579, 0.0, 1.0));
+ nms_RenderEngine_bindTexture($this.$renderEngine, $rt_s(288));
+ nleg_EaglerAdapterGL30_glPushMatrix();
+ $f1 = 0.875 + 0.02500000037252903 * jl_Math_sqrt($f_0);
+ nleg_EaglerAdapterGL30_glTranslatef((nms_ScaledResolution_getScaledWidth(var$7) - 256 | 0) / 2 | 0, (nms_ScaledResolution_getScaledHeight(var$7) - 256 | 0) / 2 | 0, 0.0);
+ $f = (-128.0) * ($f1 - 1.0);
+ nleg_EaglerAdapterGL30_glTranslatef($f, $f, 0.0);
+ nleg_EaglerAdapterGL30_glScalef($f1, $f1, 1.0);
+ nmc_Minecraft_scaledTessellator($this, 0, 0, 0, 0, 256, 256);
+ nleg_EaglerAdapterGL30_glPopMatrix();
+ nmc_Minecraft_showWarningText($this);
+ nleg_EaglerAdapterGL30_glFlush();
+ continue main;
+ }
+ try {
+ $t1 = Long_fromInt(1600);
+ $ptr = 3;
+ continue main;
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof jl_InterruptedException) {
+ $e = $$je;
+ } else {
+ throw $$e;
+ }
+ }
+ $e.$printStackTrace0();
+ $t1 = jl_System_currentTimeMillis();
+ $i_0 = 0;
+ $t_0 = Long_add($t1, Long_fromInt(17));
+ if ($i_0 >= 21) {
+ nleg_EaglerAdapterGL30_glClear(3);
+ nmc_Minecraft_showWarningText($this);
+ nleg_EaglerAdapterGL30_glFlush();
+ $ptr = 6;
+ continue main;
+ }
+ $this.$displayWidth = nlea_EaglerAdapterImpl2_getCanvasWidth();
+ $this.$displayHeight = nlea_EaglerAdapterImpl2_getCanvasHeight();
+ nleg_EaglerAdapterGL30_glViewport(0, 0, $this.$displayWidth, $this.$displayHeight);
+ $var1 = nms_ScaledResolution__init_($this.$gameSettings, $this.$displayWidth, $this.$displayHeight);
+ $f = Long_toNumber(Long_sub(jl_System_currentTimeMillis(), $t1)) / 340.0;
+ nleg_EaglerAdapterGL30_glClear(3);
+ nleg_EaglerAdapterGL30_glColor4f(1.0, 1.0, 1.0, nms_MathHelper_clamp_float((1.0 - $f) * 0.6000000238418579, 0.0, 1.0));
+ nms_RenderEngine_bindTexture($this.$renderEngine, $rt_s(288));
+ nleg_EaglerAdapterGL30_glPushMatrix();
+ $f1 = 0.8999999761581421 + 0.02500000037252903 * $f * $f;
+ nleg_EaglerAdapterGL30_glTranslatef((nms_ScaledResolution_getScaledWidth($var1) - 256 | 0) / 2 | 0, (nms_ScaledResolution_getScaledHeight($var1) - 256 | 0) / 2 | 0, 0.0);
+ $f = (-128.0) * ($f1 - 1.0);
+ nleg_EaglerAdapterGL30_glTranslatef($f, $f, 0.0);
+ nleg_EaglerAdapterGL30_glScalef($f1, $f1, 1.0);
+ nmc_Minecraft_scaledTessellator($this, 0, 0, 0, 0, 256, 256);
+ nleg_EaglerAdapterGL30_glPopMatrix();
+ nmc_Minecraft_showWarningText($this);
+ nleg_EaglerAdapterGL30_glFlush();
+ $ptr = 7;
+ continue main;
+ case 5:
+ a: {
+ try {
+ jl_Thread_sleep($t_0);
+ if ($rt_suspending()) {
+ break main;
+ }
+ break a;
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof jl_InterruptedException) {
+ $e = $$je;
+ } else {
+ throw $$e;
+ }
+ }
+ $e.$printStackTrace0();
+ }
+ $i = $i + 1 | 0;
+ if ($i < 20) {
+ $this.$displayWidth = nlea_EaglerAdapterImpl2_getCanvasWidth();
+ $this.$displayHeight = nlea_EaglerAdapterImpl2_getCanvasHeight();
+ nleg_EaglerAdapterGL30_glViewport(0, 0, $this.$displayWidth, $this.$displayHeight);
+ var$7 = nms_ScaledResolution__init_($this.$gameSettings, $this.$displayWidth, $this.$displayHeight);
+ nleg_EaglerAdapterGL30_glMatrixMode(9);
+ nleg_EaglerAdapterGL30_glLoadIdentity();
+ nleg_EaglerAdapterGL30_glOrtho(0.0, nms_ScaledResolution_getScaledWidth(var$7), nms_ScaledResolution_getScaledHeight(var$7), 0.0, 1000.0, 3000.0);
+ nleg_EaglerAdapterGL30_glMatrixMode(10);
+ $f_0 = Long_toNumber(Long_sub(jl_System_currentTimeMillis(), $t1)) / 333.0;
+ nleg_EaglerAdapterGL30_glClear(3);
+ nleg_EaglerAdapterGL30_glColor4f(1.0, 1.0, 1.0, nms_MathHelper_clamp_float($f_0 * 0.6000000238418579, 0.0, 1.0));
+ nms_RenderEngine_bindTexture($this.$renderEngine, $rt_s(288));
+ nleg_EaglerAdapterGL30_glPushMatrix();
+ $f1 = 0.875 + 0.02500000037252903 * jl_Math_sqrt($f_0);
+ nleg_EaglerAdapterGL30_glTranslatef((nms_ScaledResolution_getScaledWidth(var$7) - 256 | 0) / 2 | 0, (nms_ScaledResolution_getScaledHeight(var$7) - 256 | 0) / 2 | 0, 0.0);
+ $f = (-128.0) * ($f1 - 1.0);
+ nleg_EaglerAdapterGL30_glTranslatef($f, $f, 0.0);
+ nleg_EaglerAdapterGL30_glScalef($f1, $f1, 1.0);
+ nmc_Minecraft_scaledTessellator($this, 0, 0, 0, 0, 256, 256);
+ nleg_EaglerAdapterGL30_glPopMatrix();
+ nmc_Minecraft_showWarningText($this);
+ nleg_EaglerAdapterGL30_glFlush();
+ $ptr = 4;
+ continue main;
+ }
+ try {
+ $t1 = Long_fromInt(1600);
+ $ptr = 3;
+ continue main;
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof jl_InterruptedException) {
+ $e = $$je;
+ } else {
+ throw $$e;
+ }
+ }
+ $e.$printStackTrace0();
+ $t1 = jl_System_currentTimeMillis();
+ $i_0 = 0;
+ $t_0 = Long_add($t1, Long_fromInt(17));
+ if ($i_0 >= 21) {
+ nleg_EaglerAdapterGL30_glClear(3);
+ nmc_Minecraft_showWarningText($this);
+ nleg_EaglerAdapterGL30_glFlush();
+ $ptr = 6;
+ continue main;
+ }
+ $this.$displayWidth = nlea_EaglerAdapterImpl2_getCanvasWidth();
+ $this.$displayHeight = nlea_EaglerAdapterImpl2_getCanvasHeight();
+ nleg_EaglerAdapterGL30_glViewport(0, 0, $this.$displayWidth, $this.$displayHeight);
+ $var1 = nms_ScaledResolution__init_($this.$gameSettings, $this.$displayWidth, $this.$displayHeight);
+ $f = Long_toNumber(Long_sub(jl_System_currentTimeMillis(), $t1)) / 340.0;
+ nleg_EaglerAdapterGL30_glClear(3);
+ nleg_EaglerAdapterGL30_glColor4f(1.0, 1.0, 1.0, nms_MathHelper_clamp_float((1.0 - $f) * 0.6000000238418579, 0.0, 1.0));
+ nms_RenderEngine_bindTexture($this.$renderEngine, $rt_s(288));
+ nleg_EaglerAdapterGL30_glPushMatrix();
+ $f1 = 0.8999999761581421 + 0.02500000037252903 * $f * $f;
+ nleg_EaglerAdapterGL30_glTranslatef((nms_ScaledResolution_getScaledWidth($var1) - 256 | 0) / 2 | 0, (nms_ScaledResolution_getScaledHeight($var1) - 256 | 0) / 2 | 0, 0.0);
+ $f = (-128.0) * ($f1 - 1.0);
+ nleg_EaglerAdapterGL30_glTranslatef($f, $f, 0.0);
+ nleg_EaglerAdapterGL30_glScalef($f1, $f1, 1.0);
+ nmc_Minecraft_scaledTessellator($this, 0, 0, 0, 0, 256, 256);
+ nleg_EaglerAdapterGL30_glPopMatrix();
+ nmc_Minecraft_showWarningText($this);
+ nleg_EaglerAdapterGL30_glFlush();
+ $ptr = 7;
+ continue main;
+ case 6:
+ nlea_EaglerAdapterImpl2_updateDisplay();
+ if ($rt_suspending()) {
+ break main;
+ }
+ try {
+ $t1 = Long_fromInt(100);
+ $ptr = 8;
+ continue main;
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof jl_InterruptedException) {
+ $e = $$je;
+ } else {
+ throw $$e;
+ }
+ }
+ $e.$printStackTrace0();
+ nle_GuiScreenVoiceChannel_fadeInTimer = jl_System_currentTimeMillis();
+ nleg_EaglerAdapterGL30_glDisable(16);
+ nleg_EaglerAdapterGL30_glEnable(6);
+ nleg_EaglerAdapterGL30_glAlphaFunc(7, 0.10000000149011612);
+ return;
+ case 7:
+ nlea_EaglerAdapterImpl2_updateDisplay();
+ if ($rt_suspending()) {
+ break main;
+ }
+ $t = Long_sub(Long_add($t_0, Long_fromInt(17 * $i_0 | 0)), jl_System_currentTimeMillis());
+ if (Long_gt($t, Long_ZERO)) {
+ try {
+ $ptr = 9;
+ continue main;
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof jl_InterruptedException) {
+ $e = $$je;
+ } else {
+ throw $$e;
+ }
+ }
+ $e.$printStackTrace0();
+ }
+ $i_0 = $i_0 + 1 | 0;
+ if ($i_0 >= 21) {
+ nleg_EaglerAdapterGL30_glClear(3);
+ nmc_Minecraft_showWarningText($this);
+ nleg_EaglerAdapterGL30_glFlush();
+ $ptr = 6;
+ continue main;
+ }
+ $this.$displayWidth = nlea_EaglerAdapterImpl2_getCanvasWidth();
+ $this.$displayHeight = nlea_EaglerAdapterImpl2_getCanvasHeight();
+ nleg_EaglerAdapterGL30_glViewport(0, 0, $this.$displayWidth, $this.$displayHeight);
+ $var1 = nms_ScaledResolution__init_($this.$gameSettings, $this.$displayWidth, $this.$displayHeight);
+ $f = Long_toNumber(Long_sub(jl_System_currentTimeMillis(), $t1)) / 340.0;
+ nleg_EaglerAdapterGL30_glClear(3);
+ nleg_EaglerAdapterGL30_glColor4f(1.0, 1.0, 1.0, nms_MathHelper_clamp_float((1.0 - $f) * 0.6000000238418579, 0.0, 1.0));
+ nms_RenderEngine_bindTexture($this.$renderEngine, $rt_s(288));
+ nleg_EaglerAdapterGL30_glPushMatrix();
+ $f1 = 0.8999999761581421 + 0.02500000037252903 * $f * $f;
+ nleg_EaglerAdapterGL30_glTranslatef((nms_ScaledResolution_getScaledWidth($var1) - 256 | 0) / 2 | 0, (nms_ScaledResolution_getScaledHeight($var1) - 256 | 0) / 2 | 0, 0.0);
+ $f = (-128.0) * ($f1 - 1.0);
+ nleg_EaglerAdapterGL30_glTranslatef($f, $f, 0.0);
+ nleg_EaglerAdapterGL30_glScalef($f1, $f1, 1.0);
+ nmc_Minecraft_scaledTessellator($this, 0, 0, 0, 0, 256, 256);
+ nleg_EaglerAdapterGL30_glPopMatrix();
+ nmc_Minecraft_showWarningText($this);
+ nleg_EaglerAdapterGL30_glFlush();
+ continue main;
+ case 8:
+ a: {
+ try {
+ jl_Thread_sleep($t1);
+ if ($rt_suspending()) {
+ break main;
+ }
+ break a;
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof jl_InterruptedException) {
+ $e = $$je;
+ } else {
+ throw $$e;
+ }
+ }
+ $e.$printStackTrace0();
+ }
+ nle_GuiScreenVoiceChannel_fadeInTimer = jl_System_currentTimeMillis();
+ nleg_EaglerAdapterGL30_glDisable(16);
+ nleg_EaglerAdapterGL30_glEnable(6);
+ nleg_EaglerAdapterGL30_glAlphaFunc(7, 0.10000000149011612);
+ return;
+ case 9:
+ a: {
+ try {
+ jl_Thread_sleep($t);
+ if ($rt_suspending()) {
+ break main;
+ }
+ break a;
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof jl_InterruptedException) {
+ $e = $$je;
+ } else {
+ throw $$e;
+ }
+ }
+ $e.$printStackTrace0();
+ }
+ $i_0 = $i_0 + 1 | 0;
+ if ($i_0 >= 21) {
+ nleg_EaglerAdapterGL30_glClear(3);
+ nmc_Minecraft_showWarningText($this);
+ nleg_EaglerAdapterGL30_glFlush();
+ $ptr = 6;
+ continue main;
+ }
+ $this.$displayWidth = nlea_EaglerAdapterImpl2_getCanvasWidth();
+ $this.$displayHeight = nlea_EaglerAdapterImpl2_getCanvasHeight();
+ nleg_EaglerAdapterGL30_glViewport(0, 0, $this.$displayWidth, $this.$displayHeight);
+ $var1 = nms_ScaledResolution__init_($this.$gameSettings, $this.$displayWidth, $this.$displayHeight);
+ $f = Long_toNumber(Long_sub(jl_System_currentTimeMillis(), $t1)) / 340.0;
+ nleg_EaglerAdapterGL30_glClear(3);
+ nleg_EaglerAdapterGL30_glColor4f(1.0, 1.0, 1.0, nms_MathHelper_clamp_float((1.0 - $f) * 0.6000000238418579, 0.0, 1.0));
+ nms_RenderEngine_bindTexture($this.$renderEngine, $rt_s(288));
+ nleg_EaglerAdapterGL30_glPushMatrix();
+ $f1 = 0.8999999761581421 + 0.02500000037252903 * $f * $f;
+ nleg_EaglerAdapterGL30_glTranslatef((nms_ScaledResolution_getScaledWidth($var1) - 256 | 0) / 2 | 0, (nms_ScaledResolution_getScaledHeight($var1) - 256 | 0) / 2 | 0, 0.0);
+ $f = (-128.0) * ($f1 - 1.0);
+ nleg_EaglerAdapterGL30_glTranslatef($f, $f, 0.0);
+ nleg_EaglerAdapterGL30_glScalef($f1, $f1, 1.0);
+ nmc_Minecraft_scaledTessellator($this, 0, 0, 0, 0, 256, 256);
+ nleg_EaglerAdapterGL30_glPopMatrix();
+ nmc_Minecraft_showWarningText($this);
+ nleg_EaglerAdapterGL30_glFlush();
+ $ptr = 7;
+ continue main;
+ default: $rt_invalidPointer();
+ }}
+ $rt_nativeThread().push($this, $t1, $i, $t, $var1, $f, $f1, var$7, $f_0, $e, $i_0, $t_0, $ptr);
+}
+function nmc_Minecraft_loadScreen($this) {
+ var $var3, $var1, var$3, var$4, var$5, $var4, var$7, $$je, $ptr, $tmp;
+ $ptr = 0;
+ if ($rt_resuming()) {
+ var $thread = $rt_nativeThread();
+ $ptr = $thread.pop();var$7 = $thread.pop();$var4 = $thread.pop();var$5 = $thread.pop();var$4 = $thread.pop();var$3 = $thread.pop();$var1 = $thread.pop();$var3 = $thread.pop();$this = $thread.pop();
+ }
+ main: while (true) { switch ($ptr) {
+ case 0:
+ nlea_EaglerAdapterImpl2_$callClinit();
+ $var3 = nlea_EaglerAdapterImpl2_parent.clientWidth;
+ $var1 = nlea_EaglerAdapterImpl2_canvas;
+ var$3 = $var3;
+ $var1.width = var$3;
+ $this.$displayWidth = $var3;
+ $var3 = nlea_EaglerAdapterImpl2_parent.clientHeight;
+ $var1 = nlea_EaglerAdapterImpl2_canvas;
+ var$3 = $var3;
+ $var1.height = var$3;
+ $this.$displayHeight = $var3;
+ $var1 = nms_ScaledResolution__init_($this.$gameSettings, $this.$displayWidth, $this.$displayHeight);
+ nleg_EaglerAdapterGL30_$callClinit();
+ nlea_EaglerAdapterImpl2_webgl.colorMask(!!1, !!1, !!1, !!1);
+ nlea_EaglerAdapterImpl2_webgl.clearColor(1.0, 1.0, 1.0, 1.0);
+ nleg_EaglerAdapterGL30_glDisable(6);
+ nleg_EaglerAdapterGL30_matrixMode = 9;
+ nlegv_Matrix4f_setIdentity(nleg_EaglerAdapterGL30_getMatrix());
+ nleg_EaglerAdapterGL30_glOrtho(0.0, $var1.$scaledWidth, $var1.$scaledHeight, 0.0, 1000.0, 3000.0);
+ nleg_EaglerAdapterGL30_matrixMode = 10;
+ nlegv_Matrix4f_setIdentity(nleg_EaglerAdapterGL30_getMatrix());
+ var$3 = nleg_EaglerAdapterGL30_deevis;
+ var$3.$x = 0.0;
+ var$3.$y = 0.0;
+ var$3.$z = (-2000.0);
+ var$3 = nleg_EaglerAdapterGL30_getMatrix();
+ nlegv_Matrix4f_translate(nleg_EaglerAdapterGL30_deevis, var$3, var$3);
+ if (nleg_EaglerAdapterGL30_isCompilingDisplayList) {
+ if (jl_System_errCache === null) {
+ var$4 = new ji_PrintStream;
+ var$4.$out = new jl_ConsoleOutputStreamStderr;
+ var$3 = new jl_StringBuilder;
+ var$3.$buffer = $rt_createCharArray(16);
+ var$4.$sb = var$3;
+ var$4.$buffer0 = $rt_createCharArray(32);
+ var$4.$autoFlush = 0;
+ var$3 = new jnci_UTF8Charset;
+ jnc_Charset__init_(var$3, $rt_s(2), $rt_createArray(jl_String, 0));
+ var$4.$charset = var$3;
+ jl_System_errCache = var$4;
+ }
+ var$5 = jl_System_errCache;
+ var$4 = var$5.$sb;
+ jl_AbstractStringBuilder_insert(var$4, var$4.$length, $rt_s(220));
+ $var4 = var$4.$length;
+ jl_AbstractStringBuilder_insertSpace(var$4, $var4, $var4 + 1 | 0);
+ var$4.$buffer.data[$var4] = 10;
+ ji_PrintStream_printSB(var$5);
+ }
+ nlea_EaglerAdapterImpl2__wglViewport(0, 0, $this.$displayWidth, $this.$displayHeight);
+ nleg_EaglerAdapterGL30_glClear(3);
+ nleg_EaglerAdapterGL30_glDisable(13);
+ nleg_EaglerAdapterGL30_glEnable(2);
+ nleg_EaglerAdapterGL30_glDisable(14);
+ nleg_EaglerAdapterGL30_colorR = 1.0;
+ nleg_EaglerAdapterGL30_colorG = 1.0;
+ nleg_EaglerAdapterGL30_colorB = 1.0;
+ nleg_EaglerAdapterGL30_colorA = 1.0;
+ var$3 = $this.$renderEngine;
+ nms_RenderEngine_bindTexture0(var$3, nms_RenderEngine_getTexture(var$3, $rt_s(287)));
+ nmc_Minecraft_scaledTessellator($this, ($var1.$scaledWidth - 256 | 0) / 2 | 0, ($var1.$scaledHeight - 256 | 0) / 2 | 0, 0, 0, 256, 256);
+ nleg_EaglerAdapterGL30_glDisable(13);
+ nleg_EaglerAdapterGL30_glDisable(14);
+ nleg_EaglerAdapterGL30_glEnable(6);
+ nleg_EaglerAdapterGL30_alphaThresh = 0.10000000149011612;
+ try {
+ var$7 = Long_fromInt(1);
+ $ptr = 1;
+ continue main;
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof jl_InterruptedException) {
+ } else {
+ throw $$e;
+ }
+ }
+ return;
+ case 1:
+ a: {
+ try {
+ jl_Thread_sleep(var$7);
+ if ($rt_suspending()) {
+ break main;
+ }
+ break a;
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof jl_InterruptedException) {
+ } else {
+ throw $$e;
+ }
+ }
+ }
+ return;
+ default: $rt_invalidPointer();
+ }}
+ $rt_nativeThread().push($this, $var3, $var1, var$3, var$4, var$5, $var4, var$7, $ptr);
+}
+function nmc_Minecraft_scaledTessellator($this, $par1, $par2, $par3, $par4, $par5, $par6) {
+ var $var9, var$8, var$9, var$10, var$11, var$12, var$13, var$14, var$15, $var8;
+ nlea_Tessellator_$callClinit();
+ $var9 = nlea_Tessellator_instance;
+ nlea_Tessellator_startDrawing($var9, 98);
+ nlea_Tessellator_setColorRGBA($var9, 255, 255, 255, 255);
+ var$8 = $par1 + 0 | 0;
+ var$9 = $par2 + $par6 | 0;
+ var$10 = ($par3 + 0 | 0) * 0.00390625;
+ var$11 = ($par4 + $par6 | 0) * 0.00390625;
+ $var9.$hasTexture = 1;
+ var$12 = var$10;
+ $var9.$textureU = var$12;
+ var$13 = var$11;
+ $var9.$textureV = var$13;
+ nlea_Tessellator_addVertex($var9, var$8, var$9, 0.0);
+ var$14 = $par1 + $par5 | 0;
+ var$11 = ($par3 + $par5 | 0) * 0.00390625;
+ $var9.$hasTexture = 1;
+ var$15 = var$11;
+ $var9.$textureU = var$15;
+ $var9.$textureV = var$13;
+ nlea_Tessellator_addVertex($var9, var$14, var$9, 0.0);
+ var$9 = $par2 + 0 | 0;
+ var$11 = ($par4 + 0 | 0) * 0.00390625;
+ $var9.$hasTexture = 1;
+ $var9.$textureU = var$15;
+ $var8 = var$11;
+ $var9.$textureV = $var8;
+ nlea_Tessellator_addVertex($var9, var$14, var$9, 0.0);
+ $var9.$hasTexture = 1;
+ $var9.$textureU = var$12;
+ $var9.$textureV = $var8;
+ nlea_Tessellator_addVertex($var9, var$8, var$9, 0.0);
+ nlea_Tessellator_draw($var9);
+}
+function nmc_Minecraft_getOs() {
+ var $var0;
+ jl_System_initPropertiesIfNeeded();
+ $var0 = jl_String_toLowerCase(ju_Properties_getProperty(jl_System_properties, $rt_s(272)));
+ return jl_String_contains($var0, $rt_s(289)) ? nms_EnumOS_WINDOWS : jl_String_contains($var0, $rt_s(290)) ? nms_EnumOS_MACOS : jl_String_contains($var0, $rt_s(291)) ? nms_EnumOS_SOLARIS : jl_String_contains($var0, $rt_s(292)) ? nms_EnumOS_SOLARIS : jl_String_contains($var0, $rt_s(293)) ? nms_EnumOS_LINUX : !jl_String_contains($var0, $rt_s(294)) ? nms_EnumOS_UNKNOWN : nms_EnumOS_LINUX;
+}
+function nmc_Minecraft_displayGuiScreen($this, $par1GuiScreen) {
+ var $var2, $var3, $var4, $ptr, $tmp;
+ $ptr = 0;
+ if ($rt_resuming()) {
+ var $thread = $rt_nativeThread();
+ $ptr = $thread.pop();$var4 = $thread.pop();$var3 = $thread.pop();$var2 = $thread.pop();$par1GuiScreen = $thread.pop();$this = $thread.pop();
+ }
+ main: while (true) { switch ($ptr) {
+ case 0:
+ if ($this.$currentScreen !== null) {
+ $var2 = $this.$currentScreen;
+ $ptr = 1;
+ continue main;
+ }
+ if ($par1GuiScreen === null && $this.$theWorld === null)
+ $par1GuiScreen = nms_GuiMainMenu__init_0();
+ else if ($par1GuiScreen === null && $this.$thePlayer.$health <= 0) {
+ $par1GuiScreen = new nms_GuiGameOver;
+ nms_GuiScreen__init_($par1GuiScreen);
+ }
+ if ($par1GuiScreen instanceof nms_GuiMainMenu) {
+ $this.$gameSettings.$showDebugInfo = 0;
+ nms_GuiNewChat_clearChatMessages($this.$ingameGUI.$persistantChatGUI);
+ }
+ $this.$currentScreen = $par1GuiScreen;
+ if ($par1GuiScreen === null) {
+ if ($this.$inGameHasFocus)
+ return;
+ $this.$inGameHasFocus = 1;
+ nms_MouseHelper_grabMouseCursor($this.$mouseHelper);
+ $par1GuiScreen = null;
+ $ptr = 3;
+ continue main;
+ }
+ nmc_Minecraft_setIngameNotInFocus($this);
+ $var2 = nms_ScaledResolution__init_($this.$gameSettings, $this.$displayWidth, $this.$displayHeight);
+ $var3 = $var2.$scaledWidth;
+ $var4 = $var2.$scaledHeight;
+ $ptr = 2;
+ continue main;
+ case 1:
+ $var2.$onGuiClosed();
+ if ($rt_suspending()) {
+ break main;
+ }
+ if ($par1GuiScreen === null && $this.$theWorld === null)
+ $par1GuiScreen = nms_GuiMainMenu__init_0();
+ else if ($par1GuiScreen === null && $this.$thePlayer.$health <= 0) {
+ $par1GuiScreen = new nms_GuiGameOver;
+ nms_GuiScreen__init_($par1GuiScreen);
+ }
+ if ($par1GuiScreen instanceof nms_GuiMainMenu) {
+ $this.$gameSettings.$showDebugInfo = 0;
+ nms_GuiNewChat_clearChatMessages($this.$ingameGUI.$persistantChatGUI);
+ }
+ $this.$currentScreen = $par1GuiScreen;
+ if ($par1GuiScreen === null) {
+ if ($this.$inGameHasFocus)
+ return;
+ $this.$inGameHasFocus = 1;
+ nms_MouseHelper_grabMouseCursor($this.$mouseHelper);
+ $par1GuiScreen = null;
+ $ptr = 3;
+ continue main;
+ }
+ nmc_Minecraft_setIngameNotInFocus($this);
+ $var2 = nms_ScaledResolution__init_($this.$gameSettings, $this.$displayWidth, $this.$displayHeight);
+ $var3 = $var2.$scaledWidth;
+ $var4 = $var2.$scaledHeight;
+ $ptr = 2;
+ case 2:
+ nms_GuiScreen_setWorldAndResolution($par1GuiScreen, $this, $var3, $var4);
+ if ($rt_suspending()) {
+ break main;
+ }
+ $this.$skipRenderWorld = 0;
+ return;
+ case 3:
+ nmc_Minecraft_displayGuiScreen($this, $par1GuiScreen);
+ if ($rt_suspending()) {
+ break main;
+ }
+ $this.$leftClickCounter = 10000;
+ return;
+ default: $rt_invalidPointer();
+ }}
+ $rt_nativeThread().push($this, $par1GuiScreen, $var2, $var3, $var4, $ptr);
+}
+function nmc_Minecraft_checkGLError($this, $par1Str) {
+ return;
+}
+function nmc_Minecraft_run($this) {
+ var var$1, var$2, $$je, $ptr, $tmp;
+ $ptr = 0;
+ if ($rt_resuming()) {
+ var $thread = $rt_nativeThread();
+ $ptr = $thread.pop();var$2 = $thread.pop();var$1 = $thread.pop();$this = $thread.pop();
+ }
+ main: while (true) { switch ($ptr) {
+ case 0:
+ $this.$running = 1;
+ $ptr = 1;
+ case 1:
+ nmc_Minecraft_startGame($this);
+ if ($rt_suspending()) {
+ break main;
+ }
+ var$1 = null;
+ if (!$this.$running) {
+ nlea_EaglerAdapterImpl2_$callClinit();
+ return;
+ }
+ if ($this.$refreshTexturePacksScheduled) {
+ $this.$refreshTexturePacksScheduled = 0;
+ nms_RenderEngine_refreshTextures($this.$renderEngine);
+ }
+ try {
+ $ptr = 2;
+ continue main;
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof jl_OutOfMemoryError) {
+ } else {
+ throw $$e;
+ }
+ }
+ a: {
+ try {
+ nms_RenderGlobal_deleteAllDisplayLists($this.$renderGlobal);
+ break a;
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof jl_Throwable) {
+ } else {
+ throw $$e;
+ }
+ }
+ }
+ b: {
+ try {
+ jl_System_gc();
+ nms_AABBPool_clearPool(nms_AxisAlignedBB_getAABBPool());
+ nms_Vec3Pool_clearAndFreeCache(nms_World_getWorldVec3Pool($this.$theWorld));
+ break b;
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof jl_Throwable) {
+ } else {
+ throw $$e;
+ }
+ }
+ }
+ try {
+ jl_System_gc();
+ $ptr = 3;
+ continue main;
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof jl_Throwable) {
+ } else {
+ throw $$e;
+ }
+ }
+ var$2 = new nms_GuiMemoryErrorScreen;
+ nms_GuiScreen__init_(var$2);
+ $ptr = 4;
+ continue main;
+ case 2:
+ c: {
+ try {
+ nmc_Minecraft_runGameLoop($this);
+ if ($rt_suspending()) {
+ break main;
+ }
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof jl_OutOfMemoryError) {
+ break c;
+ } else {
+ throw $$e;
+ }
+ }
+ if (!$this.$running) {
+ nlea_EaglerAdapterImpl2_$callClinit();
+ return;
+ }
+ if ($this.$refreshTexturePacksScheduled) {
+ $this.$refreshTexturePacksScheduled = 0;
+ nms_RenderEngine_refreshTextures($this.$renderEngine);
+ }
+ try {
+ continue main;
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof jl_OutOfMemoryError) {
+ } else {
+ throw $$e;
+ }
+ }
+ }
+ d: {
+ try {
+ nms_RenderGlobal_deleteAllDisplayLists($this.$renderGlobal);
+ break d;
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof jl_Throwable) {
+ } else {
+ throw $$e;
+ }
+ }
+ }
+ e: {
+ try {
+ jl_System_gc();
+ nms_AABBPool_clearPool(nms_AxisAlignedBB_getAABBPool());
+ nms_Vec3Pool_clearAndFreeCache(nms_World_getWorldVec3Pool($this.$theWorld));
+ break e;
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof jl_Throwable) {
+ } else {
+ throw $$e;
+ }
+ }
+ }
+ try {
+ jl_System_gc();
+ $ptr = 3;
+ continue main;
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof jl_Throwable) {
+ } else {
+ throw $$e;
+ }
+ }
+ var$2 = new nms_GuiMemoryErrorScreen;
+ nms_GuiScreen__init_(var$2);
+ $ptr = 4;
+ continue main;
+ case 3:
+ c: {
+ try {
+ nmc_Minecraft_loadWorld($this, var$1);
+ if ($rt_suspending()) {
+ break main;
+ }
+ break c;
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof jl_Throwable) {
+ } else {
+ throw $$e;
+ }
+ }
+ }
+ var$2 = new nms_GuiMemoryErrorScreen;
+ nms_GuiScreen__init_(var$2);
+ $ptr = 4;
+ case 4:
+ nmc_Minecraft_displayGuiScreen($this, var$2);
+ if ($rt_suspending()) {
+ break main;
+ }
+ if (!$this.$running) {
+ nlea_EaglerAdapterImpl2_$callClinit();
+ return;
+ }
+ if ($this.$refreshTexturePacksScheduled) {
+ $this.$refreshTexturePacksScheduled = 0;
+ nms_RenderEngine_refreshTextures($this.$renderEngine);
+ }
+ try {
+ $ptr = 2;
+ continue main;
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof jl_OutOfMemoryError) {
+ } else {
+ throw $$e;
+ }
+ }
+ a: {
+ try {
+ nms_RenderGlobal_deleteAllDisplayLists($this.$renderGlobal);
+ break a;
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof jl_Throwable) {
+ } else {
+ throw $$e;
+ }
+ }
+ }
+ b: {
+ try {
+ jl_System_gc();
+ nms_AABBPool_clearPool(nms_AxisAlignedBB_getAABBPool());
+ nms_Vec3Pool_clearAndFreeCache(nms_World_getWorldVec3Pool($this.$theWorld));
+ break b;
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof jl_Throwable) {
+ } else {
+ throw $$e;
+ }
+ }
+ }
+ try {
+ jl_System_gc();
+ $ptr = 3;
+ continue main;
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof jl_Throwable) {
+ } else {
+ throw $$e;
+ }
+ }
+ var$2 = new nms_GuiMemoryErrorScreen;
+ nms_GuiScreen__init_(var$2);
+ continue main;
+ default: $rt_invalidPointer();
+ }}
+ $rt_nativeThread().push($this, var$1, var$2, $ptr);
+}
+function nmc_Minecraft_runGameLoop($this) {
+ var $var1, $var6, $var3, var$4, $var7, var$6, var$7, $$je, $ptr, $tmp;
+ $ptr = 0;
+ if ($rt_resuming()) {
+ var $thread = $rt_nativeThread();
+ $ptr = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();$var7 = $thread.pop();var$4 = $thread.pop();$var3 = $thread.pop();$var6 = $thread.pop();$var1 = $thread.pop();$this = $thread.pop();
+ }
+ main: while (true) { switch ($ptr) {
+ case 0:
+ nms_AABBPool_cleanPool(jl_ThreadLocal_get(nms_AxisAlignedBB_theAABBLocalPool));
+ if ($this.$theWorld !== null)
+ nms_Vec3Pool_clear($this.$theWorld.$vecPool);
+ nms_Profiler_startSection($this.$mcProfiler, $rt_s(281));
+ nlea_EaglerAdapterImpl2_$callClinit();
+ if ($this.$isGamePaused && $this.$theWorld !== null) {
+ $var1 = $this.$timer.$renderPartialTicks;
+ nms_Timer_updateTimer($this.$timer);
+ $this.$timer.$renderPartialTicks = $var1;
+ } else
+ nms_Timer_updateTimer($this.$timer);
+ $var6 = Long_fromNumber(performance.now() * 1000000.0);
+ nms_Profiler_startSection($this.$mcProfiler, $rt_s(295));
+ $var3 = 0;
+ if ($var3 < $this.$timer.$elapsedTicks) {
+ $ptr = 1;
+ continue main;
+ }
+ var$4 = $this.$mcProfiler;
+ nms_Profiler_endSection(var$4);
+ nms_Profiler_startSection(var$4, $rt_s(296));
+ $var7 = Long_sub(Long_fromNumber(performance.now() * 1000000.0), $var6);
+ nms_RenderBlocks_fancyGrass = $this.$gameSettings.$fancyGraphics;
+ var$4 = $this.$mcProfiler;
+ nms_Profiler_endSection(var$4);
+ nms_Profiler_startSection(var$4, $rt_s(297));
+ nms_SoundManager_setListener($this.$sndManager, $this.$thePlayer, $this.$timer.$renderPartialTicks);
+ if (!$this.$isGamePaused) {
+ var$4 = $this.$sndManager;
+ $ptr = 2;
+ continue main;
+ }
+ nms_Profiler_endSection($this.$mcProfiler);
+ nms_Profiler_startSection($this.$mcProfiler, $rt_s(298));
+ nms_Profiler_startSection($this.$mcProfiler, $rt_s(299));
+ nleg_EaglerAdapterGL30_glEnable(2);
+ if (!nlea_EaglerAdapterImpl2_keyStates.data[65])
+ try {
+ $var6 = Long_fromInt(1);
+ $ptr = 3;
+ continue main;
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof jl_InterruptedException) {
+ } else {
+ throw $$e;
+ }
+ }
+ if ($this.$thePlayer !== null) {
+ var$4 = $this.$thePlayer;
+ if (!var$4.$sleeping && nms_Entity_isEntityInsideOpaqueBlock(var$4) ? 1 : 0)
+ $this.$gameSettings.$thirdPersonView = 0;
+ }
+ nms_Profiler_endSection($this.$mcProfiler);
+ nleg_EaglerAdapterGL30_glClearStack();
+ if (!$this.$skipRenderWorld) {
+ var$4 = $this.$mcProfiler;
+ nms_Profiler_endSection(var$4);
+ nms_Profiler_startSection(var$4, $rt_s(300));
+ var$4 = $this.$entityRenderer;
+ $var1 = $this.$timer.$renderPartialTicks;
+ $ptr = 4;
+ continue main;
+ }
+ nms_Profiler_endSection($this.$mcProfiler);
+ if ($this.$gameSettings.$showDebugInfo && $this.$gameSettings.$showDebugProfilerChart) {
+ if (!$this.$mcProfiler.$profilingEnabled)
+ nms_Profiler_clearProfiling($this.$mcProfiler);
+ $this.$mcProfiler.$profilingEnabled = 1;
+ nmc_Minecraft_displayDebugInfo($this, $var7);
+ } else {
+ $this.$mcProfiler.$profilingEnabled = 0;
+ $this.$prevFrameTime = Long_fromNumber(performance.now() * 1000000.0);
+ }
+ var$4 = $this.$guiAchievement;
+ $ptr = 5;
+ continue main;
+ case 1:
+ nmc_Minecraft_runTick($this);
+ if ($rt_suspending()) {
+ break main;
+ }
+ $var3 = $var3 + 1 | 0;
+ if ($var3 < $this.$timer.$elapsedTicks) {
+ continue main;
+ }
+ var$4 = $this.$mcProfiler;
+ nms_Profiler_endSection(var$4);
+ nms_Profiler_startSection(var$4, $rt_s(296));
+ $var7 = Long_sub(Long_fromNumber(performance.now() * 1000000.0), $var6);
+ nms_RenderBlocks_fancyGrass = $this.$gameSettings.$fancyGraphics;
+ var$4 = $this.$mcProfiler;
+ nms_Profiler_endSection(var$4);
+ nms_Profiler_startSection(var$4, $rt_s(297));
+ nms_SoundManager_setListener($this.$sndManager, $this.$thePlayer, $this.$timer.$renderPartialTicks);
+ if (!$this.$isGamePaused) {
+ var$4 = $this.$sndManager;
+ $ptr = 2;
+ continue main;
+ }
+ nms_Profiler_endSection($this.$mcProfiler);
+ nms_Profiler_startSection($this.$mcProfiler, $rt_s(298));
+ nms_Profiler_startSection($this.$mcProfiler, $rt_s(299));
+ nleg_EaglerAdapterGL30_glEnable(2);
+ if (!nlea_EaglerAdapterImpl2_keyStates.data[65])
+ try {
+ $var6 = Long_fromInt(1);
+ $ptr = 3;
+ continue main;
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof jl_InterruptedException) {
+ } else {
+ throw $$e;
+ }
+ }
+ if ($this.$thePlayer !== null) {
+ var$4 = $this.$thePlayer;
+ if (!var$4.$sleeping && nms_Entity_isEntityInsideOpaqueBlock(var$4) ? 1 : 0)
+ $this.$gameSettings.$thirdPersonView = 0;
+ }
+ nms_Profiler_endSection($this.$mcProfiler);
+ nleg_EaglerAdapterGL30_glClearStack();
+ if (!$this.$skipRenderWorld) {
+ var$4 = $this.$mcProfiler;
+ nms_Profiler_endSection(var$4);
+ nms_Profiler_startSection(var$4, $rt_s(300));
+ var$4 = $this.$entityRenderer;
+ $var1 = $this.$timer.$renderPartialTicks;
+ $ptr = 4;
+ continue main;
+ }
+ nms_Profiler_endSection($this.$mcProfiler);
+ if ($this.$gameSettings.$showDebugInfo && $this.$gameSettings.$showDebugProfilerChart) {
+ if (!$this.$mcProfiler.$profilingEnabled)
+ nms_Profiler_clearProfiling($this.$mcProfiler);
+ $this.$mcProfiler.$profilingEnabled = 1;
+ nmc_Minecraft_displayDebugInfo($this, $var7);
+ } else {
+ $this.$mcProfiler.$profilingEnabled = 0;
+ $this.$prevFrameTime = Long_fromNumber(performance.now() * 1000000.0);
+ }
+ var$4 = $this.$guiAchievement;
+ $ptr = 5;
+ continue main;
+ case 2:
+ nms_SoundManager_func_92071_g(var$4);
+ if ($rt_suspending()) {
+ break main;
+ }
+ nms_Profiler_endSection($this.$mcProfiler);
+ nms_Profiler_startSection($this.$mcProfiler, $rt_s(298));
+ nms_Profiler_startSection($this.$mcProfiler, $rt_s(299));
+ nleg_EaglerAdapterGL30_glEnable(2);
+ if (!nlea_EaglerAdapterImpl2_keyStates.data[65])
+ try {
+ $var6 = Long_fromInt(1);
+ $ptr = 3;
+ continue main;
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof jl_InterruptedException) {
+ } else {
+ throw $$e;
+ }
+ }
+ if ($this.$thePlayer !== null) {
+ var$4 = $this.$thePlayer;
+ if (!var$4.$sleeping && nms_Entity_isEntityInsideOpaqueBlock(var$4) ? 1 : 0)
+ $this.$gameSettings.$thirdPersonView = 0;
+ }
+ nms_Profiler_endSection($this.$mcProfiler);
+ nleg_EaglerAdapterGL30_glClearStack();
+ if (!$this.$skipRenderWorld) {
+ var$4 = $this.$mcProfiler;
+ nms_Profiler_endSection(var$4);
+ nms_Profiler_startSection(var$4, $rt_s(300));
+ var$4 = $this.$entityRenderer;
+ $var1 = $this.$timer.$renderPartialTicks;
+ $ptr = 4;
+ continue main;
+ }
+ nms_Profiler_endSection($this.$mcProfiler);
+ if ($this.$gameSettings.$showDebugInfo && $this.$gameSettings.$showDebugProfilerChart) {
+ if (!$this.$mcProfiler.$profilingEnabled)
+ nms_Profiler_clearProfiling($this.$mcProfiler);
+ $this.$mcProfiler.$profilingEnabled = 1;
+ nmc_Minecraft_displayDebugInfo($this, $var7);
+ } else {
+ $this.$mcProfiler.$profilingEnabled = 0;
+ $this.$prevFrameTime = Long_fromNumber(performance.now() * 1000000.0);
+ }
+ var$4 = $this.$guiAchievement;
+ $ptr = 5;
+ continue main;
+ case 3:
+ a: {
+ try {
+ jl_Thread_sleep($var6);
+ if ($rt_suspending()) {
+ break main;
+ }
+ break a;
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof jl_InterruptedException) {
+ } else {
+ throw $$e;
+ }
+ }
+ }
+ if ($this.$thePlayer !== null) {
+ var$4 = $this.$thePlayer;
+ if (!var$4.$sleeping && nms_Entity_isEntityInsideOpaqueBlock(var$4) ? 1 : 0)
+ $this.$gameSettings.$thirdPersonView = 0;
+ }
+ nms_Profiler_endSection($this.$mcProfiler);
+ nleg_EaglerAdapterGL30_glClearStack();
+ if (!$this.$skipRenderWorld) {
+ var$4 = $this.$mcProfiler;
+ nms_Profiler_endSection(var$4);
+ nms_Profiler_startSection(var$4, $rt_s(300));
+ var$4 = $this.$entityRenderer;
+ $var1 = $this.$timer.$renderPartialTicks;
+ $ptr = 4;
+ continue main;
+ }
+ nms_Profiler_endSection($this.$mcProfiler);
+ if ($this.$gameSettings.$showDebugInfo && $this.$gameSettings.$showDebugProfilerChart) {
+ if (!$this.$mcProfiler.$profilingEnabled)
+ nms_Profiler_clearProfiling($this.$mcProfiler);
+ $this.$mcProfiler.$profilingEnabled = 1;
+ nmc_Minecraft_displayDebugInfo($this, $var7);
+ } else {
+ $this.$mcProfiler.$profilingEnabled = 0;
+ $this.$prevFrameTime = Long_fromNumber(performance.now() * 1000000.0);
+ }
+ var$4 = $this.$guiAchievement;
+ $ptr = 5;
+ continue main;
+ case 4:
+ nms_EntityRenderer_updateCameraAndRender(var$4, $var1);
+ if ($rt_suspending()) {
+ break main;
+ }
+ nms_Profiler_endSection($this.$mcProfiler);
+ nms_Profiler_endSection($this.$mcProfiler);
+ if ($this.$gameSettings.$showDebugInfo && $this.$gameSettings.$showDebugProfilerChart) {
+ if (!$this.$mcProfiler.$profilingEnabled)
+ nms_Profiler_clearProfiling($this.$mcProfiler);
+ $this.$mcProfiler.$profilingEnabled = 1;
+ nmc_Minecraft_displayDebugInfo($this, $var7);
+ } else {
+ $this.$mcProfiler.$profilingEnabled = 0;
+ $this.$prevFrameTime = Long_fromNumber(performance.now() * 1000000.0);
+ }
+ var$4 = $this.$guiAchievement;
+ $ptr = 5;
+ case 5:
+ a: {
+ nms_GuiAchievement_updateAchievementWindow(var$4);
+ if ($rt_suspending()) {
+ break main;
+ }
+ nms_Profiler_startSection($this.$mcProfiler, $rt_s(281));
+ if (!$this.$fullscreen) {
+ var$6 = nlea_EaglerAdapterImpl2_parent.clientWidth;
+ var$4 = nlea_EaglerAdapterImpl2_canvas;
+ var$7 = var$6;
+ var$4.width = var$7;
+ if (var$6 != $this.$displayWidth)
+ break a;
+ if (nlea_EaglerAdapterImpl2_getCanvasHeight() != $this.$displayHeight)
+ break a;
+ }
+ $this.$fpsCounter = $this.$fpsCounter + 1 | 0;
+ $this.$isGamePaused = 0;
+ if (Long_gt(Long_sub(jl_System_currentTimeMillis(), $this.$secondTimer), Long_fromInt(1000))) {
+ nmc_Minecraft_debugFPS = $this.$fpsCounter;
+ $this.$fpsCounter = 0;
+ nmc_Minecraft_debugChunkUpdates = $this.$chunkUpdates;
+ $this.$chunkUpdates = 0;
+ $this.$secondTimer = jl_System_currentTimeMillis();
+ }
+ nms_Profiler_startSection($this.$mcProfiler, $rt_s(301));
+ if (nmc_Minecraft_func_90020_K($this) > 0)
+ nms_EntityRenderer_performanceToFps(nmc_Minecraft_func_90020_K($this));
+ nms_Profiler_endSection($this.$mcProfiler);
+ nms_Profiler_endSection($this.$mcProfiler);
+ return;
+ }
+ $this.$displayWidth = nlea_EaglerAdapterImpl2_getCanvasWidth();
+ $this.$displayHeight = nlea_EaglerAdapterImpl2_getCanvasHeight();
+ if ($this.$displayWidth <= 0)
+ $this.$displayWidth = 1;
+ if ($this.$displayHeight <= 0)
+ $this.$displayHeight = 1;
+ $var3 = $this.$displayWidth;
+ var$6 = $this.$displayHeight;
+ $ptr = 6;
+ case 6:
+ nmc_Minecraft_resize($this, $var3, var$6);
+ if ($rt_suspending()) {
+ break main;
+ }
+ $this.$fpsCounter = $this.$fpsCounter + 1 | 0;
+ $this.$isGamePaused = 0;
+ if (Long_gt(Long_sub(jl_System_currentTimeMillis(), $this.$secondTimer), Long_fromInt(1000))) {
+ nmc_Minecraft_debugFPS = $this.$fpsCounter;
+ $this.$fpsCounter = 0;
+ nmc_Minecraft_debugChunkUpdates = $this.$chunkUpdates;
+ $this.$chunkUpdates = 0;
+ $this.$secondTimer = jl_System_currentTimeMillis();
+ }
+ nms_Profiler_startSection($this.$mcProfiler, $rt_s(301));
+ if (nmc_Minecraft_func_90020_K($this) > 0)
+ nms_EntityRenderer_performanceToFps(nmc_Minecraft_func_90020_K($this));
+ nms_Profiler_endSection($this.$mcProfiler);
+ nms_Profiler_endSection($this.$mcProfiler);
+ return;
+ default: $rt_invalidPointer();
+ }}
+ $rt_nativeThread().push($this, $var1, $var6, $var3, var$4, $var7, var$6, var$7, $ptr);
+}
+function nmc_Minecraft_func_90020_K($this) {
+ return $this.$currentScreen !== null && $this.$currentScreen instanceof nms_GuiMainMenu ? 2 : $this.$gameSettings.$limitFramerate;
+}
+function nmc_Minecraft_freeMemory($this) {
+ var var$1, $$je, $ptr, $tmp;
+ $ptr = 0;
+ if ($rt_resuming()) {
+ var $thread = $rt_nativeThread();
+ $ptr = $thread.pop();var$1 = $thread.pop();$this = $thread.pop();
+ }
+ main: while (true) { switch ($ptr) {
+ case 0:
+ a: {
+ try {
+ nms_RenderGlobal_deleteAllDisplayLists($this.$renderGlobal);
+ break a;
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof jl_Throwable) {
+ } else {
+ throw $$e;
+ }
+ }
+ }
+ b: {
+ try {
+ jl_System_gc();
+ nms_AABBPool_clearPool(nms_AxisAlignedBB_getAABBPool());
+ nms_Vec3Pool_clearAndFreeCache(nms_World_getWorldVec3Pool($this.$theWorld));
+ break b;
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof jl_Throwable) {
+ } else {
+ throw $$e;
+ }
+ }
+ }
+ try {
+ jl_System_gc();
+ var$1 = null;
+ $ptr = 1;
+ continue main;
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof jl_Throwable) {
+ } else {
+ throw $$e;
+ }
+ }
+ return;
+ case 1:
+ a: {
+ try {
+ nmc_Minecraft_loadWorld($this, var$1);
+ if ($rt_suspending()) {
+ break main;
+ }
+ break a;
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof jl_Throwable) {
+ } else {
+ throw $$e;
+ }
+ }
+ }
+ return;
+ default: $rt_invalidPointer();
+ }}
+ $rt_nativeThread().push($this, var$1, $ptr);
+}
+function nmc_Minecraft_updateDebugProfilerName($this, $par1) {
+ var $var2, $var3, var$4, $var4;
+ $var2 = nms_Profiler_getProfilingData($this.$mcProfiler, $this.$debugProfilerName);
+ if ($var2 !== null && !($var2.$size0 ? 0 : 1)) {
+ $var3 = ju_ArrayList_remove($var2, 0);
+ if ($par1) {
+ $par1 = $par1 + (-1) | 0;
+ if ($par1 < $var2.$size0 && !jl_String_equals(ju_ArrayList_get($var2, $par1).$field_76331_c, $rt_s(302))) {
+ if ($this.$debugProfilerName.$characters.data.length > 0) {
+ $var3 = new jl_StringBuilder;
+ $var3.$buffer = $rt_createCharArray(16);
+ var$4 = $this.$debugProfilerName;
+ jl_AbstractStringBuilder_insert($var3, $var3.$length, var$4);
+ jl_AbstractStringBuilder_insert($var3, $var3.$length, $rt_s(303));
+ $this.$debugProfilerName = jl_String__init_0($var3.$buffer, 0, $var3.$length);
+ }
+ $var3 = new jl_StringBuilder;
+ $var3.$buffer = $rt_createCharArray(16);
+ var$4 = $this.$debugProfilerName;
+ jl_AbstractStringBuilder_insert($var3, $var3.$length, var$4);
+ $var2 = ju_ArrayList_get($var2, $par1).$field_76331_c;
+ jl_AbstractStringBuilder_insert($var3, $var3.$length, $var2);
+ $this.$debugProfilerName = jl_String__init_0($var3.$buffer, 0, $var3.$length);
+ }
+ } else if ($var3.$field_76331_c.$characters.data.length > 0) {
+ $var2 = $this.$debugProfilerName;
+ $var4 = jl_String_lastIndexOf1($var2, $rt_s(303), $var2.$characters.data.length);
+ if ($var4 >= 0) {
+ $var2 = $this.$debugProfilerName;
+ if (0 > $var4) {
+ $var2 = new jl_IndexOutOfBoundsException;
+ $var2.$suppressionEnabled = 1;
+ $var2.$writableStackTrace = 1;
+ $rt_throw($var2);
+ }
+ $this.$debugProfilerName = jl_String__init_0($var2.$characters, 0, $var4 - 0 | 0);
+ }
+ }
+ }
+}
+function nmc_Minecraft_displayDebugInfo($this, $par1) {
+ var $var3, $var4, $var5, $var7, $var8, var$7, var$8, var$9, var$10, var$11, $var9, $var11, var$14, var$15, $var12, $var13, var$18, $var14, $var15, $var16, $var17, $var18, $var19, $var6, $var21, $var13_0, $var20;
+ a: {
+ if ($this.$mcProfiler.$profilingEnabled) {
+ $var3 = nms_Profiler_getProfilingData($this.$mcProfiler, $this.$debugProfilerName);
+ $var4 = ju_ArrayList_remove($var3, 0);
+ nleg_EaglerAdapterGL30_glClear(2);
+ nleg_EaglerAdapterGL30_glMatrixMode(9);
+ nleg_EaglerAdapterGL30_glEnable(15);
+ nleg_EaglerAdapterGL30_glLoadIdentity();
+ nleg_EaglerAdapterGL30_glOrtho(0.0, $this.$displayWidth, $this.$displayHeight, 0.0, 1000.0, 3000.0);
+ nleg_EaglerAdapterGL30_glMatrixMode(10);
+ nleg_EaglerAdapterGL30_glLoadIdentity();
+ nleg_EaglerAdapterGL30_glTranslatef(0.0, 0.0, (-2000.0));
+ nleg_EaglerAdapterGL30_glLineWidth(1.0);
+ nleg_EaglerAdapterGL30_glDisable(2);
+ nleg_EaglerAdapterGL30_glEnable(4);
+ nleg_EaglerAdapterGL30_glColor4f(1.0, 1.0, 1.0, 1.0);
+ nlea_Tessellator_$callClinit();
+ $var5 = nlea_Tessellator_instance;
+ $var7 = ($this.$displayWidth - 160 | 0) - 10 | 0;
+ $var8 = $this.$displayHeight - 320 | 0;
+ nleg_EaglerAdapterGL30_glEnable(16);
+ nlea_Tessellator_startDrawingQuads($var5);
+ nlea_Tessellator_setColorRGBA_I($var5, 0, 200);
+ var$7 = $var7;
+ var$8 = var$7 - 176.0;
+ var$9 = $var8;
+ var$10 = var$9 - 96.0 - 16.0;
+ nlea_Tessellator_addVertex($var5, var$8, var$10, 0.0);
+ var$11 = $var8 + 320 | 0;
+ nlea_Tessellator_addVertex($var5, var$8, var$11, 0.0);
+ var$8 = var$7 + 176.0;
+ nlea_Tessellator_addVertex($var5, var$8, var$11, 0.0);
+ nlea_Tessellator_addVertex($var5, var$8, var$10, 0.0);
+ nlea_Tessellator_draw($var5);
+ nleg_EaglerAdapterGL30_glDisable(16);
+ $var9 = 0.0;
+ nleg_EaglerAdapterGL30_glDepthMask(1);
+ $var11 = 0;
+ var$14 = $var7;
+ var$15 = $var8;
+ while ($var11 < ju_ArrayList_size($var3)) {
+ $var12 = ju_ArrayList_get($var3, $var11);
+ $var13 = nms_MathHelper_floor_double($var12.$field_76332_a / 4.0) + 1 | 0;
+ nlea_Tessellator_startDrawing($var5, 145);
+ nlea_Tessellator_setColorOpaque_I($var5, nms_ProfilerResult_func_76329_a($var12));
+ nlea_Tessellator_addVertex($var5, var$14, var$15, 0.0);
+ var$18 = $var13;
+ $var14 = $var13;
+ while ($var14 >= 0) {
+ $var15 = ($var9 + $var12.$field_76332_a * $var14 / var$18) * 3.141592653589793 * 2.0 / 100.0;
+ $var16 = nms_MathHelper_sin($var15) * 160.0;
+ $var17 = nms_MathHelper_cos($var15) * 160.0 * 0.5;
+ nlea_Tessellator_addVertex($var5, var$7 + $var16, var$9 - $var17, 0.0);
+ $var14 = $var14 + (-1) | 0;
+ }
+ nlea_Tessellator_draw($var5);
+ nlea_Tessellator_startDrawing($var5, 95);
+ nlea_Tessellator_setColorOpaque_I($var5, (nms_ProfilerResult_func_76329_a($var12) & 16711422) >> 1);
+ while ($var13 >= 0) {
+ $var15 = ($var9 + $var12.$field_76332_a * $var13 / var$18) * 3.141592653589793 * 2.0 / 100.0;
+ $var16 = nms_MathHelper_sin($var15) * 160.0;
+ $var17 = nms_MathHelper_cos($var15) * 160.0 * 0.5;
+ var$8 = var$7 + $var16;
+ $var15 = var$9 - $var17;
+ nlea_Tessellator_addVertex($var5, var$8, $var15, 0.0);
+ nlea_Tessellator_addVertex($var5, var$8, $var15 + 10.0, 0.0);
+ $var13 = $var13 + (-1) | 0;
+ }
+ nlea_Tessellator_draw($var5);
+ $var9 = $var9 + $var12.$field_76332_a;
+ $var11 = $var11 + 1 | 0;
+ }
+ $var18 = jt_DecimalFormat__init_0($rt_s(304));
+ nleg_EaglerAdapterGL30_glEnable(2);
+ $var19 = $rt_s(44);
+ if (!jl_String_equals($var4.$field_76331_c, $rt_s(302)))
+ $var19 = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $var19), $rt_s(305)));
+ $var5 = !jl_String_length($var4.$field_76331_c) ? jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $var19), $rt_s(306))) : jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $var19), $var4.$field_76331_c), $rt_s(307)));
+ $var12 = $this.$fontRenderer;
+ $var14 = $var7 - 160 | 0;
+ $var13 = ($var8 - 80 | 0) - 16 | 0;
+ nms_FontRenderer_drawStringWithShadow($var12, $var5, $var14, $var13, 16777215);
+ $var12 = $this.$fontRenderer;
+ $var4 = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), jt_NumberFormat_format($var18, $var4.$field_76330_b)), $rt_s(308)));
+ $var6 = $var7 + 160 | 0;
+ nms_FontRenderer_drawStringWithShadow($var12, $var4, $var6 - nms_FontRenderer_getStringWidth($this.$fontRenderer, $var4) | 0, $var13, 16777215);
+ $var21 = 0;
+ $var13_0 = $var8 + 80 | 0;
+ $var8 = $var6 - 50 | 0;
+ while (true) {
+ if ($var21 >= ju_ArrayList_size($var3))
+ break a;
+ $var20 = ju_ArrayList_get($var3, $var21);
+ $var4 = jl_String_equals($var20.$field_76331_c, $rt_s(302)) ? jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $rt_s(44)), $rt_s(309))) : jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append1(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $rt_s(44)), $rt_s(310)), $var21 + 1 | 0), $rt_s(311)));
+ $var4 = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), $var4), $var20.$field_76331_c));
+ $var5 = $this.$fontRenderer;
+ $var7 = ($var13_0 + ($var21 * 8 | 0) | 0) + 20 | 0;
+ nms_FontRenderer_drawStringWithShadow($var5, $var4, $var14, $var7, nms_ProfilerResult_func_76329_a($var20));
+ $var4 = $this.$fontRenderer;
+ $var5 = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), jt_NumberFormat_format($var18, $var20.$field_76332_a)), $rt_s(308)));
+ nms_FontRenderer_drawStringWithShadow($var4, $var5, $var8 - nms_FontRenderer_getStringWidth($this.$fontRenderer, $var5) | 0, $var7, nms_ProfilerResult_func_76329_a($var20));
+ $var4 = $this.$fontRenderer;
+ $var5 = jl_StringBuilder_toString(jl_StringBuilder_append0(jl_StringBuilder_append0(jl_StringBuilder__init_(), jt_NumberFormat_format($var18, $var20.$field_76330_b)), $rt_s(308)));
+ nms_FontRenderer_drawStringWithShadow($var4, $var5, $var6 - nms_FontRenderer_getStringWidth($this.$fontRenderer, $var5) | 0, $var7, nms_ProfilerResult_func_76329_a($var20));
+ $var21 = $var21 + 1 | 0;
+ }
+ }
+ }
+}
+function nmc_Minecraft_shutdown($this) {
+ $this.$running = 0;
+}
+function nmc_Minecraft_setIngameFocus($this) {
+ var var$1, $ptr, $tmp;
+ $ptr = 0;
+ if ($rt_resuming()) {
+ var $thread = $rt_nativeThread();
+ $ptr = $thread.pop();var$1 = $thread.pop();$this = $thread.pop();
+ }
+ main: while (true) { switch ($ptr) {
+ case 0:
+ if ($this.$inGameHasFocus)
+ return;
+ $this.$inGameHasFocus = 1;
+ nms_MouseHelper_grabMouseCursor($this.$mouseHelper);
+ var$1 = null;
+ $ptr = 1;
+ case 1:
+ nmc_Minecraft_displayGuiScreen($this, var$1);
+ if ($rt_suspending()) {
+ break main;
+ }
+ $this.$leftClickCounter = 10000;
+ return;
+ default: $rt_invalidPointer();
+ }}
+ $rt_nativeThread().push($this, var$1, $ptr);
+}
+function nmc_Minecraft_setIngameNotInFocus($this) {
+ var var$1, var$2;
+ if ($this.$inGameHasFocus) {
+ var$1 = nms_KeyBinding_keybindArray;
+ var$2 = new ju_AbstractList$1;
+ var$2.$this$0 = var$1;
+ var$2.$modCount = var$2.$this$0.$modCount0;
+ var$2.$size1 = var$2.$this$0.$size2();
+ var$2.$removeIndex = (-1);
+ while (var$2.$index >= var$2.$size1 ? 0 : 1) {
+ var$1 = ju_AbstractList$1_next(var$2);
+ var$1.$pressTime = 0;
+ var$1.$pressed = 0;
+ }
+ $this.$inGameHasFocus = 0;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ nlea_EaglerAdapterImpl2_doc.exitPointerLock();
+ }
+}
+function nmc_Minecraft_displayInGameMenu($this) {
+ var var$1, $ptr, $tmp;
+ $ptr = 0;
+ if ($rt_resuming()) {
+ var $thread = $rt_nativeThread();
+ $ptr = $thread.pop();var$1 = $thread.pop();$this = $thread.pop();
+ }
+ main: while (true) { switch ($ptr) {
+ case 0:
+ if ($this.$currentScreen !== null)
+ return;
+ var$1 = new nms_GuiIngameMenu;
+ nms_GuiScreen__init_(var$1);
+ var$1.$updateCounter2 = 0;
+ var$1.$updateCounter = 0;
+ $ptr = 1;
+ case 1:
+ nmc_Minecraft_displayGuiScreen($this, var$1);
+ if ($rt_suspending()) {
+ break main;
+ }
+ return;
+ default: $rt_invalidPointer();
+ }}
+ $rt_nativeThread().push($this, var$1, $ptr);
+}
+function nmc_Minecraft_sendClickBlockToController($this, $par1, $par2) {
+ var $var3, $var4, $var5, var$6, $ptr, $tmp;
+ $ptr = 0;
+ if ($rt_resuming()) {
+ var $thread = $rt_nativeThread();
+ $ptr = $thread.pop();var$6 = $thread.pop();$var5 = $thread.pop();$var4 = $thread.pop();$var3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop();
+ }
+ main: while (true) { switch ($ptr) {
+ case 0:
+ if (!$par2)
+ $this.$leftClickCounter = 0;
+ if (!(!$par1 && $this.$leftClickCounter > 0)) {
+ if ($par2 && $this.$objectMouseOver !== null && $this.$objectMouseOver.$typeOfHit === nms_EnumMovingObjectType_TILE && !$par1) {
+ $var3 = $this.$objectMouseOver.$blockX;
+ $var4 = $this.$objectMouseOver.$blockY;
+ $var5 = $this.$objectMouseOver.$blockZ;
+ var$6 = $this.$playerController;
+ $par1 = $this.$objectMouseOver.$sideHit;
+ $ptr = 1;
+ continue main;
+ }
+ nms_PlayerControllerMP_resetBlockRemoving($this.$playerController);
+ }
+ return;
+ case 1:
+ nms_PlayerControllerMP_onPlayerDamageBlock(var$6, $var3, $var4, $var5, $par1);
+ if ($rt_suspending()) {
+ break main;
+ }
+ if (nms_EntityPlayer_canCurrentToolHarvestBlock($this.$thePlayer, $var3, $var4, $var5)) {
+ nms_EffectRenderer_addBlockHitEffects($this.$effectRenderer, $var3, $var4, $var5, $this.$objectMouseOver.$sideHit);
+ nms_EntityClientPlayerMP_swingItem($this.$thePlayer);
+ }
+ return;
+ default: $rt_invalidPointer();
+ }}
+ $rt_nativeThread().push($this, $par1, $par2, $var3, $var4, $var5, var$6, $ptr);
+}
+function nmc_Minecraft_displayEaglercraftText($this, $s) {
+ var var$2, var$3;
+ if ($this.$thePlayer !== null) {
+ var$2 = $this.$shownPlayerMessages;
+ if (ju_HashMap_putImpl(var$2.$backingMap, $s, var$2) !== null ? 0 : 1) {
+ var$2 = $this.$thePlayer;
+ var$3 = new jl_StringBuilder;
+ var$3.$buffer = $rt_createCharArray(16);
+ jl_AbstractStringBuilder_insert(var$3, var$3.$length, $rt_s(312));
+ jl_AbstractStringBuilder_insert(var$3, var$3.$length, $s);
+ $s = jl_String__init_0(var$3.$buffer, 0, var$3.$length);
+ nms_GuiNewChat_printChatMessageWithOptionalDeletion(var$2.$mc3.$ingameGUI.$persistantChatGUI, $s, 0);
+ }
+ }
+}
+function nmc_Minecraft_clickMouse($this, $par1) {
+ var var$2, $var2, $var3, $var9, var$6, $var4, $var5, $var6, $var7, $var8, var$12, var$13, $ptr, $tmp;
+ $ptr = 0;
+ if ($rt_resuming()) {
+ var $thread = $rt_nativeThread();
+ $ptr = $thread.pop();var$13 = $thread.pop();var$12 = $thread.pop();$var8 = $thread.pop();$var7 = $thread.pop();$var6 = $thread.pop();$var5 = $thread.pop();$var4 = $thread.pop();var$6 = $thread.pop();$var9 = $thread.pop();$var3 = $thread.pop();$var2 = $thread.pop();var$2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop();
+ }
+ main: while (true) { switch ($ptr) {
+ case 0:
+ if (!(!$par1 && $this.$leftClickCounter > 0)) {
+ if (!$par1)
+ nms_EntityClientPlayerMP_swingItem($this.$thePlayer);
+ var$2 = $rt_compare($par1, 1);
+ if (!var$2)
+ $this.$rightClickDelayTimer = 4;
+ a: {
+ $var2 = 1;
+ $var3 = nms_InventoryPlayer_getCurrentItem($this.$thePlayer.$inventory);
+ if ($this.$objectMouseOver !== null) {
+ if ($this.$objectMouseOver.$typeOfHit === nms_EnumMovingObjectType_ENTITY) {
+ if (!$par1) {
+ $var3 = $this.$playerController;
+ $var9 = $this.$thePlayer;
+ var$6 = $this.$objectMouseOver.$entityHit;
+ $ptr = 1;
+ continue main;
+ }
+ if (var$2)
+ break a;
+ $var3 = $this.$playerController;
+ $var9 = $this.$thePlayer;
+ var$6 = $this.$objectMouseOver.$entityHit;
+ $ptr = 3;
+ continue main;
+ }
+ if ($this.$objectMouseOver.$typeOfHit === nms_EnumMovingObjectType_TILE) {
+ $var4 = $this.$objectMouseOver.$blockX;
+ $var5 = $this.$objectMouseOver.$blockY;
+ $var6 = $this.$objectMouseOver.$blockZ;
+ $var7 = $this.$objectMouseOver.$sideHit;
+ if (!$par1) {
+ $var3 = $this.$playerController;
+ $par1 = $this.$objectMouseOver.$sideHit;
+ $ptr = 2;
+ continue main;
+ }
+ $var8 = $var3 === null ? 0 : $var3.$stackSize;
+ $var9 = $this.$playerController;
+ var$6 = $this.$thePlayer;
+ var$12 = $this.$theWorld;
+ var$13 = $this.$objectMouseOver.$hitVec;
+ $ptr = 4;
+ continue main;
+ }
+ } else if (!$par1 && (($this.$playerController.$currentGameType !== nms_EnumGameType_CREATIVE ? 0 : 1) ? 0 : 1))
+ $this.$leftClickCounter = 10;
+ }
+ if ($var2 && !var$2) {
+ $var9 = nms_InventoryPlayer_getCurrentItem($this.$thePlayer.$inventory);
+ if ($var9 !== null) {
+ $var3 = $this.$playerController;
+ var$6 = $this.$thePlayer;
+ var$12 = $this.$theWorld;
+ $ptr = 5;
+ continue main;
+ }
+ }
+ }
+ return;
+ case 1:
+ nms_PlayerControllerMP_attackEntity($var3, $var9, var$6);
+ if ($rt_suspending()) {
+ break main;
+ }
+ if (!var$2) {
+ $var3 = $this.$playerController;
+ $var9 = $this.$thePlayer;
+ var$6 = $this.$objectMouseOver.$entityHit;
+ $ptr = 3;
+ continue main;
+ }
+ if ($var2 && !var$2) {
+ $var9 = nms_InventoryPlayer_getCurrentItem($this.$thePlayer.$inventory);
+ if ($var9 !== null) {
+ $var3 = $this.$playerController;
+ var$6 = $this.$thePlayer;
+ var$12 = $this.$theWorld;
+ $ptr = 5;
+ continue main;
+ }
+ }
+ return;
+ case 2:
+ nms_PlayerControllerMP_clickBlock($var3, $var4, $var5, $var6, $par1);
+ if ($rt_suspending()) {
+ break main;
+ }
+ if ($var2 && !var$2) {
+ $var9 = nms_InventoryPlayer_getCurrentItem($this.$thePlayer.$inventory);
+ if ($var9 !== null) {
+ $var3 = $this.$playerController;
+ var$6 = $this.$thePlayer;
+ var$12 = $this.$theWorld;
+ $ptr = 5;
+ continue main;
+ }
+ }
+ return;
+ case 3:
+ $tmp = nms_PlayerControllerMP_func_78768_b($var3, $var9, var$6);
+ if ($rt_suspending()) {
+ break main;
+ }
+ $par1 = $tmp;
+ if ($par1)
+ $var2 = 0;
+ if ($var2 && !var$2) {
+ $var9 = nms_InventoryPlayer_getCurrentItem($this.$thePlayer.$inventory);
+ if ($var9 !== null) {
+ $var3 = $this.$playerController;
+ var$6 = $this.$thePlayer;
+ var$12 = $this.$theWorld;
+ $ptr = 5;
+ continue main;
+ }
+ }
+ return;
+ case 4:
+ $tmp = nms_PlayerControllerMP_onPlayerRightClick($var9, var$6, var$12, $var3, $var4, $var5, $var6, $var7, var$13);
+ if ($rt_suspending()) {
+ break main;
+ }
+ $par1 = $tmp;
+ if ($par1) {
+ $var2 = 0;
+ nms_EntityClientPlayerMP_swingItem($this.$thePlayer);
+ }
+ if ($var3 === null)
+ return;
+ if (!$var3.$stackSize)
+ $this.$thePlayer.$inventory.$mainInventory.data[$this.$thePlayer.$inventory.$currentItem] = null;
+ else if (!($var3.$stackSize == $var8 && !($this.$playerController.$currentGameType !== nms_EnumGameType_CREATIVE ? 0 : 1)))
+ $this.$entityRenderer.$itemRenderer0.$equippedProgress = 0.0;
+ if ($var2 && !var$2) {
+ $var9 = nms_InventoryPlayer_getCurrentItem($this.$thePlayer.$inventory);
+ if ($var9 !== null) {
+ $var3 = $this.$playerController;
+ var$6 = $this.$thePlayer;
+ var$12 = $this.$theWorld;
+ $ptr = 5;
+ continue main;
+ }
+ }
+ return;
+ case 5:
+ $tmp = nms_PlayerControllerMP_sendUseItem($var3, var$6, var$12, $var9);
+ if ($rt_suspending()) {
+ break main;
+ }
+ $par1 = $tmp;
+ if ($par1)
+ $this.$entityRenderer.$itemRenderer0.$equippedProgress = 0.0;
+ return;
+ default: $rt_invalidPointer();
+ }}
+ $rt_nativeThread().push($this, $par1, var$2, $var2, $var3, $var9, var$6, $var4, $var5, $var6, $var7, $var8, var$12, var$13, $ptr);
+}
+function nmc_Minecraft_toggleFullscreen($this) {
+ return;
+}
+function nmc_Minecraft_resize($this, $par1, $par2) {
+ var $var3, $var4, $var5, $ptr, $tmp;
+ $ptr = 0;
+ if ($rt_resuming()) {
+ var $thread = $rt_nativeThread();
+ $ptr = $thread.pop();$var5 = $thread.pop();$var4 = $thread.pop();$var3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop();
+ }
+ main: while (true) { switch ($ptr) {
+ case 0:
+ $this.$displayWidth = $par1 > 0 ? $par1 : 1;
+ $this.$displayHeight = $par2 > 0 ? $par2 : 1;
+ if ($this.$currentScreen === null)
+ return;
+ $var3 = nms_ScaledResolution__init_($this.$gameSettings, $par1, $par2);
+ $var4 = $var3.$scaledWidth;
+ $var5 = $var3.$scaledHeight;
+ $var3 = $this.$currentScreen;
+ $ptr = 1;
+ case 1:
+ nms_GuiScreen_setWorldAndResolution($var3, $this, $var4, $var5);
+ if ($rt_suspending()) {
+ break main;
+ }
+ return;
+ default: $rt_invalidPointer();
+ }}
+ $rt_nativeThread().push($this, $par1, $par2, $var3, $var4, $var5, $ptr);
+}
+function nmc_Minecraft_runTick($this) {
+ var var$1, $var8, $F3down, $var9, $var10, var$6, $ptr, $tmp;
+ $ptr = 0;
+ if ($rt_resuming()) {
+ var $thread = $rt_nativeThread();
+ $ptr = $thread.pop();var$6 = $thread.pop();$var10 = $thread.pop();$var9 = $thread.pop();$F3down = $thread.pop();$var8 = $thread.pop();var$1 = $thread.pop();$this = $thread.pop();
+ }
+ main: while (true) { switch ($ptr) {
+ case 0:
+ if ($this.$rightClickDelayTimer > 0)
+ $this.$rightClickDelayTimer = $this.$rightClickDelayTimer - 1 | 0;
+ nms_Profiler_startSection($this.$mcProfiler, $rt_s(313));
+ nms_Profiler_endStartSection($this.$mcProfiler, $rt_s(314));
+ if (!$this.$isGamePaused)
+ nms_GuiIngame_updateTick($this.$ingameGUI);
+ nms_Profiler_endStartSection($this.$mcProfiler, $rt_s(315));
+ nms_EntityRenderer_getMouseOver($this.$entityRenderer, 1.0);
+ nms_Profiler_endStartSection($this.$mcProfiler, $rt_s(316));
+ if (!$this.$isGamePaused && $this.$theWorld !== null)
+ nms_PlayerControllerMP_updateController($this.$playerController);
+ nms_Profiler_endStartSection($this.$mcProfiler, $rt_s(317));
+ if (!$this.$isGamePaused)
+ nms_RenderEngine_updateDynamicTextures($this.$renderEngine);
+ a: {
+ nle_DefaultSkinRenderer_deleteOldSkins();
+ if ($this.$currentScreen === null && $this.$thePlayer !== null) {
+ if (nms_EntityLiving_getHealth($this.$thePlayer) <= 0) {
+ var$1 = null;
+ $ptr = 1;
+ continue main;
+ }
+ if (!nms_EntityPlayer_isPlayerSleeping($this.$thePlayer))
+ break a;
+ if ($this.$theWorld === null)
+ break a;
+ var$1 = nms_GuiSleepMP__init_0();
+ $ptr = 5;
+ continue main;
+ }
+ if ($this.$currentScreen !== null && $this.$currentScreen instanceof nms_GuiSleepMP && !nms_EntityPlayer_isPlayerSleeping($this.$thePlayer)) {
+ var$1 = null;
+ $ptr = 3;
+ continue main;
+ }
+ }
+ if ($this.$currentScreen !== null)
+ $this.$leftClickCounter = 10000;
+ if ($this.$currentScreen !== null) {
+ var$1 = $this.$currentScreen;
+ $ptr = 2;
+ continue main;
+ }
+ nle_GuiScreenVoiceChannel_tickVoiceConnection();
+ if ($this.$currentScreen !== null && !$this.$currentScreen.$allowUserInput) {
+ b: {
+ if ($this.$theWorld === null) {
+ if ($this.$myNetworkManager === null)
+ break b;
+ nms_Profiler_endStartSection($this.$mcProfiler, $rt_s(318));
+ var$1 = $this.$myNetworkManager;
+ $ptr = 6;
+ continue main;
+ }
+ if ($this.$thePlayer !== null) {
+ $this.$joinPlayerCounter = $this.$joinPlayerCounter + 1 | 0;
+ if ($this.$joinPlayerCounter == 30) {
+ $this.$joinPlayerCounter = 0;
+ nms_World_joinEntityInSurroundings($this.$theWorld, $this.$thePlayer);
+ }
+ }
+ nms_Profiler_endStartSection($this.$mcProfiler, $rt_s(300));
+ if (!$this.$isGamePaused) {
+ var$1 = $this.$entityRenderer;
+ $ptr = 8;
+ continue main;
+ }
+ nms_Profiler_endStartSection($this.$mcProfiler, $rt_s(319));
+ if (!$this.$isGamePaused)
+ nms_RenderGlobal_updateClouds($this.$renderGlobal);
+ nms_Profiler_endStartSection($this.$mcProfiler, $rt_s(320));
+ if (!$this.$isGamePaused) {
+ if ($this.$theWorld.$lastLightningBolt > 0) {
+ var$1 = $this.$theWorld;
+ var$1.$lastLightningBolt = var$1.$lastLightningBolt - 1 | 0;
+ }
+ var$1 = $this.$theWorld;
+ $ptr = 10;
+ continue main;
+ }
+ if (!$this.$isGamePaused) {
+ nms_World_setAllowedSpawnTypes($this.$theWorld, $this.$theWorld.$difficultySetting <= 0 ? 0 : 1, 1);
+ var$1 = $this.$theWorld;
+ $ptr = 15;
+ continue main;
+ }
+ nms_Profiler_endStartSection($this.$mcProfiler, $rt_s(321));
+ if (!$this.$isGamePaused && $this.$theWorld !== null) {
+ var$1 = $this.$theWorld;
+ $var8 = nms_MathHelper_floor_double($this.$thePlayer.$posX);
+ $F3down = nms_MathHelper_floor_double($this.$thePlayer.$posY);
+ $var9 = nms_MathHelper_floor_double($this.$thePlayer.$posZ);
+ $ptr = 14;
+ continue main;
+ }
+ nms_Profiler_endStartSection($this.$mcProfiler, $rt_s(322));
+ if (!$this.$isGamePaused) {
+ var$1 = $this.$effectRenderer;
+ $ptr = 13;
+ continue main;
+ }
+ }
+ if ($this.$theWorld !== null) {
+ nms_SoundManager_stopTheTitleMusic($this.$sndManager);
+ nms_Profiler_endSection($this.$mcProfiler);
+ $this.$systemTime = nmc_Minecraft_getSystemTime();
+ return;
+ }
+ var$1 = $this.$sndManager;
+ $ptr = 7;
+ continue main;
+ }
+ nms_Profiler_endStartSection($this.$mcProfiler, $rt_s(323));
+ while (nlea_EaglerAdapterImpl2_mouseNext()) {
+ nms_KeyBinding_setKeyBindState(nlea_EaglerAdapterImpl2_mouseGetEventButton() - 100 | 0, nlea_EaglerAdapterImpl2_mouseGetEventButtonState());
+ if (nlea_EaglerAdapterImpl2_mouseGetEventButtonState())
+ nms_KeyBinding_onTick(nlea_EaglerAdapterImpl2_mouseGetEventButton() - 100 | 0);
+ c: {
+ if (Long_le(Long_sub(nmc_Minecraft_getSystemTime(), $this.$systemTime), Long_fromInt(200))) {
+ $var10 = nlea_EaglerAdapterImpl2_mouseGetEventDWheel();
+ if ($var10) {
+ nms_InventoryPlayer_changeCurrentItem($this.$thePlayer.$inventory, $var10);
+ if ($this.$gameSettings.$noclip) {
+ if ($var10 > 0)
+ $var10 = 1;
+ if ($var10 < 0)
+ $var10 = (-1);
+ var$1 = $this.$gameSettings;
+ var$1.$noclipRate = var$1.$noclipRate + $var10 * 0.25;
+ }
+ }
+ if ($this.$currentScreen !== null) {
+ if ($this.$currentScreen === null)
+ break c;
+ else {
+ var$1 = $this.$currentScreen;
+ $ptr = 9;
+ continue main;
+ }
+ }
+ if (!$this.$inGameHasFocus && nlea_EaglerAdapterImpl2_mouseGetEventButtonState()) {
+ $ptr = 11;
+ continue main;
+ }
+ }
+ }
+ }
+ if ($this.$leftClickCounter > 0)
+ $this.$leftClickCounter = $this.$leftClickCounter - 1 | 0;
+ nms_Profiler_endStartSection($this.$mcProfiler, $rt_s(324));
+ while (true) {
+ if (!nlea_EaglerAdapterImpl2_keysNext()) {
+ $var8 = $this.$gameSettings.$chatVisibility == 2 ? 0 : 1;
+ if (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindInventory)) {
+ var$1 = nms_GuiInventory__init_($this.$thePlayer);
+ $ptr = 12;
+ continue main;
+ }
+ while (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindDrop)) {
+ nms_EntityClientPlayerMP_dropOneItem($this.$thePlayer, nms_GuiScreen_isCtrlKeyDown());
+ }
+ if (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindChat) && $var8) {
+ var$1 = nms_GuiChat__init_0();
+ $ptr = 16;
+ continue main;
+ }
+ if ($this.$currentScreen === null && nlea_EaglerAdapterImpl2_isKeyDown(53) && $var8) {
+ var$6 = nms_GuiChat__init_1($rt_s(58));
+ $ptr = 18;
+ continue main;
+ }
+ if ($this.$gameSettings.$keyBindSprint.$pressed && !nms_Entity_isSprinting($this.$thePlayer) && nms_EntityPlayerSP_canSprint($this.$thePlayer) && !$this.$thePlayer.$isCollidedHorizontally)
+ nms_EntityPlayerSP_setSprinting($this.$thePlayer, 1);
+ d: {
+ if (!nms_EntityPlayer_isUsingItem($this.$thePlayer)) {
+ if (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindAttack)) {
+ $var8 = 0;
+ $ptr = 20;
+ continue main;
+ }
+ if (!nms_KeyBinding_isPressed($this.$gameSettings.$keyBindUseItem))
+ while (true) {
+ if (!nms_KeyBinding_isPressed($this.$gameSettings.$keyBindPickBlock))
+ break d;
+ nmc_Minecraft_clickMiddleMouseButton($this);
+ }
+ $var8 = 1;
+ $ptr = 22;
+ continue main;
+ }
+ if (!$this.$gameSettings.$keyBindUseItem.$pressed) {
+ var$1 = $this.$playerController;
+ var$6 = $this.$thePlayer;
+ $ptr = 21;
+ continue main;
+ }
+ while (true) {
+ if (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindAttack))
+ continue;
+ else
+ break;
+ }
+ while (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindUseItem)) {
+ }
+ while (true) {
+ if (!nms_KeyBinding_isPressed($this.$gameSettings.$keyBindPickBlock))
+ break d;
+ }
+ }
+ if ($this.$gameSettings.$keyBindUseItem.$pressed && !$this.$rightClickDelayTimer && !nms_EntityPlayer_isUsingItem($this.$thePlayer)) {
+ $var8 = 1;
+ $ptr = 24;
+ continue main;
+ }
+ $var8 = 0;
+ $F3down = $this.$currentScreen === null && $this.$gameSettings.$keyBindAttack.$pressed && $this.$inGameHasFocus ? 1 : 0;
+ $ptr = 23;
+ continue main;
+ }
+ nms_KeyBinding_setKeyBindState(nlea_EaglerAdapterImpl2_getEventKey(), nlea_EaglerAdapterImpl2_getEventKeyState());
+ if (nlea_EaglerAdapterImpl2_getEventKeyState())
+ nms_KeyBinding_onTick(nlea_EaglerAdapterImpl2_getEventKey());
+ $F3down = $this.$gameSettings.$keyBindFunction.$pressed && nlea_EaglerAdapterImpl2_isKeyDown(4) ? 1 : 0;
+ if (Long_gt($this.$field_83002_am, Long_ZERO)) {
+ if (Long_ge(Long_sub(nmc_Minecraft_getSystemTime(), $this.$field_83002_am), Long_fromInt(6000)))
+ break;
+ if (!(nlea_EaglerAdapterImpl2_isKeyDown(46) && $F3down))
+ $this.$field_83002_am = Long_fromInt(-1);
+ } else if ($F3down && nlea_EaglerAdapterImpl2_isKeyDown(46))
+ $this.$field_83002_am = nmc_Minecraft_getSystemTime();
+ e: {
+ if (nlea_EaglerAdapterImpl2_getEventKeyState()) {
+ if (nlea_EaglerAdapterImpl2_getEventKey() == 87)
+ nmc_Minecraft_toggleFullscreen($this);
+ else {
+ if ($this.$currentScreen !== null) {
+ var$1 = $this.$currentScreen;
+ $ptr = 17;
+ continue main;
+ }
+ if (nlea_EaglerAdapterImpl2_getEventKey() == 1) {
+ $ptr = 19;
+ continue main;
+ }
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 31)
+ nmc_Minecraft_forceReload($this);
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 20) {
+ nms_RenderEngine_refreshTextures($this.$renderEngine);
+ nms_RenderGlobal_loadRenderers($this.$renderGlobal);
+ nleg_EffectPipeline_reloadPipeline();
+ nleg_FixedFunctionShader_refreshCoreGL();
+ }
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 33) {
+ $var8 = nlea_EaglerAdapterImpl2_isKeyDown(42) | nlea_EaglerAdapterImpl2_isKeyDown(54);
+ nms_GameSettings_setOptionValue($this.$gameSettings, nms_EnumOptions_RENDER_DISTANCE, !$var8 ? 1 : (-1));
+ }
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 30)
+ nms_RenderGlobal_loadRenderers($this.$renderGlobal);
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 35) {
+ $this.$gameSettings.$advancedItemTooltips = $this.$gameSettings.$advancedItemTooltips ? 0 : 1;
+ nms_GameSettings_saveOptions($this.$gameSettings);
+ }
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 48)
+ nms_RenderManager_field_85095_o = nms_RenderManager_field_85095_o ? 0 : 1;
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 25) {
+ $this.$gameSettings.$pauseOnLostFocus = $this.$gameSettings.$pauseOnLostFocus ? 0 : 1;
+ nms_GameSettings_saveOptions($this.$gameSettings);
+ }
+ if ($this.$gameSettings.$keyBindFunction.$pressed && nlea_EaglerAdapterImpl2_getEventKey() == 2)
+ $this.$gameSettings.$hideGUI = $this.$gameSettings.$hideGUI ? 0 : 1;
+ if (nlea_EaglerAdapterImpl2_getEventKey() == 4 && $this.$gameSettings.$keyBindFunction.$pressed) {
+ $this.$gameSettings.$showDebugInfo = $this.$gameSettings.$showDebugInfo ? 0 : 1;
+ $this.$gameSettings.$showDebugProfilerChart = 1;
+ }
+ if (nlea_EaglerAdapterImpl2_getEventKey() == 6 && $this.$gameSettings.$keyBindFunction.$pressed) {
+ var$1 = $this.$gameSettings;
+ var$1.$thirdPersonView = var$1.$thirdPersonView + 1 | 0;
+ if ($this.$gameSettings.$thirdPersonView > 2)
+ $this.$gameSettings.$thirdPersonView = 0;
+ }
+ if (nlea_EaglerAdapterImpl2_getEventKey() == 9 && $this.$gameSettings.$keyBindFunction.$pressed)
+ $this.$gameSettings.$smoothCamera = $this.$gameSettings.$smoothCamera ? 0 : 1;
+ f: {
+ if (!$this.$gameSettings.$keyBindFunction.$pressed) {
+ $var9 = 0;
+ while (true) {
+ if ($var9 >= 9)
+ break f;
+ if (nlea_EaglerAdapterImpl2_getEventKey() == (2 + $var9 | 0))
+ $this.$thePlayer.$inventory.$currentItem = $var9;
+ $var9 = $var9 + 1 | 0;
+ }
+ }
+ }
+ if ($this.$gameSettings.$showDebugInfo && $this.$gameSettings.$showDebugProfilerChart && !$this.$gameSettings.$keyBindFunction.$pressed) {
+ if (nlea_EaglerAdapterImpl2_getEventKey() == 11)
+ nmc_Minecraft_updateDebugProfilerName($this, 0);
+ $var9 = 0;
+ while (true) {
+ if ($var9 >= 9)
+ break e;
+ if (nlea_EaglerAdapterImpl2_getEventKey() == (2 + $var9 | 0))
+ nmc_Minecraft_updateDebugProfilerName($this, $var9 + 1 | 0);
+ $var9 = $var9 + 1 | 0;
+ }
+ }
+ }
+ }
+ }
+ }
+ $rt_throw(jl_RuntimeException__init_($rt_s(325)));
+ case 1:
+ nmc_Minecraft_displayGuiScreen($this, var$1);
+ if ($rt_suspending()) {
+ break main;
+ }
+ if ($this.$currentScreen !== null)
+ $this.$leftClickCounter = 10000;
+ if ($this.$currentScreen !== null) {
+ var$1 = $this.$currentScreen;
+ $ptr = 2;
+ continue main;
+ }
+ nle_GuiScreenVoiceChannel_tickVoiceConnection();
+ if ($this.$currentScreen !== null && !$this.$currentScreen.$allowUserInput) {
+ g: {
+ if ($this.$theWorld === null) {
+ if ($this.$myNetworkManager === null)
+ break g;
+ nms_Profiler_endStartSection($this.$mcProfiler, $rt_s(318));
+ var$1 = $this.$myNetworkManager;
+ $ptr = 6;
+ continue main;
+ }
+ if ($this.$thePlayer !== null) {
+ $this.$joinPlayerCounter = $this.$joinPlayerCounter + 1 | 0;
+ if ($this.$joinPlayerCounter == 30) {
+ $this.$joinPlayerCounter = 0;
+ nms_World_joinEntityInSurroundings($this.$theWorld, $this.$thePlayer);
+ }
+ }
+ nms_Profiler_endStartSection($this.$mcProfiler, $rt_s(300));
+ if (!$this.$isGamePaused) {
+ var$1 = $this.$entityRenderer;
+ $ptr = 8;
+ continue main;
+ }
+ nms_Profiler_endStartSection($this.$mcProfiler, $rt_s(319));
+ if (!$this.$isGamePaused)
+ nms_RenderGlobal_updateClouds($this.$renderGlobal);
+ nms_Profiler_endStartSection($this.$mcProfiler, $rt_s(320));
+ if (!$this.$isGamePaused) {
+ if ($this.$theWorld.$lastLightningBolt > 0) {
+ var$1 = $this.$theWorld;
+ var$1.$lastLightningBolt = var$1.$lastLightningBolt - 1 | 0;
+ }
+ var$1 = $this.$theWorld;
+ $ptr = 10;
+ continue main;
+ }
+ if (!$this.$isGamePaused) {
+ nms_World_setAllowedSpawnTypes($this.$theWorld, $this.$theWorld.$difficultySetting <= 0 ? 0 : 1, 1);
+ var$1 = $this.$theWorld;
+ $ptr = 15;
+ continue main;
+ }
+ nms_Profiler_endStartSection($this.$mcProfiler, $rt_s(321));
+ if (!$this.$isGamePaused && $this.$theWorld !== null) {
+ var$1 = $this.$theWorld;
+ $var8 = nms_MathHelper_floor_double($this.$thePlayer.$posX);
+ $F3down = nms_MathHelper_floor_double($this.$thePlayer.$posY);
+ $var9 = nms_MathHelper_floor_double($this.$thePlayer.$posZ);
+ $ptr = 14;
+ continue main;
+ }
+ nms_Profiler_endStartSection($this.$mcProfiler, $rt_s(322));
+ if (!$this.$isGamePaused) {
+ var$1 = $this.$effectRenderer;
+ $ptr = 13;
+ continue main;
+ }
+ }
+ if ($this.$theWorld !== null) {
+ nms_SoundManager_stopTheTitleMusic($this.$sndManager);
+ nms_Profiler_endSection($this.$mcProfiler);
+ $this.$systemTime = nmc_Minecraft_getSystemTime();
+ return;
+ }
+ var$1 = $this.$sndManager;
+ $ptr = 7;
+ continue main;
+ }
+ nms_Profiler_endStartSection($this.$mcProfiler, $rt_s(323));
+ while (nlea_EaglerAdapterImpl2_mouseNext()) {
+ nms_KeyBinding_setKeyBindState(nlea_EaglerAdapterImpl2_mouseGetEventButton() - 100 | 0, nlea_EaglerAdapterImpl2_mouseGetEventButtonState());
+ if (nlea_EaglerAdapterImpl2_mouseGetEventButtonState())
+ nms_KeyBinding_onTick(nlea_EaglerAdapterImpl2_mouseGetEventButton() - 100 | 0);
+ h: {
+ if (Long_le(Long_sub(nmc_Minecraft_getSystemTime(), $this.$systemTime), Long_fromInt(200))) {
+ $var10 = nlea_EaglerAdapterImpl2_mouseGetEventDWheel();
+ if ($var10) {
+ nms_InventoryPlayer_changeCurrentItem($this.$thePlayer.$inventory, $var10);
+ if ($this.$gameSettings.$noclip) {
+ if ($var10 > 0)
+ $var10 = 1;
+ if ($var10 < 0)
+ $var10 = (-1);
+ var$1 = $this.$gameSettings;
+ var$1.$noclipRate = var$1.$noclipRate + $var10 * 0.25;
+ }
+ }
+ if ($this.$currentScreen !== null) {
+ if ($this.$currentScreen === null)
+ break h;
+ else {
+ var$1 = $this.$currentScreen;
+ $ptr = 9;
+ continue main;
+ }
+ }
+ if (!$this.$inGameHasFocus && nlea_EaglerAdapterImpl2_mouseGetEventButtonState()) {
+ $ptr = 11;
+ continue main;
+ }
+ }
+ }
+ }
+ if ($this.$leftClickCounter > 0)
+ $this.$leftClickCounter = $this.$leftClickCounter - 1 | 0;
+ nms_Profiler_endStartSection($this.$mcProfiler, $rt_s(324));
+ while (true) {
+ if (!nlea_EaglerAdapterImpl2_keysNext()) {
+ $var8 = $this.$gameSettings.$chatVisibility == 2 ? 0 : 1;
+ if (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindInventory)) {
+ var$1 = nms_GuiInventory__init_($this.$thePlayer);
+ $ptr = 12;
+ continue main;
+ }
+ while (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindDrop)) {
+ nms_EntityClientPlayerMP_dropOneItem($this.$thePlayer, nms_GuiScreen_isCtrlKeyDown());
+ }
+ if (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindChat) && $var8) {
+ var$1 = nms_GuiChat__init_0();
+ $ptr = 16;
+ continue main;
+ }
+ if ($this.$currentScreen === null && nlea_EaglerAdapterImpl2_isKeyDown(53) && $var8) {
+ var$6 = nms_GuiChat__init_1($rt_s(58));
+ $ptr = 18;
+ continue main;
+ }
+ if ($this.$gameSettings.$keyBindSprint.$pressed && !nms_Entity_isSprinting($this.$thePlayer) && nms_EntityPlayerSP_canSprint($this.$thePlayer) && !$this.$thePlayer.$isCollidedHorizontally)
+ nms_EntityPlayerSP_setSprinting($this.$thePlayer, 1);
+ i: {
+ if (!nms_EntityPlayer_isUsingItem($this.$thePlayer)) {
+ if (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindAttack)) {
+ $var8 = 0;
+ $ptr = 20;
+ continue main;
+ }
+ if (!nms_KeyBinding_isPressed($this.$gameSettings.$keyBindUseItem))
+ while (true) {
+ if (!nms_KeyBinding_isPressed($this.$gameSettings.$keyBindPickBlock))
+ break i;
+ nmc_Minecraft_clickMiddleMouseButton($this);
+ }
+ $var8 = 1;
+ $ptr = 22;
+ continue main;
+ }
+ if (!$this.$gameSettings.$keyBindUseItem.$pressed) {
+ var$1 = $this.$playerController;
+ var$6 = $this.$thePlayer;
+ $ptr = 21;
+ continue main;
+ }
+ while (true) {
+ if (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindAttack))
+ continue;
+ else
+ break;
+ }
+ while (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindUseItem)) {
+ }
+ while (true) {
+ if (!nms_KeyBinding_isPressed($this.$gameSettings.$keyBindPickBlock))
+ break i;
+ }
+ }
+ if ($this.$gameSettings.$keyBindUseItem.$pressed && !$this.$rightClickDelayTimer && !nms_EntityPlayer_isUsingItem($this.$thePlayer)) {
+ $var8 = 1;
+ $ptr = 24;
+ continue main;
+ }
+ $var8 = 0;
+ $F3down = $this.$currentScreen === null && $this.$gameSettings.$keyBindAttack.$pressed && $this.$inGameHasFocus ? 1 : 0;
+ $ptr = 23;
+ continue main;
+ }
+ nms_KeyBinding_setKeyBindState(nlea_EaglerAdapterImpl2_getEventKey(), nlea_EaglerAdapterImpl2_getEventKeyState());
+ if (nlea_EaglerAdapterImpl2_getEventKeyState())
+ nms_KeyBinding_onTick(nlea_EaglerAdapterImpl2_getEventKey());
+ $F3down = $this.$gameSettings.$keyBindFunction.$pressed && nlea_EaglerAdapterImpl2_isKeyDown(4) ? 1 : 0;
+ if (Long_gt($this.$field_83002_am, Long_ZERO)) {
+ if (Long_ge(Long_sub(nmc_Minecraft_getSystemTime(), $this.$field_83002_am), Long_fromInt(6000)))
+ break;
+ if (!(nlea_EaglerAdapterImpl2_isKeyDown(46) && $F3down))
+ $this.$field_83002_am = Long_fromInt(-1);
+ } else if ($F3down && nlea_EaglerAdapterImpl2_isKeyDown(46))
+ $this.$field_83002_am = nmc_Minecraft_getSystemTime();
+ j: {
+ if (nlea_EaglerAdapterImpl2_getEventKeyState()) {
+ if (nlea_EaglerAdapterImpl2_getEventKey() == 87)
+ nmc_Minecraft_toggleFullscreen($this);
+ else {
+ if ($this.$currentScreen !== null) {
+ var$1 = $this.$currentScreen;
+ $ptr = 17;
+ continue main;
+ }
+ if (nlea_EaglerAdapterImpl2_getEventKey() == 1) {
+ $ptr = 19;
+ continue main;
+ }
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 31)
+ nmc_Minecraft_forceReload($this);
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 20) {
+ nms_RenderEngine_refreshTextures($this.$renderEngine);
+ nms_RenderGlobal_loadRenderers($this.$renderGlobal);
+ nleg_EffectPipeline_reloadPipeline();
+ nleg_FixedFunctionShader_refreshCoreGL();
+ }
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 33) {
+ $var8 = nlea_EaglerAdapterImpl2_isKeyDown(42) | nlea_EaglerAdapterImpl2_isKeyDown(54);
+ nms_GameSettings_setOptionValue($this.$gameSettings, nms_EnumOptions_RENDER_DISTANCE, !$var8 ? 1 : (-1));
+ }
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 30)
+ nms_RenderGlobal_loadRenderers($this.$renderGlobal);
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 35) {
+ $this.$gameSettings.$advancedItemTooltips = $this.$gameSettings.$advancedItemTooltips ? 0 : 1;
+ nms_GameSettings_saveOptions($this.$gameSettings);
+ }
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 48)
+ nms_RenderManager_field_85095_o = nms_RenderManager_field_85095_o ? 0 : 1;
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 25) {
+ $this.$gameSettings.$pauseOnLostFocus = $this.$gameSettings.$pauseOnLostFocus ? 0 : 1;
+ nms_GameSettings_saveOptions($this.$gameSettings);
+ }
+ if ($this.$gameSettings.$keyBindFunction.$pressed && nlea_EaglerAdapterImpl2_getEventKey() == 2)
+ $this.$gameSettings.$hideGUI = $this.$gameSettings.$hideGUI ? 0 : 1;
+ if (nlea_EaglerAdapterImpl2_getEventKey() == 4 && $this.$gameSettings.$keyBindFunction.$pressed) {
+ $this.$gameSettings.$showDebugInfo = $this.$gameSettings.$showDebugInfo ? 0 : 1;
+ $this.$gameSettings.$showDebugProfilerChart = 1;
+ }
+ if (nlea_EaglerAdapterImpl2_getEventKey() == 6 && $this.$gameSettings.$keyBindFunction.$pressed) {
+ var$1 = $this.$gameSettings;
+ var$1.$thirdPersonView = var$1.$thirdPersonView + 1 | 0;
+ if ($this.$gameSettings.$thirdPersonView > 2)
+ $this.$gameSettings.$thirdPersonView = 0;
+ }
+ if (nlea_EaglerAdapterImpl2_getEventKey() == 9 && $this.$gameSettings.$keyBindFunction.$pressed)
+ $this.$gameSettings.$smoothCamera = $this.$gameSettings.$smoothCamera ? 0 : 1;
+ k: {
+ if (!$this.$gameSettings.$keyBindFunction.$pressed) {
+ $var9 = 0;
+ while (true) {
+ if ($var9 >= 9)
+ break k;
+ if (nlea_EaglerAdapterImpl2_getEventKey() == (2 + $var9 | 0))
+ $this.$thePlayer.$inventory.$currentItem = $var9;
+ $var9 = $var9 + 1 | 0;
+ }
+ }
+ }
+ if ($this.$gameSettings.$showDebugInfo && $this.$gameSettings.$showDebugProfilerChart && !$this.$gameSettings.$keyBindFunction.$pressed) {
+ if (nlea_EaglerAdapterImpl2_getEventKey() == 11)
+ nmc_Minecraft_updateDebugProfilerName($this, 0);
+ $var9 = 0;
+ while (true) {
+ if ($var9 >= 9)
+ break j;
+ if (nlea_EaglerAdapterImpl2_getEventKey() == (2 + $var9 | 0))
+ nmc_Minecraft_updateDebugProfilerName($this, $var9 + 1 | 0);
+ $var9 = $var9 + 1 | 0;
+ }
+ }
+ }
+ }
+ }
+ }
+ $rt_throw(jl_RuntimeException__init_($rt_s(325)));
+ case 2:
+ nms_GuiScreen_handleInput(var$1);
+ if ($rt_suspending()) {
+ break main;
+ }
+ if ($this.$currentScreen !== null) {
+ nms_GuiParticle_update($this.$currentScreen.$guiParticles);
+ var$1 = $this.$currentScreen;
+ $ptr = 4;
+ continue main;
+ }
+ nle_GuiScreenVoiceChannel_tickVoiceConnection();
+ if ($this.$currentScreen !== null && !$this.$currentScreen.$allowUserInput) {
+ l: {
+ if ($this.$theWorld === null) {
+ if ($this.$myNetworkManager === null)
+ break l;
+ nms_Profiler_endStartSection($this.$mcProfiler, $rt_s(318));
+ var$1 = $this.$myNetworkManager;
+ $ptr = 6;
+ continue main;
+ }
+ if ($this.$thePlayer !== null) {
+ $this.$joinPlayerCounter = $this.$joinPlayerCounter + 1 | 0;
+ if ($this.$joinPlayerCounter == 30) {
+ $this.$joinPlayerCounter = 0;
+ nms_World_joinEntityInSurroundings($this.$theWorld, $this.$thePlayer);
+ }
+ }
+ nms_Profiler_endStartSection($this.$mcProfiler, $rt_s(300));
+ if (!$this.$isGamePaused) {
+ var$1 = $this.$entityRenderer;
+ $ptr = 8;
+ continue main;
+ }
+ nms_Profiler_endStartSection($this.$mcProfiler, $rt_s(319));
+ if (!$this.$isGamePaused)
+ nms_RenderGlobal_updateClouds($this.$renderGlobal);
+ nms_Profiler_endStartSection($this.$mcProfiler, $rt_s(320));
+ if (!$this.$isGamePaused) {
+ if ($this.$theWorld.$lastLightningBolt > 0) {
+ var$1 = $this.$theWorld;
+ var$1.$lastLightningBolt = var$1.$lastLightningBolt - 1 | 0;
+ }
+ var$1 = $this.$theWorld;
+ $ptr = 10;
+ continue main;
+ }
+ if (!$this.$isGamePaused) {
+ nms_World_setAllowedSpawnTypes($this.$theWorld, $this.$theWorld.$difficultySetting <= 0 ? 0 : 1, 1);
+ var$1 = $this.$theWorld;
+ $ptr = 15;
+ continue main;
+ }
+ nms_Profiler_endStartSection($this.$mcProfiler, $rt_s(321));
+ if (!$this.$isGamePaused && $this.$theWorld !== null) {
+ var$1 = $this.$theWorld;
+ $var8 = nms_MathHelper_floor_double($this.$thePlayer.$posX);
+ $F3down = nms_MathHelper_floor_double($this.$thePlayer.$posY);
+ $var9 = nms_MathHelper_floor_double($this.$thePlayer.$posZ);
+ $ptr = 14;
+ continue main;
+ }
+ nms_Profiler_endStartSection($this.$mcProfiler, $rt_s(322));
+ if (!$this.$isGamePaused) {
+ var$1 = $this.$effectRenderer;
+ $ptr = 13;
+ continue main;
+ }
+ }
+ if ($this.$theWorld !== null) {
+ nms_SoundManager_stopTheTitleMusic($this.$sndManager);
+ nms_Profiler_endSection($this.$mcProfiler);
+ $this.$systemTime = nmc_Minecraft_getSystemTime();
+ return;
+ }
+ var$1 = $this.$sndManager;
+ $ptr = 7;
+ continue main;
+ }
+ nms_Profiler_endStartSection($this.$mcProfiler, $rt_s(323));
+ while (nlea_EaglerAdapterImpl2_mouseNext()) {
+ nms_KeyBinding_setKeyBindState(nlea_EaglerAdapterImpl2_mouseGetEventButton() - 100 | 0, nlea_EaglerAdapterImpl2_mouseGetEventButtonState());
+ if (nlea_EaglerAdapterImpl2_mouseGetEventButtonState())
+ nms_KeyBinding_onTick(nlea_EaglerAdapterImpl2_mouseGetEventButton() - 100 | 0);
+ m: {
+ if (Long_le(Long_sub(nmc_Minecraft_getSystemTime(), $this.$systemTime), Long_fromInt(200))) {
+ $var10 = nlea_EaglerAdapterImpl2_mouseGetEventDWheel();
+ if ($var10) {
+ nms_InventoryPlayer_changeCurrentItem($this.$thePlayer.$inventory, $var10);
+ if ($this.$gameSettings.$noclip) {
+ if ($var10 > 0)
+ $var10 = 1;
+ if ($var10 < 0)
+ $var10 = (-1);
+ var$1 = $this.$gameSettings;
+ var$1.$noclipRate = var$1.$noclipRate + $var10 * 0.25;
+ }
+ }
+ if ($this.$currentScreen !== null) {
+ if ($this.$currentScreen === null)
+ break m;
+ else {
+ var$1 = $this.$currentScreen;
+ $ptr = 9;
+ continue main;
+ }
+ }
+ if (!$this.$inGameHasFocus && nlea_EaglerAdapterImpl2_mouseGetEventButtonState()) {
+ $ptr = 11;
+ continue main;
+ }
+ }
+ }
+ }
+ if ($this.$leftClickCounter > 0)
+ $this.$leftClickCounter = $this.$leftClickCounter - 1 | 0;
+ nms_Profiler_endStartSection($this.$mcProfiler, $rt_s(324));
+ while (true) {
+ if (!nlea_EaglerAdapterImpl2_keysNext()) {
+ $var8 = $this.$gameSettings.$chatVisibility == 2 ? 0 : 1;
+ if (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindInventory)) {
+ var$1 = nms_GuiInventory__init_($this.$thePlayer);
+ $ptr = 12;
+ continue main;
+ }
+ while (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindDrop)) {
+ nms_EntityClientPlayerMP_dropOneItem($this.$thePlayer, nms_GuiScreen_isCtrlKeyDown());
+ }
+ if (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindChat) && $var8) {
+ var$1 = nms_GuiChat__init_0();
+ $ptr = 16;
+ continue main;
+ }
+ if ($this.$currentScreen === null && nlea_EaglerAdapterImpl2_isKeyDown(53) && $var8) {
+ var$6 = nms_GuiChat__init_1($rt_s(58));
+ $ptr = 18;
+ continue main;
+ }
+ if ($this.$gameSettings.$keyBindSprint.$pressed && !nms_Entity_isSprinting($this.$thePlayer) && nms_EntityPlayerSP_canSprint($this.$thePlayer) && !$this.$thePlayer.$isCollidedHorizontally)
+ nms_EntityPlayerSP_setSprinting($this.$thePlayer, 1);
+ n: {
+ if (!nms_EntityPlayer_isUsingItem($this.$thePlayer)) {
+ if (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindAttack)) {
+ $var8 = 0;
+ $ptr = 20;
+ continue main;
+ }
+ if (!nms_KeyBinding_isPressed($this.$gameSettings.$keyBindUseItem))
+ while (true) {
+ if (!nms_KeyBinding_isPressed($this.$gameSettings.$keyBindPickBlock))
+ break n;
+ nmc_Minecraft_clickMiddleMouseButton($this);
+ }
+ $var8 = 1;
+ $ptr = 22;
+ continue main;
+ }
+ if (!$this.$gameSettings.$keyBindUseItem.$pressed) {
+ var$1 = $this.$playerController;
+ var$6 = $this.$thePlayer;
+ $ptr = 21;
+ continue main;
+ }
+ while (true) {
+ if (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindAttack))
+ continue;
+ else
+ break;
+ }
+ while (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindUseItem)) {
+ }
+ while (true) {
+ if (!nms_KeyBinding_isPressed($this.$gameSettings.$keyBindPickBlock))
+ break n;
+ }
+ }
+ if ($this.$gameSettings.$keyBindUseItem.$pressed && !$this.$rightClickDelayTimer && !nms_EntityPlayer_isUsingItem($this.$thePlayer)) {
+ $var8 = 1;
+ $ptr = 24;
+ continue main;
+ }
+ $var8 = 0;
+ $F3down = $this.$currentScreen === null && $this.$gameSettings.$keyBindAttack.$pressed && $this.$inGameHasFocus ? 1 : 0;
+ $ptr = 23;
+ continue main;
+ }
+ nms_KeyBinding_setKeyBindState(nlea_EaglerAdapterImpl2_getEventKey(), nlea_EaglerAdapterImpl2_getEventKeyState());
+ if (nlea_EaglerAdapterImpl2_getEventKeyState())
+ nms_KeyBinding_onTick(nlea_EaglerAdapterImpl2_getEventKey());
+ $F3down = $this.$gameSettings.$keyBindFunction.$pressed && nlea_EaglerAdapterImpl2_isKeyDown(4) ? 1 : 0;
+ if (Long_gt($this.$field_83002_am, Long_ZERO)) {
+ if (Long_ge(Long_sub(nmc_Minecraft_getSystemTime(), $this.$field_83002_am), Long_fromInt(6000)))
+ break;
+ if (!(nlea_EaglerAdapterImpl2_isKeyDown(46) && $F3down))
+ $this.$field_83002_am = Long_fromInt(-1);
+ } else if ($F3down && nlea_EaglerAdapterImpl2_isKeyDown(46))
+ $this.$field_83002_am = nmc_Minecraft_getSystemTime();
+ o: {
+ if (nlea_EaglerAdapterImpl2_getEventKeyState()) {
+ if (nlea_EaglerAdapterImpl2_getEventKey() == 87)
+ nmc_Minecraft_toggleFullscreen($this);
+ else {
+ if ($this.$currentScreen !== null) {
+ var$1 = $this.$currentScreen;
+ $ptr = 17;
+ continue main;
+ }
+ if (nlea_EaglerAdapterImpl2_getEventKey() == 1) {
+ $ptr = 19;
+ continue main;
+ }
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 31)
+ nmc_Minecraft_forceReload($this);
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 20) {
+ nms_RenderEngine_refreshTextures($this.$renderEngine);
+ nms_RenderGlobal_loadRenderers($this.$renderGlobal);
+ nleg_EffectPipeline_reloadPipeline();
+ nleg_FixedFunctionShader_refreshCoreGL();
+ }
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 33) {
+ $var8 = nlea_EaglerAdapterImpl2_isKeyDown(42) | nlea_EaglerAdapterImpl2_isKeyDown(54);
+ nms_GameSettings_setOptionValue($this.$gameSettings, nms_EnumOptions_RENDER_DISTANCE, !$var8 ? 1 : (-1));
+ }
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 30)
+ nms_RenderGlobal_loadRenderers($this.$renderGlobal);
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 35) {
+ $this.$gameSettings.$advancedItemTooltips = $this.$gameSettings.$advancedItemTooltips ? 0 : 1;
+ nms_GameSettings_saveOptions($this.$gameSettings);
+ }
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 48)
+ nms_RenderManager_field_85095_o = nms_RenderManager_field_85095_o ? 0 : 1;
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 25) {
+ $this.$gameSettings.$pauseOnLostFocus = $this.$gameSettings.$pauseOnLostFocus ? 0 : 1;
+ nms_GameSettings_saveOptions($this.$gameSettings);
+ }
+ if ($this.$gameSettings.$keyBindFunction.$pressed && nlea_EaglerAdapterImpl2_getEventKey() == 2)
+ $this.$gameSettings.$hideGUI = $this.$gameSettings.$hideGUI ? 0 : 1;
+ if (nlea_EaglerAdapterImpl2_getEventKey() == 4 && $this.$gameSettings.$keyBindFunction.$pressed) {
+ $this.$gameSettings.$showDebugInfo = $this.$gameSettings.$showDebugInfo ? 0 : 1;
+ $this.$gameSettings.$showDebugProfilerChart = 1;
+ }
+ if (nlea_EaglerAdapterImpl2_getEventKey() == 6 && $this.$gameSettings.$keyBindFunction.$pressed) {
+ var$1 = $this.$gameSettings;
+ var$1.$thirdPersonView = var$1.$thirdPersonView + 1 | 0;
+ if ($this.$gameSettings.$thirdPersonView > 2)
+ $this.$gameSettings.$thirdPersonView = 0;
+ }
+ if (nlea_EaglerAdapterImpl2_getEventKey() == 9 && $this.$gameSettings.$keyBindFunction.$pressed)
+ $this.$gameSettings.$smoothCamera = $this.$gameSettings.$smoothCamera ? 0 : 1;
+ p: {
+ if (!$this.$gameSettings.$keyBindFunction.$pressed) {
+ $var9 = 0;
+ while (true) {
+ if ($var9 >= 9)
+ break p;
+ if (nlea_EaglerAdapterImpl2_getEventKey() == (2 + $var9 | 0))
+ $this.$thePlayer.$inventory.$currentItem = $var9;
+ $var9 = $var9 + 1 | 0;
+ }
+ }
+ }
+ if ($this.$gameSettings.$showDebugInfo && $this.$gameSettings.$showDebugProfilerChart && !$this.$gameSettings.$keyBindFunction.$pressed) {
+ if (nlea_EaglerAdapterImpl2_getEventKey() == 11)
+ nmc_Minecraft_updateDebugProfilerName($this, 0);
+ $var9 = 0;
+ while (true) {
+ if ($var9 >= 9)
+ break o;
+ if (nlea_EaglerAdapterImpl2_getEventKey() == (2 + $var9 | 0))
+ nmc_Minecraft_updateDebugProfilerName($this, $var9 + 1 | 0);
+ $var9 = $var9 + 1 | 0;
+ }
+ }
+ }
+ }
+ }
+ }
+ $rt_throw(jl_RuntimeException__init_($rt_s(325)));
+ case 3:
+ nmc_Minecraft_displayGuiScreen($this, var$1);
+ if ($rt_suspending()) {
+ break main;
+ }
+ if ($this.$currentScreen !== null)
+ $this.$leftClickCounter = 10000;
+ if ($this.$currentScreen !== null) {
+ var$1 = $this.$currentScreen;
+ $ptr = 2;
+ continue main;
+ }
+ nle_GuiScreenVoiceChannel_tickVoiceConnection();
+ if ($this.$currentScreen !== null && !$this.$currentScreen.$allowUserInput) {
+ g: {
+ if ($this.$theWorld === null) {
+ if ($this.$myNetworkManager === null)
+ break g;
+ nms_Profiler_endStartSection($this.$mcProfiler, $rt_s(318));
+ var$1 = $this.$myNetworkManager;
+ $ptr = 6;
+ continue main;
+ }
+ if ($this.$thePlayer !== null) {
+ $this.$joinPlayerCounter = $this.$joinPlayerCounter + 1 | 0;
+ if ($this.$joinPlayerCounter == 30) {
+ $this.$joinPlayerCounter = 0;
+ nms_World_joinEntityInSurroundings($this.$theWorld, $this.$thePlayer);
+ }
+ }
+ nms_Profiler_endStartSection($this.$mcProfiler, $rt_s(300));
+ if (!$this.$isGamePaused) {
+ var$1 = $this.$entityRenderer;
+ $ptr = 8;
+ continue main;
+ }
+ nms_Profiler_endStartSection($this.$mcProfiler, $rt_s(319));
+ if (!$this.$isGamePaused)
+ nms_RenderGlobal_updateClouds($this.$renderGlobal);
+ nms_Profiler_endStartSection($this.$mcProfiler, $rt_s(320));
+ if (!$this.$isGamePaused) {
+ if ($this.$theWorld.$lastLightningBolt > 0) {
+ var$1 = $this.$theWorld;
+ var$1.$lastLightningBolt = var$1.$lastLightningBolt - 1 | 0;
+ }
+ var$1 = $this.$theWorld;
+ $ptr = 10;
+ continue main;
+ }
+ if (!$this.$isGamePaused) {
+ nms_World_setAllowedSpawnTypes($this.$theWorld, $this.$theWorld.$difficultySetting <= 0 ? 0 : 1, 1);
+ var$1 = $this.$theWorld;
+ $ptr = 15;
+ continue main;
+ }
+ nms_Profiler_endStartSection($this.$mcProfiler, $rt_s(321));
+ if (!$this.$isGamePaused && $this.$theWorld !== null) {
+ var$1 = $this.$theWorld;
+ $var8 = nms_MathHelper_floor_double($this.$thePlayer.$posX);
+ $F3down = nms_MathHelper_floor_double($this.$thePlayer.$posY);
+ $var9 = nms_MathHelper_floor_double($this.$thePlayer.$posZ);
+ $ptr = 14;
+ continue main;
+ }
+ nms_Profiler_endStartSection($this.$mcProfiler, $rt_s(322));
+ if (!$this.$isGamePaused) {
+ var$1 = $this.$effectRenderer;
+ $ptr = 13;
+ continue main;
+ }
+ }
+ if ($this.$theWorld !== null) {
+ nms_SoundManager_stopTheTitleMusic($this.$sndManager);
+ nms_Profiler_endSection($this.$mcProfiler);
+ $this.$systemTime = nmc_Minecraft_getSystemTime();
+ return;
+ }
+ var$1 = $this.$sndManager;
+ $ptr = 7;
+ continue main;
+ }
+ nms_Profiler_endStartSection($this.$mcProfiler, $rt_s(323));
+ while (nlea_EaglerAdapterImpl2_mouseNext()) {
+ nms_KeyBinding_setKeyBindState(nlea_EaglerAdapterImpl2_mouseGetEventButton() - 100 | 0, nlea_EaglerAdapterImpl2_mouseGetEventButtonState());
+ if (nlea_EaglerAdapterImpl2_mouseGetEventButtonState())
+ nms_KeyBinding_onTick(nlea_EaglerAdapterImpl2_mouseGetEventButton() - 100 | 0);
+ h: {
+ if (Long_le(Long_sub(nmc_Minecraft_getSystemTime(), $this.$systemTime), Long_fromInt(200))) {
+ $var10 = nlea_EaglerAdapterImpl2_mouseGetEventDWheel();
+ if ($var10) {
+ nms_InventoryPlayer_changeCurrentItem($this.$thePlayer.$inventory, $var10);
+ if ($this.$gameSettings.$noclip) {
+ if ($var10 > 0)
+ $var10 = 1;
+ if ($var10 < 0)
+ $var10 = (-1);
+ var$1 = $this.$gameSettings;
+ var$1.$noclipRate = var$1.$noclipRate + $var10 * 0.25;
+ }
+ }
+ if ($this.$currentScreen !== null) {
+ if ($this.$currentScreen === null)
+ break h;
+ else {
+ var$1 = $this.$currentScreen;
+ $ptr = 9;
+ continue main;
+ }
+ }
+ if (!$this.$inGameHasFocus && nlea_EaglerAdapterImpl2_mouseGetEventButtonState()) {
+ $ptr = 11;
+ continue main;
+ }
+ }
+ }
+ }
+ if ($this.$leftClickCounter > 0)
+ $this.$leftClickCounter = $this.$leftClickCounter - 1 | 0;
+ nms_Profiler_endStartSection($this.$mcProfiler, $rt_s(324));
+ while (true) {
+ if (!nlea_EaglerAdapterImpl2_keysNext()) {
+ $var8 = $this.$gameSettings.$chatVisibility == 2 ? 0 : 1;
+ if (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindInventory)) {
+ var$1 = nms_GuiInventory__init_($this.$thePlayer);
+ $ptr = 12;
+ continue main;
+ }
+ while (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindDrop)) {
+ nms_EntityClientPlayerMP_dropOneItem($this.$thePlayer, nms_GuiScreen_isCtrlKeyDown());
+ }
+ if (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindChat) && $var8) {
+ var$1 = nms_GuiChat__init_0();
+ $ptr = 16;
+ continue main;
+ }
+ if ($this.$currentScreen === null && nlea_EaglerAdapterImpl2_isKeyDown(53) && $var8) {
+ var$6 = nms_GuiChat__init_1($rt_s(58));
+ $ptr = 18;
+ continue main;
+ }
+ if ($this.$gameSettings.$keyBindSprint.$pressed && !nms_Entity_isSprinting($this.$thePlayer) && nms_EntityPlayerSP_canSprint($this.$thePlayer) && !$this.$thePlayer.$isCollidedHorizontally)
+ nms_EntityPlayerSP_setSprinting($this.$thePlayer, 1);
+ i: {
+ if (!nms_EntityPlayer_isUsingItem($this.$thePlayer)) {
+ if (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindAttack)) {
+ $var8 = 0;
+ $ptr = 20;
+ continue main;
+ }
+ if (!nms_KeyBinding_isPressed($this.$gameSettings.$keyBindUseItem))
+ while (true) {
+ if (!nms_KeyBinding_isPressed($this.$gameSettings.$keyBindPickBlock))
+ break i;
+ nmc_Minecraft_clickMiddleMouseButton($this);
+ }
+ $var8 = 1;
+ $ptr = 22;
+ continue main;
+ }
+ if (!$this.$gameSettings.$keyBindUseItem.$pressed) {
+ var$1 = $this.$playerController;
+ var$6 = $this.$thePlayer;
+ $ptr = 21;
+ continue main;
+ }
+ while (true) {
+ if (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindAttack))
+ continue;
+ else
+ break;
+ }
+ while (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindUseItem)) {
+ }
+ while (true) {
+ if (!nms_KeyBinding_isPressed($this.$gameSettings.$keyBindPickBlock))
+ break i;
+ }
+ }
+ if ($this.$gameSettings.$keyBindUseItem.$pressed && !$this.$rightClickDelayTimer && !nms_EntityPlayer_isUsingItem($this.$thePlayer)) {
+ $var8 = 1;
+ $ptr = 24;
+ continue main;
+ }
+ $var8 = 0;
+ $F3down = $this.$currentScreen === null && $this.$gameSettings.$keyBindAttack.$pressed && $this.$inGameHasFocus ? 1 : 0;
+ $ptr = 23;
+ continue main;
+ }
+ nms_KeyBinding_setKeyBindState(nlea_EaglerAdapterImpl2_getEventKey(), nlea_EaglerAdapterImpl2_getEventKeyState());
+ if (nlea_EaglerAdapterImpl2_getEventKeyState())
+ nms_KeyBinding_onTick(nlea_EaglerAdapterImpl2_getEventKey());
+ $F3down = $this.$gameSettings.$keyBindFunction.$pressed && nlea_EaglerAdapterImpl2_isKeyDown(4) ? 1 : 0;
+ if (Long_gt($this.$field_83002_am, Long_ZERO)) {
+ if (Long_ge(Long_sub(nmc_Minecraft_getSystemTime(), $this.$field_83002_am), Long_fromInt(6000)))
+ break;
+ if (!(nlea_EaglerAdapterImpl2_isKeyDown(46) && $F3down))
+ $this.$field_83002_am = Long_fromInt(-1);
+ } else if ($F3down && nlea_EaglerAdapterImpl2_isKeyDown(46))
+ $this.$field_83002_am = nmc_Minecraft_getSystemTime();
+ j: {
+ if (nlea_EaglerAdapterImpl2_getEventKeyState()) {
+ if (nlea_EaglerAdapterImpl2_getEventKey() == 87)
+ nmc_Minecraft_toggleFullscreen($this);
+ else {
+ if ($this.$currentScreen !== null) {
+ var$1 = $this.$currentScreen;
+ $ptr = 17;
+ continue main;
+ }
+ if (nlea_EaglerAdapterImpl2_getEventKey() == 1) {
+ $ptr = 19;
+ continue main;
+ }
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 31)
+ nmc_Minecraft_forceReload($this);
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 20) {
+ nms_RenderEngine_refreshTextures($this.$renderEngine);
+ nms_RenderGlobal_loadRenderers($this.$renderGlobal);
+ nleg_EffectPipeline_reloadPipeline();
+ nleg_FixedFunctionShader_refreshCoreGL();
+ }
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 33) {
+ $var8 = nlea_EaglerAdapterImpl2_isKeyDown(42) | nlea_EaglerAdapterImpl2_isKeyDown(54);
+ nms_GameSettings_setOptionValue($this.$gameSettings, nms_EnumOptions_RENDER_DISTANCE, !$var8 ? 1 : (-1));
+ }
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 30)
+ nms_RenderGlobal_loadRenderers($this.$renderGlobal);
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 35) {
+ $this.$gameSettings.$advancedItemTooltips = $this.$gameSettings.$advancedItemTooltips ? 0 : 1;
+ nms_GameSettings_saveOptions($this.$gameSettings);
+ }
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 48)
+ nms_RenderManager_field_85095_o = nms_RenderManager_field_85095_o ? 0 : 1;
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 25) {
+ $this.$gameSettings.$pauseOnLostFocus = $this.$gameSettings.$pauseOnLostFocus ? 0 : 1;
+ nms_GameSettings_saveOptions($this.$gameSettings);
+ }
+ if ($this.$gameSettings.$keyBindFunction.$pressed && nlea_EaglerAdapterImpl2_getEventKey() == 2)
+ $this.$gameSettings.$hideGUI = $this.$gameSettings.$hideGUI ? 0 : 1;
+ if (nlea_EaglerAdapterImpl2_getEventKey() == 4 && $this.$gameSettings.$keyBindFunction.$pressed) {
+ $this.$gameSettings.$showDebugInfo = $this.$gameSettings.$showDebugInfo ? 0 : 1;
+ $this.$gameSettings.$showDebugProfilerChart = 1;
+ }
+ if (nlea_EaglerAdapterImpl2_getEventKey() == 6 && $this.$gameSettings.$keyBindFunction.$pressed) {
+ var$1 = $this.$gameSettings;
+ var$1.$thirdPersonView = var$1.$thirdPersonView + 1 | 0;
+ if ($this.$gameSettings.$thirdPersonView > 2)
+ $this.$gameSettings.$thirdPersonView = 0;
+ }
+ if (nlea_EaglerAdapterImpl2_getEventKey() == 9 && $this.$gameSettings.$keyBindFunction.$pressed)
+ $this.$gameSettings.$smoothCamera = $this.$gameSettings.$smoothCamera ? 0 : 1;
+ k: {
+ if (!$this.$gameSettings.$keyBindFunction.$pressed) {
+ $var9 = 0;
+ while (true) {
+ if ($var9 >= 9)
+ break k;
+ if (nlea_EaglerAdapterImpl2_getEventKey() == (2 + $var9 | 0))
+ $this.$thePlayer.$inventory.$currentItem = $var9;
+ $var9 = $var9 + 1 | 0;
+ }
+ }
+ }
+ if ($this.$gameSettings.$showDebugInfo && $this.$gameSettings.$showDebugProfilerChart && !$this.$gameSettings.$keyBindFunction.$pressed) {
+ if (nlea_EaglerAdapterImpl2_getEventKey() == 11)
+ nmc_Minecraft_updateDebugProfilerName($this, 0);
+ $var9 = 0;
+ while (true) {
+ if ($var9 >= 9)
+ break j;
+ if (nlea_EaglerAdapterImpl2_getEventKey() == (2 + $var9 | 0))
+ nmc_Minecraft_updateDebugProfilerName($this, $var9 + 1 | 0);
+ $var9 = $var9 + 1 | 0;
+ }
+ }
+ }
+ }
+ }
+ }
+ $rt_throw(jl_RuntimeException__init_($rt_s(325)));
+ case 4:
+ var$1.$updateScreen();
+ if ($rt_suspending()) {
+ break main;
+ }
+ nle_GuiScreenVoiceChannel_tickVoiceConnection();
+ if ($this.$currentScreen !== null && !$this.$currentScreen.$allowUserInput) {
+ q: {
+ if ($this.$theWorld === null) {
+ if ($this.$myNetworkManager === null)
+ break q;
+ nms_Profiler_endStartSection($this.$mcProfiler, $rt_s(318));
+ var$1 = $this.$myNetworkManager;
+ $ptr = 6;
+ continue main;
+ }
+ if ($this.$thePlayer !== null) {
+ $this.$joinPlayerCounter = $this.$joinPlayerCounter + 1 | 0;
+ if ($this.$joinPlayerCounter == 30) {
+ $this.$joinPlayerCounter = 0;
+ nms_World_joinEntityInSurroundings($this.$theWorld, $this.$thePlayer);
+ }
+ }
+ nms_Profiler_endStartSection($this.$mcProfiler, $rt_s(300));
+ if (!$this.$isGamePaused) {
+ var$1 = $this.$entityRenderer;
+ $ptr = 8;
+ continue main;
+ }
+ nms_Profiler_endStartSection($this.$mcProfiler, $rt_s(319));
+ if (!$this.$isGamePaused)
+ nms_RenderGlobal_updateClouds($this.$renderGlobal);
+ nms_Profiler_endStartSection($this.$mcProfiler, $rt_s(320));
+ if (!$this.$isGamePaused) {
+ if ($this.$theWorld.$lastLightningBolt > 0) {
+ var$1 = $this.$theWorld;
+ var$1.$lastLightningBolt = var$1.$lastLightningBolt - 1 | 0;
+ }
+ var$1 = $this.$theWorld;
+ $ptr = 10;
+ continue main;
+ }
+ if (!$this.$isGamePaused) {
+ nms_World_setAllowedSpawnTypes($this.$theWorld, $this.$theWorld.$difficultySetting <= 0 ? 0 : 1, 1);
+ var$1 = $this.$theWorld;
+ $ptr = 15;
+ continue main;
+ }
+ nms_Profiler_endStartSection($this.$mcProfiler, $rt_s(321));
+ if (!$this.$isGamePaused && $this.$theWorld !== null) {
+ var$1 = $this.$theWorld;
+ $var8 = nms_MathHelper_floor_double($this.$thePlayer.$posX);
+ $F3down = nms_MathHelper_floor_double($this.$thePlayer.$posY);
+ $var9 = nms_MathHelper_floor_double($this.$thePlayer.$posZ);
+ $ptr = 14;
+ continue main;
+ }
+ nms_Profiler_endStartSection($this.$mcProfiler, $rt_s(322));
+ if (!$this.$isGamePaused) {
+ var$1 = $this.$effectRenderer;
+ $ptr = 13;
+ continue main;
+ }
+ }
+ if ($this.$theWorld !== null) {
+ nms_SoundManager_stopTheTitleMusic($this.$sndManager);
+ nms_Profiler_endSection($this.$mcProfiler);
+ $this.$systemTime = nmc_Minecraft_getSystemTime();
+ return;
+ }
+ var$1 = $this.$sndManager;
+ $ptr = 7;
+ continue main;
+ }
+ nms_Profiler_endStartSection($this.$mcProfiler, $rt_s(323));
+ while (nlea_EaglerAdapterImpl2_mouseNext()) {
+ nms_KeyBinding_setKeyBindState(nlea_EaglerAdapterImpl2_mouseGetEventButton() - 100 | 0, nlea_EaglerAdapterImpl2_mouseGetEventButtonState());
+ if (nlea_EaglerAdapterImpl2_mouseGetEventButtonState())
+ nms_KeyBinding_onTick(nlea_EaglerAdapterImpl2_mouseGetEventButton() - 100 | 0);
+ r: {
+ if (Long_le(Long_sub(nmc_Minecraft_getSystemTime(), $this.$systemTime), Long_fromInt(200))) {
+ $var10 = nlea_EaglerAdapterImpl2_mouseGetEventDWheel();
+ if ($var10) {
+ nms_InventoryPlayer_changeCurrentItem($this.$thePlayer.$inventory, $var10);
+ if ($this.$gameSettings.$noclip) {
+ if ($var10 > 0)
+ $var10 = 1;
+ if ($var10 < 0)
+ $var10 = (-1);
+ var$1 = $this.$gameSettings;
+ var$1.$noclipRate = var$1.$noclipRate + $var10 * 0.25;
+ }
+ }
+ if ($this.$currentScreen !== null) {
+ if ($this.$currentScreen === null)
+ break r;
+ else {
+ var$1 = $this.$currentScreen;
+ $ptr = 9;
+ continue main;
+ }
+ }
+ if (!$this.$inGameHasFocus && nlea_EaglerAdapterImpl2_mouseGetEventButtonState()) {
+ $ptr = 11;
+ continue main;
+ }
+ }
+ }
+ }
+ if ($this.$leftClickCounter > 0)
+ $this.$leftClickCounter = $this.$leftClickCounter - 1 | 0;
+ nms_Profiler_endStartSection($this.$mcProfiler, $rt_s(324));
+ while (true) {
+ if (!nlea_EaglerAdapterImpl2_keysNext()) {
+ $var8 = $this.$gameSettings.$chatVisibility == 2 ? 0 : 1;
+ if (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindInventory)) {
+ var$1 = nms_GuiInventory__init_($this.$thePlayer);
+ $ptr = 12;
+ continue main;
+ }
+ while (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindDrop)) {
+ nms_EntityClientPlayerMP_dropOneItem($this.$thePlayer, nms_GuiScreen_isCtrlKeyDown());
+ }
+ if (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindChat) && $var8) {
+ var$1 = nms_GuiChat__init_0();
+ $ptr = 16;
+ continue main;
+ }
+ if ($this.$currentScreen === null && nlea_EaglerAdapterImpl2_isKeyDown(53) && $var8) {
+ var$6 = nms_GuiChat__init_1($rt_s(58));
+ $ptr = 18;
+ continue main;
+ }
+ if ($this.$gameSettings.$keyBindSprint.$pressed && !nms_Entity_isSprinting($this.$thePlayer) && nms_EntityPlayerSP_canSprint($this.$thePlayer) && !$this.$thePlayer.$isCollidedHorizontally)
+ nms_EntityPlayerSP_setSprinting($this.$thePlayer, 1);
+ s: {
+ if (!nms_EntityPlayer_isUsingItem($this.$thePlayer)) {
+ if (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindAttack)) {
+ $var8 = 0;
+ $ptr = 20;
+ continue main;
+ }
+ if (!nms_KeyBinding_isPressed($this.$gameSettings.$keyBindUseItem))
+ while (true) {
+ if (!nms_KeyBinding_isPressed($this.$gameSettings.$keyBindPickBlock))
+ break s;
+ nmc_Minecraft_clickMiddleMouseButton($this);
+ }
+ $var8 = 1;
+ $ptr = 22;
+ continue main;
+ }
+ if (!$this.$gameSettings.$keyBindUseItem.$pressed) {
+ var$1 = $this.$playerController;
+ var$6 = $this.$thePlayer;
+ $ptr = 21;
+ continue main;
+ }
+ while (true) {
+ if (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindAttack))
+ continue;
+ else
+ break;
+ }
+ while (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindUseItem)) {
+ }
+ while (true) {
+ if (!nms_KeyBinding_isPressed($this.$gameSettings.$keyBindPickBlock))
+ break s;
+ }
+ }
+ if ($this.$gameSettings.$keyBindUseItem.$pressed && !$this.$rightClickDelayTimer && !nms_EntityPlayer_isUsingItem($this.$thePlayer)) {
+ $var8 = 1;
+ $ptr = 24;
+ continue main;
+ }
+ $var8 = 0;
+ $F3down = $this.$currentScreen === null && $this.$gameSettings.$keyBindAttack.$pressed && $this.$inGameHasFocus ? 1 : 0;
+ $ptr = 23;
+ continue main;
+ }
+ nms_KeyBinding_setKeyBindState(nlea_EaglerAdapterImpl2_getEventKey(), nlea_EaglerAdapterImpl2_getEventKeyState());
+ if (nlea_EaglerAdapterImpl2_getEventKeyState())
+ nms_KeyBinding_onTick(nlea_EaglerAdapterImpl2_getEventKey());
+ $F3down = $this.$gameSettings.$keyBindFunction.$pressed && nlea_EaglerAdapterImpl2_isKeyDown(4) ? 1 : 0;
+ if (Long_gt($this.$field_83002_am, Long_ZERO)) {
+ if (Long_ge(Long_sub(nmc_Minecraft_getSystemTime(), $this.$field_83002_am), Long_fromInt(6000)))
+ break;
+ if (!(nlea_EaglerAdapterImpl2_isKeyDown(46) && $F3down))
+ $this.$field_83002_am = Long_fromInt(-1);
+ } else if ($F3down && nlea_EaglerAdapterImpl2_isKeyDown(46))
+ $this.$field_83002_am = nmc_Minecraft_getSystemTime();
+ t: {
+ if (nlea_EaglerAdapterImpl2_getEventKeyState()) {
+ if (nlea_EaglerAdapterImpl2_getEventKey() == 87)
+ nmc_Minecraft_toggleFullscreen($this);
+ else {
+ if ($this.$currentScreen !== null) {
+ var$1 = $this.$currentScreen;
+ $ptr = 17;
+ continue main;
+ }
+ if (nlea_EaglerAdapterImpl2_getEventKey() == 1) {
+ $ptr = 19;
+ continue main;
+ }
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 31)
+ nmc_Minecraft_forceReload($this);
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 20) {
+ nms_RenderEngine_refreshTextures($this.$renderEngine);
+ nms_RenderGlobal_loadRenderers($this.$renderGlobal);
+ nleg_EffectPipeline_reloadPipeline();
+ nleg_FixedFunctionShader_refreshCoreGL();
+ }
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 33) {
+ $var8 = nlea_EaglerAdapterImpl2_isKeyDown(42) | nlea_EaglerAdapterImpl2_isKeyDown(54);
+ nms_GameSettings_setOptionValue($this.$gameSettings, nms_EnumOptions_RENDER_DISTANCE, !$var8 ? 1 : (-1));
+ }
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 30)
+ nms_RenderGlobal_loadRenderers($this.$renderGlobal);
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 35) {
+ $this.$gameSettings.$advancedItemTooltips = $this.$gameSettings.$advancedItemTooltips ? 0 : 1;
+ nms_GameSettings_saveOptions($this.$gameSettings);
+ }
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 48)
+ nms_RenderManager_field_85095_o = nms_RenderManager_field_85095_o ? 0 : 1;
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 25) {
+ $this.$gameSettings.$pauseOnLostFocus = $this.$gameSettings.$pauseOnLostFocus ? 0 : 1;
+ nms_GameSettings_saveOptions($this.$gameSettings);
+ }
+ if ($this.$gameSettings.$keyBindFunction.$pressed && nlea_EaglerAdapterImpl2_getEventKey() == 2)
+ $this.$gameSettings.$hideGUI = $this.$gameSettings.$hideGUI ? 0 : 1;
+ if (nlea_EaglerAdapterImpl2_getEventKey() == 4 && $this.$gameSettings.$keyBindFunction.$pressed) {
+ $this.$gameSettings.$showDebugInfo = $this.$gameSettings.$showDebugInfo ? 0 : 1;
+ $this.$gameSettings.$showDebugProfilerChart = 1;
+ }
+ if (nlea_EaglerAdapterImpl2_getEventKey() == 6 && $this.$gameSettings.$keyBindFunction.$pressed) {
+ var$1 = $this.$gameSettings;
+ var$1.$thirdPersonView = var$1.$thirdPersonView + 1 | 0;
+ if ($this.$gameSettings.$thirdPersonView > 2)
+ $this.$gameSettings.$thirdPersonView = 0;
+ }
+ if (nlea_EaglerAdapterImpl2_getEventKey() == 9 && $this.$gameSettings.$keyBindFunction.$pressed)
+ $this.$gameSettings.$smoothCamera = $this.$gameSettings.$smoothCamera ? 0 : 1;
+ u: {
+ if (!$this.$gameSettings.$keyBindFunction.$pressed) {
+ $var9 = 0;
+ while (true) {
+ if ($var9 >= 9)
+ break u;
+ if (nlea_EaglerAdapterImpl2_getEventKey() == (2 + $var9 | 0))
+ $this.$thePlayer.$inventory.$currentItem = $var9;
+ $var9 = $var9 + 1 | 0;
+ }
+ }
+ }
+ if ($this.$gameSettings.$showDebugInfo && $this.$gameSettings.$showDebugProfilerChart && !$this.$gameSettings.$keyBindFunction.$pressed) {
+ if (nlea_EaglerAdapterImpl2_getEventKey() == 11)
+ nmc_Minecraft_updateDebugProfilerName($this, 0);
+ $var9 = 0;
+ while (true) {
+ if ($var9 >= 9)
+ break t;
+ if (nlea_EaglerAdapterImpl2_getEventKey() == (2 + $var9 | 0))
+ nmc_Minecraft_updateDebugProfilerName($this, $var9 + 1 | 0);
+ $var9 = $var9 + 1 | 0;
+ }
+ }
+ }
+ }
+ }
+ }
+ $rt_throw(jl_RuntimeException__init_($rt_s(325)));
+ case 5:
+ nmc_Minecraft_displayGuiScreen($this, var$1);
+ if ($rt_suspending()) {
+ break main;
+ }
+ if ($this.$currentScreen !== null)
+ $this.$leftClickCounter = 10000;
+ if ($this.$currentScreen !== null) {
+ var$1 = $this.$currentScreen;
+ $ptr = 2;
+ continue main;
+ }
+ nle_GuiScreenVoiceChannel_tickVoiceConnection();
+ if ($this.$currentScreen !== null && !$this.$currentScreen.$allowUserInput) {
+ g: {
+ if ($this.$theWorld === null) {
+ if ($this.$myNetworkManager === null)
+ break g;
+ nms_Profiler_endStartSection($this.$mcProfiler, $rt_s(318));
+ var$1 = $this.$myNetworkManager;
+ $ptr = 6;
+ continue main;
+ }
+ if ($this.$thePlayer !== null) {
+ $this.$joinPlayerCounter = $this.$joinPlayerCounter + 1 | 0;
+ if ($this.$joinPlayerCounter == 30) {
+ $this.$joinPlayerCounter = 0;
+ nms_World_joinEntityInSurroundings($this.$theWorld, $this.$thePlayer);
+ }
+ }
+ nms_Profiler_endStartSection($this.$mcProfiler, $rt_s(300));
+ if (!$this.$isGamePaused) {
+ var$1 = $this.$entityRenderer;
+ $ptr = 8;
+ continue main;
+ }
+ nms_Profiler_endStartSection($this.$mcProfiler, $rt_s(319));
+ if (!$this.$isGamePaused)
+ nms_RenderGlobal_updateClouds($this.$renderGlobal);
+ nms_Profiler_endStartSection($this.$mcProfiler, $rt_s(320));
+ if (!$this.$isGamePaused) {
+ if ($this.$theWorld.$lastLightningBolt > 0) {
+ var$1 = $this.$theWorld;
+ var$1.$lastLightningBolt = var$1.$lastLightningBolt - 1 | 0;
+ }
+ var$1 = $this.$theWorld;
+ $ptr = 10;
+ continue main;
+ }
+ if (!$this.$isGamePaused) {
+ nms_World_setAllowedSpawnTypes($this.$theWorld, $this.$theWorld.$difficultySetting <= 0 ? 0 : 1, 1);
+ var$1 = $this.$theWorld;
+ $ptr = 15;
+ continue main;
+ }
+ nms_Profiler_endStartSection($this.$mcProfiler, $rt_s(321));
+ if (!$this.$isGamePaused && $this.$theWorld !== null) {
+ var$1 = $this.$theWorld;
+ $var8 = nms_MathHelper_floor_double($this.$thePlayer.$posX);
+ $F3down = nms_MathHelper_floor_double($this.$thePlayer.$posY);
+ $var9 = nms_MathHelper_floor_double($this.$thePlayer.$posZ);
+ $ptr = 14;
+ continue main;
+ }
+ nms_Profiler_endStartSection($this.$mcProfiler, $rt_s(322));
+ if (!$this.$isGamePaused) {
+ var$1 = $this.$effectRenderer;
+ $ptr = 13;
+ continue main;
+ }
+ }
+ if ($this.$theWorld !== null) {
+ nms_SoundManager_stopTheTitleMusic($this.$sndManager);
+ nms_Profiler_endSection($this.$mcProfiler);
+ $this.$systemTime = nmc_Minecraft_getSystemTime();
+ return;
+ }
+ var$1 = $this.$sndManager;
+ $ptr = 7;
+ continue main;
+ }
+ nms_Profiler_endStartSection($this.$mcProfiler, $rt_s(323));
+ while (nlea_EaglerAdapterImpl2_mouseNext()) {
+ nms_KeyBinding_setKeyBindState(nlea_EaglerAdapterImpl2_mouseGetEventButton() - 100 | 0, nlea_EaglerAdapterImpl2_mouseGetEventButtonState());
+ if (nlea_EaglerAdapterImpl2_mouseGetEventButtonState())
+ nms_KeyBinding_onTick(nlea_EaglerAdapterImpl2_mouseGetEventButton() - 100 | 0);
+ h: {
+ if (Long_le(Long_sub(nmc_Minecraft_getSystemTime(), $this.$systemTime), Long_fromInt(200))) {
+ $var10 = nlea_EaglerAdapterImpl2_mouseGetEventDWheel();
+ if ($var10) {
+ nms_InventoryPlayer_changeCurrentItem($this.$thePlayer.$inventory, $var10);
+ if ($this.$gameSettings.$noclip) {
+ if ($var10 > 0)
+ $var10 = 1;
+ if ($var10 < 0)
+ $var10 = (-1);
+ var$1 = $this.$gameSettings;
+ var$1.$noclipRate = var$1.$noclipRate + $var10 * 0.25;
+ }
+ }
+ if ($this.$currentScreen !== null) {
+ if ($this.$currentScreen === null)
+ break h;
+ else {
+ var$1 = $this.$currentScreen;
+ $ptr = 9;
+ continue main;
+ }
+ }
+ if (!$this.$inGameHasFocus && nlea_EaglerAdapterImpl2_mouseGetEventButtonState()) {
+ $ptr = 11;
+ continue main;
+ }
+ }
+ }
+ }
+ if ($this.$leftClickCounter > 0)
+ $this.$leftClickCounter = $this.$leftClickCounter - 1 | 0;
+ nms_Profiler_endStartSection($this.$mcProfiler, $rt_s(324));
+ while (true) {
+ if (!nlea_EaglerAdapterImpl2_keysNext()) {
+ $var8 = $this.$gameSettings.$chatVisibility == 2 ? 0 : 1;
+ if (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindInventory)) {
+ var$1 = nms_GuiInventory__init_($this.$thePlayer);
+ $ptr = 12;
+ continue main;
+ }
+ while (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindDrop)) {
+ nms_EntityClientPlayerMP_dropOneItem($this.$thePlayer, nms_GuiScreen_isCtrlKeyDown());
+ }
+ if (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindChat) && $var8) {
+ var$1 = nms_GuiChat__init_0();
+ $ptr = 16;
+ continue main;
+ }
+ if ($this.$currentScreen === null && nlea_EaglerAdapterImpl2_isKeyDown(53) && $var8) {
+ var$6 = nms_GuiChat__init_1($rt_s(58));
+ $ptr = 18;
+ continue main;
+ }
+ if ($this.$gameSettings.$keyBindSprint.$pressed && !nms_Entity_isSprinting($this.$thePlayer) && nms_EntityPlayerSP_canSprint($this.$thePlayer) && !$this.$thePlayer.$isCollidedHorizontally)
+ nms_EntityPlayerSP_setSprinting($this.$thePlayer, 1);
+ i: {
+ if (!nms_EntityPlayer_isUsingItem($this.$thePlayer)) {
+ if (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindAttack)) {
+ $var8 = 0;
+ $ptr = 20;
+ continue main;
+ }
+ if (!nms_KeyBinding_isPressed($this.$gameSettings.$keyBindUseItem))
+ while (true) {
+ if (!nms_KeyBinding_isPressed($this.$gameSettings.$keyBindPickBlock))
+ break i;
+ nmc_Minecraft_clickMiddleMouseButton($this);
+ }
+ $var8 = 1;
+ $ptr = 22;
+ continue main;
+ }
+ if (!$this.$gameSettings.$keyBindUseItem.$pressed) {
+ var$1 = $this.$playerController;
+ var$6 = $this.$thePlayer;
+ $ptr = 21;
+ continue main;
+ }
+ while (true) {
+ if (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindAttack))
+ continue;
+ else
+ break;
+ }
+ while (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindUseItem)) {
+ }
+ while (true) {
+ if (!nms_KeyBinding_isPressed($this.$gameSettings.$keyBindPickBlock))
+ break i;
+ }
+ }
+ if ($this.$gameSettings.$keyBindUseItem.$pressed && !$this.$rightClickDelayTimer && !nms_EntityPlayer_isUsingItem($this.$thePlayer)) {
+ $var8 = 1;
+ $ptr = 24;
+ continue main;
+ }
+ $var8 = 0;
+ $F3down = $this.$currentScreen === null && $this.$gameSettings.$keyBindAttack.$pressed && $this.$inGameHasFocus ? 1 : 0;
+ $ptr = 23;
+ continue main;
+ }
+ nms_KeyBinding_setKeyBindState(nlea_EaglerAdapterImpl2_getEventKey(), nlea_EaglerAdapterImpl2_getEventKeyState());
+ if (nlea_EaglerAdapterImpl2_getEventKeyState())
+ nms_KeyBinding_onTick(nlea_EaglerAdapterImpl2_getEventKey());
+ $F3down = $this.$gameSettings.$keyBindFunction.$pressed && nlea_EaglerAdapterImpl2_isKeyDown(4) ? 1 : 0;
+ if (Long_gt($this.$field_83002_am, Long_ZERO)) {
+ if (Long_ge(Long_sub(nmc_Minecraft_getSystemTime(), $this.$field_83002_am), Long_fromInt(6000)))
+ break;
+ if (!(nlea_EaglerAdapterImpl2_isKeyDown(46) && $F3down))
+ $this.$field_83002_am = Long_fromInt(-1);
+ } else if ($F3down && nlea_EaglerAdapterImpl2_isKeyDown(46))
+ $this.$field_83002_am = nmc_Minecraft_getSystemTime();
+ j: {
+ if (nlea_EaglerAdapterImpl2_getEventKeyState()) {
+ if (nlea_EaglerAdapterImpl2_getEventKey() == 87)
+ nmc_Minecraft_toggleFullscreen($this);
+ else {
+ if ($this.$currentScreen !== null) {
+ var$1 = $this.$currentScreen;
+ $ptr = 17;
+ continue main;
+ }
+ if (nlea_EaglerAdapterImpl2_getEventKey() == 1) {
+ $ptr = 19;
+ continue main;
+ }
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 31)
+ nmc_Minecraft_forceReload($this);
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 20) {
+ nms_RenderEngine_refreshTextures($this.$renderEngine);
+ nms_RenderGlobal_loadRenderers($this.$renderGlobal);
+ nleg_EffectPipeline_reloadPipeline();
+ nleg_FixedFunctionShader_refreshCoreGL();
+ }
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 33) {
+ $var8 = nlea_EaglerAdapterImpl2_isKeyDown(42) | nlea_EaglerAdapterImpl2_isKeyDown(54);
+ nms_GameSettings_setOptionValue($this.$gameSettings, nms_EnumOptions_RENDER_DISTANCE, !$var8 ? 1 : (-1));
+ }
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 30)
+ nms_RenderGlobal_loadRenderers($this.$renderGlobal);
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 35) {
+ $this.$gameSettings.$advancedItemTooltips = $this.$gameSettings.$advancedItemTooltips ? 0 : 1;
+ nms_GameSettings_saveOptions($this.$gameSettings);
+ }
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 48)
+ nms_RenderManager_field_85095_o = nms_RenderManager_field_85095_o ? 0 : 1;
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 25) {
+ $this.$gameSettings.$pauseOnLostFocus = $this.$gameSettings.$pauseOnLostFocus ? 0 : 1;
+ nms_GameSettings_saveOptions($this.$gameSettings);
+ }
+ if ($this.$gameSettings.$keyBindFunction.$pressed && nlea_EaglerAdapterImpl2_getEventKey() == 2)
+ $this.$gameSettings.$hideGUI = $this.$gameSettings.$hideGUI ? 0 : 1;
+ if (nlea_EaglerAdapterImpl2_getEventKey() == 4 && $this.$gameSettings.$keyBindFunction.$pressed) {
+ $this.$gameSettings.$showDebugInfo = $this.$gameSettings.$showDebugInfo ? 0 : 1;
+ $this.$gameSettings.$showDebugProfilerChart = 1;
+ }
+ if (nlea_EaglerAdapterImpl2_getEventKey() == 6 && $this.$gameSettings.$keyBindFunction.$pressed) {
+ var$1 = $this.$gameSettings;
+ var$1.$thirdPersonView = var$1.$thirdPersonView + 1 | 0;
+ if ($this.$gameSettings.$thirdPersonView > 2)
+ $this.$gameSettings.$thirdPersonView = 0;
+ }
+ if (nlea_EaglerAdapterImpl2_getEventKey() == 9 && $this.$gameSettings.$keyBindFunction.$pressed)
+ $this.$gameSettings.$smoothCamera = $this.$gameSettings.$smoothCamera ? 0 : 1;
+ k: {
+ if (!$this.$gameSettings.$keyBindFunction.$pressed) {
+ $var9 = 0;
+ while (true) {
+ if ($var9 >= 9)
+ break k;
+ if (nlea_EaglerAdapterImpl2_getEventKey() == (2 + $var9 | 0))
+ $this.$thePlayer.$inventory.$currentItem = $var9;
+ $var9 = $var9 + 1 | 0;
+ }
+ }
+ }
+ if ($this.$gameSettings.$showDebugInfo && $this.$gameSettings.$showDebugProfilerChart && !$this.$gameSettings.$keyBindFunction.$pressed) {
+ if (nlea_EaglerAdapterImpl2_getEventKey() == 11)
+ nmc_Minecraft_updateDebugProfilerName($this, 0);
+ $var9 = 0;
+ while (true) {
+ if ($var9 >= 9)
+ break j;
+ if (nlea_EaglerAdapterImpl2_getEventKey() == (2 + $var9 | 0))
+ nmc_Minecraft_updateDebugProfilerName($this, $var9 + 1 | 0);
+ $var9 = $var9 + 1 | 0;
+ }
+ }
+ }
+ }
+ }
+ }
+ $rt_throw(jl_RuntimeException__init_($rt_s(325)));
+ case 6:
+ var$1.$processReadPackets();
+ if ($rt_suspending()) {
+ break main;
+ }
+ if ($this.$theWorld !== null) {
+ nms_SoundManager_stopTheTitleMusic($this.$sndManager);
+ nms_Profiler_endSection($this.$mcProfiler);
+ $this.$systemTime = nmc_Minecraft_getSystemTime();
+ return;
+ }
+ var$1 = $this.$sndManager;
+ $ptr = 7;
+ case 7:
+ nms_SoundManager_playTheTitleMusic(var$1);
+ if ($rt_suspending()) {
+ break main;
+ }
+ nms_Profiler_endSection($this.$mcProfiler);
+ $this.$systemTime = nmc_Minecraft_getSystemTime();
+ return;
+ case 8:
+ nms_EntityRenderer_updateRenderer(var$1);
+ if ($rt_suspending()) {
+ break main;
+ }
+ nms_Profiler_endStartSection($this.$mcProfiler, $rt_s(319));
+ if (!$this.$isGamePaused)
+ nms_RenderGlobal_updateClouds($this.$renderGlobal);
+ nms_Profiler_endStartSection($this.$mcProfiler, $rt_s(320));
+ if (!$this.$isGamePaused) {
+ if ($this.$theWorld.$lastLightningBolt > 0) {
+ var$1 = $this.$theWorld;
+ var$1.$lastLightningBolt = var$1.$lastLightningBolt - 1 | 0;
+ }
+ var$1 = $this.$theWorld;
+ $ptr = 10;
+ continue main;
+ }
+ if (!$this.$isGamePaused) {
+ nms_World_setAllowedSpawnTypes($this.$theWorld, $this.$theWorld.$difficultySetting <= 0 ? 0 : 1, 1);
+ var$1 = $this.$theWorld;
+ $ptr = 15;
+ continue main;
+ }
+ nms_Profiler_endStartSection($this.$mcProfiler, $rt_s(321));
+ if (!$this.$isGamePaused && $this.$theWorld !== null) {
+ var$1 = $this.$theWorld;
+ $var8 = nms_MathHelper_floor_double($this.$thePlayer.$posX);
+ $F3down = nms_MathHelper_floor_double($this.$thePlayer.$posY);
+ $var9 = nms_MathHelper_floor_double($this.$thePlayer.$posZ);
+ $ptr = 14;
+ continue main;
+ }
+ nms_Profiler_endStartSection($this.$mcProfiler, $rt_s(322));
+ if (!$this.$isGamePaused) {
+ var$1 = $this.$effectRenderer;
+ $ptr = 13;
+ continue main;
+ }
+ if ($this.$theWorld !== null) {
+ nms_SoundManager_stopTheTitleMusic($this.$sndManager);
+ nms_Profiler_endSection($this.$mcProfiler);
+ $this.$systemTime = nmc_Minecraft_getSystemTime();
+ return;
+ }
+ var$1 = $this.$sndManager;
+ $ptr = 7;
+ continue main;
+ case 9:
+ var$1.$handleMouseInput();
+ if ($rt_suspending()) {
+ break main;
+ }
+ while (nlea_EaglerAdapterImpl2_mouseNext()) {
+ nms_KeyBinding_setKeyBindState(nlea_EaglerAdapterImpl2_mouseGetEventButton() - 100 | 0, nlea_EaglerAdapterImpl2_mouseGetEventButtonState());
+ if (nlea_EaglerAdapterImpl2_mouseGetEventButtonState())
+ nms_KeyBinding_onTick(nlea_EaglerAdapterImpl2_mouseGetEventButton() - 100 | 0);
+ if (Long_gt(Long_sub(nmc_Minecraft_getSystemTime(), $this.$systemTime), Long_fromInt(200)))
+ continue;
+ $var10 = nlea_EaglerAdapterImpl2_mouseGetEventDWheel();
+ if ($var10) {
+ nms_InventoryPlayer_changeCurrentItem($this.$thePlayer.$inventory, $var10);
+ if ($this.$gameSettings.$noclip) {
+ if ($var10 > 0)
+ $var10 = 1;
+ if ($var10 < 0)
+ $var10 = (-1);
+ var$1 = $this.$gameSettings;
+ var$1.$noclipRate = var$1.$noclipRate + $var10 * 0.25;
+ }
+ }
+ if ($this.$currentScreen !== null) {
+ if ($this.$currentScreen === null)
+ continue;
+ else {
+ var$1 = $this.$currentScreen;
+ continue main;
+ }
+ }
+ if ($this.$inGameHasFocus)
+ continue;
+ if (!nlea_EaglerAdapterImpl2_mouseGetEventButtonState())
+ continue;
+ else {
+ $ptr = 11;
+ continue main;
+ }
+ }
+ if ($this.$leftClickCounter > 0)
+ $this.$leftClickCounter = $this.$leftClickCounter - 1 | 0;
+ nms_Profiler_endStartSection($this.$mcProfiler, $rt_s(324));
+ while (true) {
+ if (!nlea_EaglerAdapterImpl2_keysNext()) {
+ $var8 = $this.$gameSettings.$chatVisibility == 2 ? 0 : 1;
+ if (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindInventory)) {
+ var$1 = nms_GuiInventory__init_($this.$thePlayer);
+ $ptr = 12;
+ continue main;
+ }
+ while (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindDrop)) {
+ nms_EntityClientPlayerMP_dropOneItem($this.$thePlayer, nms_GuiScreen_isCtrlKeyDown());
+ }
+ if (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindChat) && $var8) {
+ var$1 = nms_GuiChat__init_0();
+ $ptr = 16;
+ continue main;
+ }
+ if ($this.$currentScreen === null && nlea_EaglerAdapterImpl2_isKeyDown(53) && $var8) {
+ var$6 = nms_GuiChat__init_1($rt_s(58));
+ $ptr = 18;
+ continue main;
+ }
+ if ($this.$gameSettings.$keyBindSprint.$pressed && !nms_Entity_isSprinting($this.$thePlayer) && nms_EntityPlayerSP_canSprint($this.$thePlayer) && !$this.$thePlayer.$isCollidedHorizontally)
+ nms_EntityPlayerSP_setSprinting($this.$thePlayer, 1);
+ v: {
+ if (!nms_EntityPlayer_isUsingItem($this.$thePlayer)) {
+ if (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindAttack)) {
+ $var8 = 0;
+ $ptr = 20;
+ continue main;
+ }
+ if (!nms_KeyBinding_isPressed($this.$gameSettings.$keyBindUseItem))
+ while (true) {
+ if (!nms_KeyBinding_isPressed($this.$gameSettings.$keyBindPickBlock))
+ break v;
+ nmc_Minecraft_clickMiddleMouseButton($this);
+ }
+ $var8 = 1;
+ $ptr = 22;
+ continue main;
+ }
+ if (!$this.$gameSettings.$keyBindUseItem.$pressed) {
+ var$1 = $this.$playerController;
+ var$6 = $this.$thePlayer;
+ $ptr = 21;
+ continue main;
+ }
+ while (true) {
+ if (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindAttack))
+ continue;
+ else
+ break;
+ }
+ while (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindUseItem)) {
+ }
+ while (true) {
+ if (!nms_KeyBinding_isPressed($this.$gameSettings.$keyBindPickBlock))
+ break v;
+ }
+ }
+ if ($this.$gameSettings.$keyBindUseItem.$pressed && !$this.$rightClickDelayTimer && !nms_EntityPlayer_isUsingItem($this.$thePlayer)) {
+ $var8 = 1;
+ $ptr = 24;
+ continue main;
+ }
+ $var8 = 0;
+ $F3down = $this.$currentScreen === null && $this.$gameSettings.$keyBindAttack.$pressed && $this.$inGameHasFocus ? 1 : 0;
+ $ptr = 23;
+ continue main;
+ }
+ nms_KeyBinding_setKeyBindState(nlea_EaglerAdapterImpl2_getEventKey(), nlea_EaglerAdapterImpl2_getEventKeyState());
+ if (nlea_EaglerAdapterImpl2_getEventKeyState())
+ nms_KeyBinding_onTick(nlea_EaglerAdapterImpl2_getEventKey());
+ $F3down = $this.$gameSettings.$keyBindFunction.$pressed && nlea_EaglerAdapterImpl2_isKeyDown(4) ? 1 : 0;
+ if (Long_gt($this.$field_83002_am, Long_ZERO)) {
+ if (Long_ge(Long_sub(nmc_Minecraft_getSystemTime(), $this.$field_83002_am), Long_fromInt(6000)))
+ break;
+ if (!(nlea_EaglerAdapterImpl2_isKeyDown(46) && $F3down))
+ $this.$field_83002_am = Long_fromInt(-1);
+ } else if ($F3down && nlea_EaglerAdapterImpl2_isKeyDown(46))
+ $this.$field_83002_am = nmc_Minecraft_getSystemTime();
+ w: {
+ if (nlea_EaglerAdapterImpl2_getEventKeyState()) {
+ if (nlea_EaglerAdapterImpl2_getEventKey() == 87)
+ nmc_Minecraft_toggleFullscreen($this);
+ else {
+ if ($this.$currentScreen !== null) {
+ var$1 = $this.$currentScreen;
+ $ptr = 17;
+ continue main;
+ }
+ if (nlea_EaglerAdapterImpl2_getEventKey() == 1) {
+ $ptr = 19;
+ continue main;
+ }
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 31)
+ nmc_Minecraft_forceReload($this);
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 20) {
+ nms_RenderEngine_refreshTextures($this.$renderEngine);
+ nms_RenderGlobal_loadRenderers($this.$renderGlobal);
+ nleg_EffectPipeline_reloadPipeline();
+ nleg_FixedFunctionShader_refreshCoreGL();
+ }
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 33) {
+ $var8 = nlea_EaglerAdapterImpl2_isKeyDown(42) | nlea_EaglerAdapterImpl2_isKeyDown(54);
+ nms_GameSettings_setOptionValue($this.$gameSettings, nms_EnumOptions_RENDER_DISTANCE, !$var8 ? 1 : (-1));
+ }
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 30)
+ nms_RenderGlobal_loadRenderers($this.$renderGlobal);
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 35) {
+ $this.$gameSettings.$advancedItemTooltips = $this.$gameSettings.$advancedItemTooltips ? 0 : 1;
+ nms_GameSettings_saveOptions($this.$gameSettings);
+ }
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 48)
+ nms_RenderManager_field_85095_o = nms_RenderManager_field_85095_o ? 0 : 1;
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 25) {
+ $this.$gameSettings.$pauseOnLostFocus = $this.$gameSettings.$pauseOnLostFocus ? 0 : 1;
+ nms_GameSettings_saveOptions($this.$gameSettings);
+ }
+ if ($this.$gameSettings.$keyBindFunction.$pressed && nlea_EaglerAdapterImpl2_getEventKey() == 2)
+ $this.$gameSettings.$hideGUI = $this.$gameSettings.$hideGUI ? 0 : 1;
+ if (nlea_EaglerAdapterImpl2_getEventKey() == 4 && $this.$gameSettings.$keyBindFunction.$pressed) {
+ $this.$gameSettings.$showDebugInfo = $this.$gameSettings.$showDebugInfo ? 0 : 1;
+ $this.$gameSettings.$showDebugProfilerChart = 1;
+ }
+ if (nlea_EaglerAdapterImpl2_getEventKey() == 6 && $this.$gameSettings.$keyBindFunction.$pressed) {
+ var$1 = $this.$gameSettings;
+ var$1.$thirdPersonView = var$1.$thirdPersonView + 1 | 0;
+ if ($this.$gameSettings.$thirdPersonView > 2)
+ $this.$gameSettings.$thirdPersonView = 0;
+ }
+ if (nlea_EaglerAdapterImpl2_getEventKey() == 9 && $this.$gameSettings.$keyBindFunction.$pressed)
+ $this.$gameSettings.$smoothCamera = $this.$gameSettings.$smoothCamera ? 0 : 1;
+ x: {
+ if (!$this.$gameSettings.$keyBindFunction.$pressed) {
+ $var9 = 0;
+ while (true) {
+ if ($var9 >= 9)
+ break x;
+ if (nlea_EaglerAdapterImpl2_getEventKey() == (2 + $var9 | 0))
+ $this.$thePlayer.$inventory.$currentItem = $var9;
+ $var9 = $var9 + 1 | 0;
+ }
+ }
+ }
+ if ($this.$gameSettings.$showDebugInfo && $this.$gameSettings.$showDebugProfilerChart && !$this.$gameSettings.$keyBindFunction.$pressed) {
+ if (nlea_EaglerAdapterImpl2_getEventKey() == 11)
+ nmc_Minecraft_updateDebugProfilerName($this, 0);
+ $var9 = 0;
+ while (true) {
+ if ($var9 >= 9)
+ break w;
+ if (nlea_EaglerAdapterImpl2_getEventKey() == (2 + $var9 | 0))
+ nmc_Minecraft_updateDebugProfilerName($this, $var9 + 1 | 0);
+ $var9 = $var9 + 1 | 0;
+ }
+ }
+ }
+ }
+ }
+ }
+ $rt_throw(jl_RuntimeException__init_($rt_s(325)));
+ case 10:
+ nms_World_updateEntities(var$1);
+ if ($rt_suspending()) {
+ break main;
+ }
+ if (!$this.$isGamePaused) {
+ nms_World_setAllowedSpawnTypes($this.$theWorld, $this.$theWorld.$difficultySetting <= 0 ? 0 : 1, 1);
+ var$1 = $this.$theWorld;
+ $ptr = 15;
+ continue main;
+ }
+ nms_Profiler_endStartSection($this.$mcProfiler, $rt_s(321));
+ if (!$this.$isGamePaused && $this.$theWorld !== null) {
+ var$1 = $this.$theWorld;
+ $var8 = nms_MathHelper_floor_double($this.$thePlayer.$posX);
+ $F3down = nms_MathHelper_floor_double($this.$thePlayer.$posY);
+ $var9 = nms_MathHelper_floor_double($this.$thePlayer.$posZ);
+ $ptr = 14;
+ continue main;
+ }
+ nms_Profiler_endStartSection($this.$mcProfiler, $rt_s(322));
+ if (!$this.$isGamePaused) {
+ var$1 = $this.$effectRenderer;
+ $ptr = 13;
+ continue main;
+ }
+ if ($this.$theWorld !== null) {
+ nms_SoundManager_stopTheTitleMusic($this.$sndManager);
+ nms_Profiler_endSection($this.$mcProfiler);
+ $this.$systemTime = nmc_Minecraft_getSystemTime();
+ return;
+ }
+ var$1 = $this.$sndManager;
+ $ptr = 7;
+ continue main;
+ case 11:
+ nmc_Minecraft_setIngameFocus($this);
+ if ($rt_suspending()) {
+ break main;
+ }
+ while (nlea_EaglerAdapterImpl2_mouseNext()) {
+ nms_KeyBinding_setKeyBindState(nlea_EaglerAdapterImpl2_mouseGetEventButton() - 100 | 0, nlea_EaglerAdapterImpl2_mouseGetEventButtonState());
+ if (nlea_EaglerAdapterImpl2_mouseGetEventButtonState())
+ nms_KeyBinding_onTick(nlea_EaglerAdapterImpl2_mouseGetEventButton() - 100 | 0);
+ if (Long_gt(Long_sub(nmc_Minecraft_getSystemTime(), $this.$systemTime), Long_fromInt(200)))
+ continue;
+ $var10 = nlea_EaglerAdapterImpl2_mouseGetEventDWheel();
+ if ($var10) {
+ nms_InventoryPlayer_changeCurrentItem($this.$thePlayer.$inventory, $var10);
+ if ($this.$gameSettings.$noclip) {
+ if ($var10 > 0)
+ $var10 = 1;
+ if ($var10 < 0)
+ $var10 = (-1);
+ var$1 = $this.$gameSettings;
+ var$1.$noclipRate = var$1.$noclipRate + $var10 * 0.25;
+ }
+ }
+ if ($this.$currentScreen !== null) {
+ if ($this.$currentScreen === null)
+ continue;
+ else {
+ var$1 = $this.$currentScreen;
+ $ptr = 9;
+ continue main;
+ }
+ }
+ if ($this.$inGameHasFocus)
+ continue;
+ if (!nlea_EaglerAdapterImpl2_mouseGetEventButtonState())
+ continue;
+ else {
+ continue main;
+ }
+ }
+ if ($this.$leftClickCounter > 0)
+ $this.$leftClickCounter = $this.$leftClickCounter - 1 | 0;
+ nms_Profiler_endStartSection($this.$mcProfiler, $rt_s(324));
+ while (true) {
+ if (!nlea_EaglerAdapterImpl2_keysNext()) {
+ $var8 = $this.$gameSettings.$chatVisibility == 2 ? 0 : 1;
+ if (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindInventory)) {
+ var$1 = nms_GuiInventory__init_($this.$thePlayer);
+ $ptr = 12;
+ continue main;
+ }
+ while (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindDrop)) {
+ nms_EntityClientPlayerMP_dropOneItem($this.$thePlayer, nms_GuiScreen_isCtrlKeyDown());
+ }
+ if (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindChat) && $var8) {
+ var$1 = nms_GuiChat__init_0();
+ $ptr = 16;
+ continue main;
+ }
+ if ($this.$currentScreen === null && nlea_EaglerAdapterImpl2_isKeyDown(53) && $var8) {
+ var$6 = nms_GuiChat__init_1($rt_s(58));
+ $ptr = 18;
+ continue main;
+ }
+ if ($this.$gameSettings.$keyBindSprint.$pressed && !nms_Entity_isSprinting($this.$thePlayer) && nms_EntityPlayerSP_canSprint($this.$thePlayer) && !$this.$thePlayer.$isCollidedHorizontally)
+ nms_EntityPlayerSP_setSprinting($this.$thePlayer, 1);
+ v: {
+ if (!nms_EntityPlayer_isUsingItem($this.$thePlayer)) {
+ if (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindAttack)) {
+ $var8 = 0;
+ $ptr = 20;
+ continue main;
+ }
+ if (!nms_KeyBinding_isPressed($this.$gameSettings.$keyBindUseItem))
+ while (true) {
+ if (!nms_KeyBinding_isPressed($this.$gameSettings.$keyBindPickBlock))
+ break v;
+ nmc_Minecraft_clickMiddleMouseButton($this);
+ }
+ $var8 = 1;
+ $ptr = 22;
+ continue main;
+ }
+ if (!$this.$gameSettings.$keyBindUseItem.$pressed) {
+ var$1 = $this.$playerController;
+ var$6 = $this.$thePlayer;
+ $ptr = 21;
+ continue main;
+ }
+ while (true) {
+ if (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindAttack))
+ continue;
+ else
+ break;
+ }
+ while (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindUseItem)) {
+ }
+ while (true) {
+ if (!nms_KeyBinding_isPressed($this.$gameSettings.$keyBindPickBlock))
+ break v;
+ }
+ }
+ if ($this.$gameSettings.$keyBindUseItem.$pressed && !$this.$rightClickDelayTimer && !nms_EntityPlayer_isUsingItem($this.$thePlayer)) {
+ $var8 = 1;
+ $ptr = 24;
+ continue main;
+ }
+ $var8 = 0;
+ $F3down = $this.$currentScreen === null && $this.$gameSettings.$keyBindAttack.$pressed && $this.$inGameHasFocus ? 1 : 0;
+ $ptr = 23;
+ continue main;
+ }
+ nms_KeyBinding_setKeyBindState(nlea_EaglerAdapterImpl2_getEventKey(), nlea_EaglerAdapterImpl2_getEventKeyState());
+ if (nlea_EaglerAdapterImpl2_getEventKeyState())
+ nms_KeyBinding_onTick(nlea_EaglerAdapterImpl2_getEventKey());
+ $F3down = $this.$gameSettings.$keyBindFunction.$pressed && nlea_EaglerAdapterImpl2_isKeyDown(4) ? 1 : 0;
+ if (Long_gt($this.$field_83002_am, Long_ZERO)) {
+ if (Long_ge(Long_sub(nmc_Minecraft_getSystemTime(), $this.$field_83002_am), Long_fromInt(6000)))
+ break;
+ if (!(nlea_EaglerAdapterImpl2_isKeyDown(46) && $F3down))
+ $this.$field_83002_am = Long_fromInt(-1);
+ } else if ($F3down && nlea_EaglerAdapterImpl2_isKeyDown(46))
+ $this.$field_83002_am = nmc_Minecraft_getSystemTime();
+ w: {
+ if (nlea_EaglerAdapterImpl2_getEventKeyState()) {
+ if (nlea_EaglerAdapterImpl2_getEventKey() == 87)
+ nmc_Minecraft_toggleFullscreen($this);
+ else {
+ if ($this.$currentScreen !== null) {
+ var$1 = $this.$currentScreen;
+ $ptr = 17;
+ continue main;
+ }
+ if (nlea_EaglerAdapterImpl2_getEventKey() == 1) {
+ $ptr = 19;
+ continue main;
+ }
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 31)
+ nmc_Minecraft_forceReload($this);
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 20) {
+ nms_RenderEngine_refreshTextures($this.$renderEngine);
+ nms_RenderGlobal_loadRenderers($this.$renderGlobal);
+ nleg_EffectPipeline_reloadPipeline();
+ nleg_FixedFunctionShader_refreshCoreGL();
+ }
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 33) {
+ $var8 = nlea_EaglerAdapterImpl2_isKeyDown(42) | nlea_EaglerAdapterImpl2_isKeyDown(54);
+ nms_GameSettings_setOptionValue($this.$gameSettings, nms_EnumOptions_RENDER_DISTANCE, !$var8 ? 1 : (-1));
+ }
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 30)
+ nms_RenderGlobal_loadRenderers($this.$renderGlobal);
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 35) {
+ $this.$gameSettings.$advancedItemTooltips = $this.$gameSettings.$advancedItemTooltips ? 0 : 1;
+ nms_GameSettings_saveOptions($this.$gameSettings);
+ }
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 48)
+ nms_RenderManager_field_85095_o = nms_RenderManager_field_85095_o ? 0 : 1;
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 25) {
+ $this.$gameSettings.$pauseOnLostFocus = $this.$gameSettings.$pauseOnLostFocus ? 0 : 1;
+ nms_GameSettings_saveOptions($this.$gameSettings);
+ }
+ if ($this.$gameSettings.$keyBindFunction.$pressed && nlea_EaglerAdapterImpl2_getEventKey() == 2)
+ $this.$gameSettings.$hideGUI = $this.$gameSettings.$hideGUI ? 0 : 1;
+ if (nlea_EaglerAdapterImpl2_getEventKey() == 4 && $this.$gameSettings.$keyBindFunction.$pressed) {
+ $this.$gameSettings.$showDebugInfo = $this.$gameSettings.$showDebugInfo ? 0 : 1;
+ $this.$gameSettings.$showDebugProfilerChart = 1;
+ }
+ if (nlea_EaglerAdapterImpl2_getEventKey() == 6 && $this.$gameSettings.$keyBindFunction.$pressed) {
+ var$1 = $this.$gameSettings;
+ var$1.$thirdPersonView = var$1.$thirdPersonView + 1 | 0;
+ if ($this.$gameSettings.$thirdPersonView > 2)
+ $this.$gameSettings.$thirdPersonView = 0;
+ }
+ if (nlea_EaglerAdapterImpl2_getEventKey() == 9 && $this.$gameSettings.$keyBindFunction.$pressed)
+ $this.$gameSettings.$smoothCamera = $this.$gameSettings.$smoothCamera ? 0 : 1;
+ x: {
+ if (!$this.$gameSettings.$keyBindFunction.$pressed) {
+ $var9 = 0;
+ while (true) {
+ if ($var9 >= 9)
+ break x;
+ if (nlea_EaglerAdapterImpl2_getEventKey() == (2 + $var9 | 0))
+ $this.$thePlayer.$inventory.$currentItem = $var9;
+ $var9 = $var9 + 1 | 0;
+ }
+ }
+ }
+ if ($this.$gameSettings.$showDebugInfo && $this.$gameSettings.$showDebugProfilerChart && !$this.$gameSettings.$keyBindFunction.$pressed) {
+ if (nlea_EaglerAdapterImpl2_getEventKey() == 11)
+ nmc_Minecraft_updateDebugProfilerName($this, 0);
+ $var9 = 0;
+ while (true) {
+ if ($var9 >= 9)
+ break w;
+ if (nlea_EaglerAdapterImpl2_getEventKey() == (2 + $var9 | 0))
+ nmc_Minecraft_updateDebugProfilerName($this, $var9 + 1 | 0);
+ $var9 = $var9 + 1 | 0;
+ }
+ }
+ }
+ }
+ }
+ }
+ $rt_throw(jl_RuntimeException__init_($rt_s(325)));
+ case 12:
+ nmc_Minecraft_displayGuiScreen($this, var$1);
+ if ($rt_suspending()) {
+ break main;
+ }
+ if (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindInventory)) {
+ var$1 = nms_GuiInventory__init_($this.$thePlayer);
+ continue main;
+ }
+ while (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindDrop)) {
+ nms_EntityClientPlayerMP_dropOneItem($this.$thePlayer, nms_GuiScreen_isCtrlKeyDown());
+ }
+ if (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindChat) && $var8) {
+ var$1 = nms_GuiChat__init_0();
+ $ptr = 16;
+ continue main;
+ }
+ if ($this.$currentScreen === null && nlea_EaglerAdapterImpl2_isKeyDown(53) && $var8) {
+ var$6 = nms_GuiChat__init_1($rt_s(58));
+ $ptr = 18;
+ continue main;
+ }
+ if ($this.$gameSettings.$keyBindSprint.$pressed && !nms_Entity_isSprinting($this.$thePlayer) && nms_EntityPlayerSP_canSprint($this.$thePlayer) && !$this.$thePlayer.$isCollidedHorizontally)
+ nms_EntityPlayerSP_setSprinting($this.$thePlayer, 1);
+ r: {
+ if (!nms_EntityPlayer_isUsingItem($this.$thePlayer)) {
+ if (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindAttack)) {
+ $var8 = 0;
+ $ptr = 20;
+ continue main;
+ }
+ if (!nms_KeyBinding_isPressed($this.$gameSettings.$keyBindUseItem))
+ while (true) {
+ if (!nms_KeyBinding_isPressed($this.$gameSettings.$keyBindPickBlock))
+ break r;
+ nmc_Minecraft_clickMiddleMouseButton($this);
+ }
+ $var8 = 1;
+ $ptr = 22;
+ continue main;
+ }
+ if (!$this.$gameSettings.$keyBindUseItem.$pressed) {
+ var$1 = $this.$playerController;
+ var$6 = $this.$thePlayer;
+ $ptr = 21;
+ continue main;
+ }
+ while (true) {
+ if (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindAttack))
+ continue;
+ else
+ break;
+ }
+ while (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindUseItem)) {
+ }
+ while (true) {
+ if (!nms_KeyBinding_isPressed($this.$gameSettings.$keyBindPickBlock))
+ break r;
+ }
+ }
+ if ($this.$gameSettings.$keyBindUseItem.$pressed && !$this.$rightClickDelayTimer && !nms_EntityPlayer_isUsingItem($this.$thePlayer)) {
+ $var8 = 1;
+ $ptr = 24;
+ continue main;
+ }
+ $var8 = 0;
+ $F3down = $this.$currentScreen === null && $this.$gameSettings.$keyBindAttack.$pressed && $this.$inGameHasFocus ? 1 : 0;
+ $ptr = 23;
+ continue main;
+ case 13:
+ nms_EffectRenderer_updateEffects(var$1);
+ if ($rt_suspending()) {
+ break main;
+ }
+ if ($this.$theWorld !== null) {
+ nms_SoundManager_stopTheTitleMusic($this.$sndManager);
+ nms_Profiler_endSection($this.$mcProfiler);
+ $this.$systemTime = nmc_Minecraft_getSystemTime();
+ return;
+ }
+ var$1 = $this.$sndManager;
+ $ptr = 7;
+ continue main;
+ case 14:
+ nms_WorldClient_doVoidFogParticles(var$1, $var8, $F3down, $var9);
+ if ($rt_suspending()) {
+ break main;
+ }
+ nms_Profiler_endStartSection($this.$mcProfiler, $rt_s(322));
+ if (!$this.$isGamePaused) {
+ var$1 = $this.$effectRenderer;
+ $ptr = 13;
+ continue main;
+ }
+ if ($this.$theWorld !== null) {
+ nms_SoundManager_stopTheTitleMusic($this.$sndManager);
+ nms_Profiler_endSection($this.$mcProfiler);
+ $this.$systemTime = nmc_Minecraft_getSystemTime();
+ return;
+ }
+ var$1 = $this.$sndManager;
+ $ptr = 7;
+ continue main;
+ case 15:
+ nms_WorldClient_tick(var$1);
+ if ($rt_suspending()) {
+ break main;
+ }
+ nms_Profiler_endStartSection($this.$mcProfiler, $rt_s(321));
+ if (!$this.$isGamePaused && $this.$theWorld !== null) {
+ var$1 = $this.$theWorld;
+ $var8 = nms_MathHelper_floor_double($this.$thePlayer.$posX);
+ $F3down = nms_MathHelper_floor_double($this.$thePlayer.$posY);
+ $var9 = nms_MathHelper_floor_double($this.$thePlayer.$posZ);
+ $ptr = 14;
+ continue main;
+ }
+ nms_Profiler_endStartSection($this.$mcProfiler, $rt_s(322));
+ if (!$this.$isGamePaused) {
+ var$1 = $this.$effectRenderer;
+ $ptr = 13;
+ continue main;
+ }
+ if ($this.$theWorld !== null) {
+ nms_SoundManager_stopTheTitleMusic($this.$sndManager);
+ nms_Profiler_endSection($this.$mcProfiler);
+ $this.$systemTime = nmc_Minecraft_getSystemTime();
+ return;
+ }
+ var$1 = $this.$sndManager;
+ $ptr = 7;
+ continue main;
+ case 16:
+ nmc_Minecraft_displayGuiScreen($this, var$1);
+ if ($rt_suspending()) {
+ break main;
+ }
+ if (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindChat) && $var8) {
+ var$1 = nms_GuiChat__init_0();
+ continue main;
+ }
+ if ($this.$currentScreen === null && nlea_EaglerAdapterImpl2_isKeyDown(53) && $var8) {
+ var$6 = nms_GuiChat__init_1($rt_s(58));
+ $ptr = 18;
+ continue main;
+ }
+ if ($this.$gameSettings.$keyBindSprint.$pressed && !nms_Entity_isSprinting($this.$thePlayer) && nms_EntityPlayerSP_canSprint($this.$thePlayer) && !$this.$thePlayer.$isCollidedHorizontally)
+ nms_EntityPlayerSP_setSprinting($this.$thePlayer, 1);
+ a: {
+ if (!nms_EntityPlayer_isUsingItem($this.$thePlayer)) {
+ if (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindAttack)) {
+ $var8 = 0;
+ $ptr = 20;
+ continue main;
+ }
+ if (!nms_KeyBinding_isPressed($this.$gameSettings.$keyBindUseItem))
+ while (true) {
+ if (!nms_KeyBinding_isPressed($this.$gameSettings.$keyBindPickBlock))
+ break a;
+ nmc_Minecraft_clickMiddleMouseButton($this);
+ }
+ $var8 = 1;
+ $ptr = 22;
+ continue main;
+ }
+ if (!$this.$gameSettings.$keyBindUseItem.$pressed) {
+ var$1 = $this.$playerController;
+ var$6 = $this.$thePlayer;
+ $ptr = 21;
+ continue main;
+ }
+ while (true) {
+ if (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindAttack))
+ continue;
+ else
+ break;
+ }
+ while (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindUseItem)) {
+ }
+ while (true) {
+ if (!nms_KeyBinding_isPressed($this.$gameSettings.$keyBindPickBlock))
+ break a;
+ }
+ }
+ if ($this.$gameSettings.$keyBindUseItem.$pressed && !$this.$rightClickDelayTimer && !nms_EntityPlayer_isUsingItem($this.$thePlayer)) {
+ $var8 = 1;
+ $ptr = 24;
+ continue main;
+ }
+ $var8 = 0;
+ $F3down = $this.$currentScreen === null && $this.$gameSettings.$keyBindAttack.$pressed && $this.$inGameHasFocus ? 1 : 0;
+ $ptr = 23;
+ continue main;
+ case 17:
+ nms_GuiScreen_handleKeyboardInput(var$1);
+ if ($rt_suspending()) {
+ break main;
+ }
+ y: while (true) {
+ a: {
+ if (!$this.$gameSettings.$keyBindFunction.$pressed) {
+ $var9 = 0;
+ while (true) {
+ if ($var9 >= 9)
+ break a;
+ if (nlea_EaglerAdapterImpl2_getEventKey() == (2 + $var9 | 0))
+ $this.$thePlayer.$inventory.$currentItem = $var9;
+ $var9 = $var9 + 1 | 0;
+ }
+ }
+ }
+ m: {
+ if ($this.$gameSettings.$showDebugInfo && $this.$gameSettings.$showDebugProfilerChart && !$this.$gameSettings.$keyBindFunction.$pressed) {
+ if (nlea_EaglerAdapterImpl2_getEventKey() == 11)
+ nmc_Minecraft_updateDebugProfilerName($this, 0);
+ $var9 = 0;
+ while (true) {
+ if ($var9 >= 9)
+ break m;
+ if (nlea_EaglerAdapterImpl2_getEventKey() == (2 + $var9 | 0))
+ nmc_Minecraft_updateDebugProfilerName($this, $var9 + 1 | 0);
+ $var9 = $var9 + 1 | 0;
+ }
+ }
+ }
+ while (true) {
+ if (!nlea_EaglerAdapterImpl2_keysNext()) {
+ $var8 = $this.$gameSettings.$chatVisibility == 2 ? 0 : 1;
+ if (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindInventory)) {
+ var$1 = nms_GuiInventory__init_($this.$thePlayer);
+ $ptr = 12;
+ continue main;
+ }
+ while (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindDrop)) {
+ nms_EntityClientPlayerMP_dropOneItem($this.$thePlayer, nms_GuiScreen_isCtrlKeyDown());
+ }
+ if (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindChat) && $var8) {
+ var$1 = nms_GuiChat__init_0();
+ $ptr = 16;
+ continue main;
+ }
+ if ($this.$currentScreen === null && nlea_EaglerAdapterImpl2_isKeyDown(53) && $var8) {
+ var$6 = nms_GuiChat__init_1($rt_s(58));
+ $ptr = 18;
+ continue main;
+ }
+ if ($this.$gameSettings.$keyBindSprint.$pressed && !nms_Entity_isSprinting($this.$thePlayer) && nms_EntityPlayerSP_canSprint($this.$thePlayer) && !$this.$thePlayer.$isCollidedHorizontally)
+ nms_EntityPlayerSP_setSprinting($this.$thePlayer, 1);
+ u: {
+ if (!nms_EntityPlayer_isUsingItem($this.$thePlayer)) {
+ if (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindAttack)) {
+ $var8 = 0;
+ $ptr = 20;
+ continue main;
+ }
+ if (!nms_KeyBinding_isPressed($this.$gameSettings.$keyBindUseItem))
+ while (true) {
+ if (!nms_KeyBinding_isPressed($this.$gameSettings.$keyBindPickBlock))
+ break u;
+ nmc_Minecraft_clickMiddleMouseButton($this);
+ }
+ $var8 = 1;
+ $ptr = 22;
+ continue main;
+ }
+ if (!$this.$gameSettings.$keyBindUseItem.$pressed) {
+ var$1 = $this.$playerController;
+ var$6 = $this.$thePlayer;
+ $ptr = 21;
+ continue main;
+ }
+ while (true) {
+ if (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindAttack))
+ continue;
+ else
+ break;
+ }
+ while (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindUseItem)) {
+ }
+ while (true) {
+ if (!nms_KeyBinding_isPressed($this.$gameSettings.$keyBindPickBlock))
+ break u;
+ }
+ }
+ if ($this.$gameSettings.$keyBindUseItem.$pressed && !$this.$rightClickDelayTimer && !nms_EntityPlayer_isUsingItem($this.$thePlayer)) {
+ $var8 = 1;
+ $ptr = 24;
+ continue main;
+ }
+ $var8 = 0;
+ $F3down = $this.$currentScreen === null && $this.$gameSettings.$keyBindAttack.$pressed && $this.$inGameHasFocus ? 1 : 0;
+ $ptr = 23;
+ continue main;
+ }
+ nms_KeyBinding_setKeyBindState(nlea_EaglerAdapterImpl2_getEventKey(), nlea_EaglerAdapterImpl2_getEventKeyState());
+ if (nlea_EaglerAdapterImpl2_getEventKeyState())
+ nms_KeyBinding_onTick(nlea_EaglerAdapterImpl2_getEventKey());
+ $F3down = $this.$gameSettings.$keyBindFunction.$pressed && nlea_EaglerAdapterImpl2_isKeyDown(4) ? 1 : 0;
+ if (Long_gt($this.$field_83002_am, Long_ZERO)) {
+ if (Long_ge(Long_sub(nmc_Minecraft_getSystemTime(), $this.$field_83002_am), Long_fromInt(6000)))
+ break y;
+ if (!(nlea_EaglerAdapterImpl2_isKeyDown(46) && $F3down))
+ $this.$field_83002_am = Long_fromInt(-1);
+ } else if ($F3down && nlea_EaglerAdapterImpl2_isKeyDown(46))
+ $this.$field_83002_am = nmc_Minecraft_getSystemTime();
+ if (!nlea_EaglerAdapterImpl2_getEventKeyState())
+ continue;
+ if (nlea_EaglerAdapterImpl2_getEventKey() != 87)
+ break;
+ nmc_Minecraft_toggleFullscreen($this);
+ }
+ if ($this.$currentScreen !== null) {
+ var$1 = $this.$currentScreen;
+ continue main;
+ }
+ if (nlea_EaglerAdapterImpl2_getEventKey() == 1) {
+ $ptr = 19;
+ continue main;
+ }
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 31)
+ nmc_Minecraft_forceReload($this);
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 20) {
+ nms_RenderEngine_refreshTextures($this.$renderEngine);
+ nms_RenderGlobal_loadRenderers($this.$renderGlobal);
+ nleg_EffectPipeline_reloadPipeline();
+ nleg_FixedFunctionShader_refreshCoreGL();
+ }
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 33) {
+ $var8 = nlea_EaglerAdapterImpl2_isKeyDown(42) | nlea_EaglerAdapterImpl2_isKeyDown(54);
+ nms_GameSettings_setOptionValue($this.$gameSettings, nms_EnumOptions_RENDER_DISTANCE, !$var8 ? 1 : (-1));
+ }
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 30)
+ nms_RenderGlobal_loadRenderers($this.$renderGlobal);
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 35) {
+ $this.$gameSettings.$advancedItemTooltips = $this.$gameSettings.$advancedItemTooltips ? 0 : 1;
+ nms_GameSettings_saveOptions($this.$gameSettings);
+ }
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 48)
+ nms_RenderManager_field_85095_o = nms_RenderManager_field_85095_o ? 0 : 1;
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 25) {
+ $this.$gameSettings.$pauseOnLostFocus = $this.$gameSettings.$pauseOnLostFocus ? 0 : 1;
+ nms_GameSettings_saveOptions($this.$gameSettings);
+ }
+ if ($this.$gameSettings.$keyBindFunction.$pressed && nlea_EaglerAdapterImpl2_getEventKey() == 2)
+ $this.$gameSettings.$hideGUI = $this.$gameSettings.$hideGUI ? 0 : 1;
+ if (nlea_EaglerAdapterImpl2_getEventKey() == 4 && $this.$gameSettings.$keyBindFunction.$pressed) {
+ $this.$gameSettings.$showDebugInfo = $this.$gameSettings.$showDebugInfo ? 0 : 1;
+ $this.$gameSettings.$showDebugProfilerChart = 1;
+ }
+ if (nlea_EaglerAdapterImpl2_getEventKey() == 6 && $this.$gameSettings.$keyBindFunction.$pressed) {
+ var$1 = $this.$gameSettings;
+ var$1.$thirdPersonView = var$1.$thirdPersonView + 1 | 0;
+ if ($this.$gameSettings.$thirdPersonView > 2)
+ $this.$gameSettings.$thirdPersonView = 0;
+ }
+ if (nlea_EaglerAdapterImpl2_getEventKey() != 9)
+ continue;
+ if (!$this.$gameSettings.$keyBindFunction.$pressed)
+ continue;
+ $this.$gameSettings.$smoothCamera = $this.$gameSettings.$smoothCamera ? 0 : 1;
+ }
+ $rt_throw(jl_RuntimeException__init_($rt_s(325)));
+ case 18:
+ nmc_Minecraft_displayGuiScreen($this, var$6);
+ if ($rt_suspending()) {
+ break main;
+ }
+ if ($this.$gameSettings.$keyBindSprint.$pressed && !nms_Entity_isSprinting($this.$thePlayer) && nms_EntityPlayerSP_canSprint($this.$thePlayer) && !$this.$thePlayer.$isCollidedHorizontally)
+ nms_EntityPlayerSP_setSprinting($this.$thePlayer, 1);
+ z: {
+ if (!nms_EntityPlayer_isUsingItem($this.$thePlayer)) {
+ if (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindAttack)) {
+ $var8 = 0;
+ $ptr = 20;
+ continue main;
+ }
+ if (!nms_KeyBinding_isPressed($this.$gameSettings.$keyBindUseItem))
+ while (true) {
+ if (!nms_KeyBinding_isPressed($this.$gameSettings.$keyBindPickBlock))
+ break z;
+ nmc_Minecraft_clickMiddleMouseButton($this);
+ }
+ $var8 = 1;
+ $ptr = 22;
+ continue main;
+ }
+ if (!$this.$gameSettings.$keyBindUseItem.$pressed) {
+ var$1 = $this.$playerController;
+ var$6 = $this.$thePlayer;
+ $ptr = 21;
+ continue main;
+ }
+ while (true) {
+ if (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindAttack))
+ continue;
+ else
+ break;
+ }
+ while (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindUseItem)) {
+ }
+ while (true) {
+ if (!nms_KeyBinding_isPressed($this.$gameSettings.$keyBindPickBlock))
+ break z;
+ }
+ }
+ if ($this.$gameSettings.$keyBindUseItem.$pressed && !$this.$rightClickDelayTimer && !nms_EntityPlayer_isUsingItem($this.$thePlayer)) {
+ $var8 = 1;
+ $ptr = 24;
+ continue main;
+ }
+ $var8 = 0;
+ $F3down = $this.$currentScreen === null && $this.$gameSettings.$keyBindAttack.$pressed && $this.$inGameHasFocus ? 1 : 0;
+ $ptr = 23;
+ continue main;
+ case 19:
+ nmc_Minecraft_displayInGameMenu($this);
+ if ($rt_suspending()) {
+ break main;
+ }
+ y: while (true) {
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 31)
+ nmc_Minecraft_forceReload($this);
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 20) {
+ nms_RenderEngine_refreshTextures($this.$renderEngine);
+ nms_RenderGlobal_loadRenderers($this.$renderGlobal);
+ nleg_EffectPipeline_reloadPipeline();
+ nleg_FixedFunctionShader_refreshCoreGL();
+ }
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 33) {
+ $var8 = nlea_EaglerAdapterImpl2_isKeyDown(42) | nlea_EaglerAdapterImpl2_isKeyDown(54);
+ nms_GameSettings_setOptionValue($this.$gameSettings, nms_EnumOptions_RENDER_DISTANCE, !$var8 ? 1 : (-1));
+ }
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 30)
+ nms_RenderGlobal_loadRenderers($this.$renderGlobal);
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 35) {
+ $this.$gameSettings.$advancedItemTooltips = $this.$gameSettings.$advancedItemTooltips ? 0 : 1;
+ nms_GameSettings_saveOptions($this.$gameSettings);
+ }
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 48)
+ nms_RenderManager_field_85095_o = nms_RenderManager_field_85095_o ? 0 : 1;
+ if ($F3down && nlea_EaglerAdapterImpl2_getEventKey() == 25) {
+ $this.$gameSettings.$pauseOnLostFocus = $this.$gameSettings.$pauseOnLostFocus ? 0 : 1;
+ nms_GameSettings_saveOptions($this.$gameSettings);
+ }
+ if ($this.$gameSettings.$keyBindFunction.$pressed && nlea_EaglerAdapterImpl2_getEventKey() == 2)
+ $this.$gameSettings.$hideGUI = $this.$gameSettings.$hideGUI ? 0 : 1;
+ if (nlea_EaglerAdapterImpl2_getEventKey() == 4 && $this.$gameSettings.$keyBindFunction.$pressed) {
+ $this.$gameSettings.$showDebugInfo = $this.$gameSettings.$showDebugInfo ? 0 : 1;
+ $this.$gameSettings.$showDebugProfilerChart = 1;
+ }
+ if (nlea_EaglerAdapterImpl2_getEventKey() == 6 && $this.$gameSettings.$keyBindFunction.$pressed) {
+ var$1 = $this.$gameSettings;
+ var$1.$thirdPersonView = var$1.$thirdPersonView + 1 | 0;
+ if ($this.$gameSettings.$thirdPersonView > 2)
+ $this.$gameSettings.$thirdPersonView = 0;
+ }
+ if (nlea_EaglerAdapterImpl2_getEventKey() == 9 && $this.$gameSettings.$keyBindFunction.$pressed)
+ $this.$gameSettings.$smoothCamera = $this.$gameSettings.$smoothCamera ? 0 : 1;
+ ba: {
+ if (!$this.$gameSettings.$keyBindFunction.$pressed) {
+ $var9 = 0;
+ while (true) {
+ if ($var9 >= 9)
+ break ba;
+ if (nlea_EaglerAdapterImpl2_getEventKey() == (2 + $var9 | 0))
+ $this.$thePlayer.$inventory.$currentItem = $var9;
+ $var9 = $var9 + 1 | 0;
+ }
+ }
+ }
+ bb: {
+ if ($this.$gameSettings.$showDebugInfo && $this.$gameSettings.$showDebugProfilerChart && !$this.$gameSettings.$keyBindFunction.$pressed) {
+ if (nlea_EaglerAdapterImpl2_getEventKey() == 11)
+ nmc_Minecraft_updateDebugProfilerName($this, 0);
+ $var9 = 0;
+ while (true) {
+ if ($var9 >= 9)
+ break bb;
+ if (nlea_EaglerAdapterImpl2_getEventKey() == (2 + $var9 | 0))
+ nmc_Minecraft_updateDebugProfilerName($this, $var9 + 1 | 0);
+ $var9 = $var9 + 1 | 0;
+ }
+ }
+ }
+ while (true) {
+ if (!nlea_EaglerAdapterImpl2_keysNext()) {
+ $var8 = $this.$gameSettings.$chatVisibility == 2 ? 0 : 1;
+ if (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindInventory)) {
+ var$1 = nms_GuiInventory__init_($this.$thePlayer);
+ $ptr = 12;
+ continue main;
+ }
+ while (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindDrop)) {
+ nms_EntityClientPlayerMP_dropOneItem($this.$thePlayer, nms_GuiScreen_isCtrlKeyDown());
+ }
+ if (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindChat) && $var8) {
+ var$1 = nms_GuiChat__init_0();
+ $ptr = 16;
+ continue main;
+ }
+ if ($this.$currentScreen === null && nlea_EaglerAdapterImpl2_isKeyDown(53) && $var8) {
+ var$6 = nms_GuiChat__init_1($rt_s(58));
+ $ptr = 18;
+ continue main;
+ }
+ if ($this.$gameSettings.$keyBindSprint.$pressed && !nms_Entity_isSprinting($this.$thePlayer) && nms_EntityPlayerSP_canSprint($this.$thePlayer) && !$this.$thePlayer.$isCollidedHorizontally)
+ nms_EntityPlayerSP_setSprinting($this.$thePlayer, 1);
+ p: {
+ if (!nms_EntityPlayer_isUsingItem($this.$thePlayer)) {
+ if (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindAttack)) {
+ $var8 = 0;
+ $ptr = 20;
+ continue main;
+ }
+ if (!nms_KeyBinding_isPressed($this.$gameSettings.$keyBindUseItem))
+ while (true) {
+ if (!nms_KeyBinding_isPressed($this.$gameSettings.$keyBindPickBlock))
+ break p;
+ nmc_Minecraft_clickMiddleMouseButton($this);
+ }
+ $var8 = 1;
+ $ptr = 22;
+ continue main;
+ }
+ if (!$this.$gameSettings.$keyBindUseItem.$pressed) {
+ var$1 = $this.$playerController;
+ var$6 = $this.$thePlayer;
+ $ptr = 21;
+ continue main;
+ }
+ while (true) {
+ if (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindAttack))
+ continue;
+ else
+ break;
+ }
+ while (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindUseItem)) {
+ }
+ while (true) {
+ if (!nms_KeyBinding_isPressed($this.$gameSettings.$keyBindPickBlock))
+ break p;
+ }
+ }
+ if ($this.$gameSettings.$keyBindUseItem.$pressed && !$this.$rightClickDelayTimer && !nms_EntityPlayer_isUsingItem($this.$thePlayer)) {
+ $var8 = 1;
+ $ptr = 24;
+ continue main;
+ }
+ $var8 = 0;
+ $F3down = $this.$currentScreen === null && $this.$gameSettings.$keyBindAttack.$pressed && $this.$inGameHasFocus ? 1 : 0;
+ $ptr = 23;
+ continue main;
+ }
+ nms_KeyBinding_setKeyBindState(nlea_EaglerAdapterImpl2_getEventKey(), nlea_EaglerAdapterImpl2_getEventKeyState());
+ if (nlea_EaglerAdapterImpl2_getEventKeyState())
+ nms_KeyBinding_onTick(nlea_EaglerAdapterImpl2_getEventKey());
+ $F3down = $this.$gameSettings.$keyBindFunction.$pressed && nlea_EaglerAdapterImpl2_isKeyDown(4) ? 1 : 0;
+ if (Long_gt($this.$field_83002_am, Long_ZERO)) {
+ if (Long_ge(Long_sub(nmc_Minecraft_getSystemTime(), $this.$field_83002_am), Long_fromInt(6000)))
+ break y;
+ if (!(nlea_EaglerAdapterImpl2_isKeyDown(46) && $F3down))
+ $this.$field_83002_am = Long_fromInt(-1);
+ } else if ($F3down && nlea_EaglerAdapterImpl2_isKeyDown(46))
+ $this.$field_83002_am = nmc_Minecraft_getSystemTime();
+ if (!nlea_EaglerAdapterImpl2_getEventKeyState())
+ continue;
+ if (nlea_EaglerAdapterImpl2_getEventKey() != 87)
+ break;
+ nmc_Minecraft_toggleFullscreen($this);
+ }
+ if ($this.$currentScreen !== null) {
+ var$1 = $this.$currentScreen;
+ $ptr = 17;
+ continue main;
+ }
+ if (nlea_EaglerAdapterImpl2_getEventKey() != 1)
+ continue;
+ else {
+ continue main;
+ }
+ }
+ $rt_throw(jl_RuntimeException__init_($rt_s(325)));
+ case 20:
+ nmc_Minecraft_clickMouse($this, $var8);
+ if ($rt_suspending()) {
+ break main;
+ }
+ if (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindAttack)) {
+ $var8 = 0;
+ continue main;
+ }
+ if (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindUseItem)) {
+ $var8 = 1;
+ $ptr = 22;
+ continue main;
+ }
+ while (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindPickBlock)) {
+ nmc_Minecraft_clickMiddleMouseButton($this);
+ }
+ if ($this.$gameSettings.$keyBindUseItem.$pressed && !$this.$rightClickDelayTimer && !nms_EntityPlayer_isUsingItem($this.$thePlayer)) {
+ $var8 = 1;
+ $ptr = 24;
+ continue main;
+ }
+ $var8 = 0;
+ $F3down = $this.$currentScreen === null && $this.$gameSettings.$keyBindAttack.$pressed && $this.$inGameHasFocus ? 1 : 0;
+ $ptr = 23;
+ continue main;
+ case 21:
+ nms_PlayerControllerMP_onStoppedUsingItem(var$1, var$6);
+ if ($rt_suspending()) {
+ break main;
+ }
+ while (true) {
+ if (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindAttack))
+ continue;
+ else
+ break;
+ }
+ while (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindUseItem)) {
+ }
+ while (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindPickBlock)) {
+ }
+ if ($this.$gameSettings.$keyBindUseItem.$pressed && !$this.$rightClickDelayTimer && !nms_EntityPlayer_isUsingItem($this.$thePlayer)) {
+ $var8 = 1;
+ $ptr = 24;
+ continue main;
+ }
+ $var8 = 0;
+ $F3down = $this.$currentScreen === null && $this.$gameSettings.$keyBindAttack.$pressed && $this.$inGameHasFocus ? 1 : 0;
+ $ptr = 23;
+ continue main;
+ case 22:
+ nmc_Minecraft_clickMouse($this, $var8);
+ if ($rt_suspending()) {
+ break main;
+ }
+ if (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindUseItem)) {
+ $var8 = 1;
+ continue main;
+ }
+ while (nms_KeyBinding_isPressed($this.$gameSettings.$keyBindPickBlock)) {
+ nmc_Minecraft_clickMiddleMouseButton($this);
+ }
+ if ($this.$gameSettings.$keyBindUseItem.$pressed && !$this.$rightClickDelayTimer && !nms_EntityPlayer_isUsingItem($this.$thePlayer)) {
+ $var8 = 1;
+ $ptr = 24;
+ continue main;
+ }
+ $var8 = 0;
+ $F3down = $this.$currentScreen === null && $this.$gameSettings.$keyBindAttack.$pressed && $this.$inGameHasFocus ? 1 : 0;
+ $ptr = 23;
+ case 23:
+ nmc_Minecraft_sendClickBlockToController($this, $var8, $F3down);
+ if ($rt_suspending()) {
+ break main;
+ }
+ bc: {
+ if ($this.$theWorld === null) {
+ if ($this.$myNetworkManager === null)
+ break bc;
+ nms_Profiler_endStartSection($this.$mcProfiler, $rt_s(318));
+ var$1 = $this.$myNetworkManager;
+ $ptr = 6;
+ continue main;
+ }
+ if ($this.$thePlayer !== null) {
+ $this.$joinPlayerCounter = $this.$joinPlayerCounter + 1 | 0;
+ if ($this.$joinPlayerCounter == 30) {
+ $this.$joinPlayerCounter = 0;
+ nms_World_joinEntityInSurroundings($this.$theWorld, $this.$thePlayer);
+ }
+ }
+ nms_Profiler_endStartSection($this.$mcProfiler, $rt_s(300));
+ if (!$this.$isGamePaused) {
+ var$1 = $this.$entityRenderer;
+ $ptr = 8;
+ continue main;
+ }
+ nms_Profiler_endStartSection($this.$mcProfiler, $rt_s(319));
+ if (!$this.$isGamePaused)
+ nms_RenderGlobal_updateClouds($this.$renderGlobal);
+ nms_Profiler_endStartSection($this.$mcProfiler, $rt_s(320));
+ if (!$this.$isGamePaused) {
+ if ($this.$theWorld.$lastLightningBolt > 0) {
+ var$1 = $this.$theWorld;
+ var$1.$lastLightningBolt = var$1.$lastLightningBolt - 1 | 0;
+ }
+ var$1 = $this.$theWorld;
+ $ptr = 10;
+ continue main;
+ }
+ if (!$this.$isGamePaused) {
+ nms_World_setAllowedSpawnTypes($this.$theWorld, $this.$theWorld.$difficultySetting <= 0 ? 0 : 1, 1);
+ var$1 = $this.$theWorld;
+ $ptr = 15;
+ continue main;
+ }
+ nms_Profiler_endStartSection($this.$mcProfiler, $rt_s(321));
+ if (!$this.$isGamePaused && $this.$theWorld !== null) {
+ var$1 = $this.$theWorld;
+ $var8 = nms_MathHelper_floor_double($this.$thePlayer.$posX);
+ $F3down = nms_MathHelper_floor_double($this.$thePlayer.$posY);
+ $var9 = nms_MathHelper_floor_double($this.$thePlayer.$posZ);
+ $ptr = 14;
+ continue main;
+ }
+ nms_Profiler_endStartSection($this.$mcProfiler, $rt_s(322));
+ if (!$this.$isGamePaused) {
+ var$1 = $this.$effectRenderer;
+ $ptr = 13;
+ continue main;
+ }
+ }
+ if ($this.$theWorld !== null) {
+ nms_SoundManager_stopTheTitleMusic($this.$sndManager);
+ nms_Profiler_endSection($this.$mcProfiler);
+ $this.$systemTime = nmc_Minecraft_getSystemTime();
+ return;
+ }
+ var$1 = $this.$sndManager;
+ $ptr = 7;
+ continue main;
+ case 24:
+ nmc_Minecraft_clickMouse($this, $var8);
+ if ($rt_suspending()) {
+ break main;
+ }
+ $var8 = 0;
+ $F3down = $this.$currentScreen === null && $this.$gameSettings.$keyBindAttack.$pressed && $this.$inGameHasFocus ? 1 : 0;
+ $ptr = 23;
+ continue main;
+ default: $rt_invalidPointer();
+ }}
+ $rt_nativeThread().push($this, var$1, $var8, $F3down, $var9, $var10, var$6, $ptr);
+}
+function nmc_Minecraft_forceReload($this) {
+ var var$1, var$2, var$3, var$4;
+ if (jl_System_errCache === null) {
+ var$1 = new ji_PrintStream;
+ var$1.$out = new jl_ConsoleOutputStreamStderr;
+ var$2 = new jl_StringBuilder;
+ var$2.$buffer = $rt_createCharArray(16);
+ var$1.$sb = var$2;
+ var$1.$buffer0 = $rt_createCharArray(32);
+ var$1.$autoFlush = 0;
+ var$2 = new jnci_UTF8Charset;
+ jnc_Charset__init_(var$2, $rt_s(2), $rt_createArray(jl_String, 0));
+ var$1.$charset = var$2;
+ jl_System_errCache = var$1;
+ }
+ var$3 = jl_System_errCache;
+ var$1 = var$3.$sb;
+ jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(326));
+ var$4 = var$1.$length;
+ jl_AbstractStringBuilder_insertSpace(var$1, var$4, var$4 + 1 | 0);
+ var$1.$buffer.data[var$4] = 10;
+ ji_PrintStream_printSB(var$3);
+ if ($this.$sndManager !== null)
+ nms_SoundManager_stopAllSounds($this.$sndManager);
+ $this.$sndManager = nms_SoundManager__init_0();
+ nms_SoundManager_loadSoundSettings($this.$sndManager, $this.$gameSettings);
+}
+function nmc_Minecraft_loadWorld($this, $par1WorldClient) {
+ var var$2, $ptr, $tmp;
+ $ptr = 0;
+ if ($rt_resuming()) {
+ var $thread = $rt_nativeThread();
+ $ptr = $thread.pop();var$2 = $thread.pop();$par1WorldClient = $thread.pop();$this = $thread.pop();
+ }
+ main: while (true) { switch ($ptr) {
+ case 0:
+ var$2 = $rt_s(44);
+ $ptr = 1;
+ case 1:
+ nmc_Minecraft_loadWorld0($this, $par1WorldClient, var$2);
+ if ($rt_suspending()) {
+ break main;
+ }
+ return;
+ default: $rt_invalidPointer();
+ }}
+ $rt_nativeThread().push($this, $par1WorldClient, var$2, $ptr);
+}
+function nmc_Minecraft_loadWorld0($this, $par1WorldClient, $par2Str) {
+ var $var3, var$4, $ptr, $tmp;
+ $ptr = 0;
+ if ($rt_resuming()) {
+ var $thread = $rt_nativeThread();
+ $ptr = $thread.pop();var$4 = $thread.pop();$var3 = $thread.pop();$par2Str = $thread.pop();$par1WorldClient = $thread.pop();$this = $thread.pop();
+ }
+ main: while (true) { switch ($ptr) {
+ case 0:
+ if ($par1WorldClient === null) {
+ $var3 = $this.$thePlayer === null ? null : $this.$thePlayer.$sendQueue;
+ if ($var3 !== null) {
+ $var3.$netManager = null;
+ $var3.$worldClient = null;
+ }
+ if ($this.$myNetworkManager !== null)
+ $this.$myNetworkManager.$closeConnections();
+ }
+ $this.$renderViewEntity = null;
+ $this.$myNetworkManager = null;
+ if ($this.$loadingScreen === null) {
+ if ($par1WorldClient === null && $this.$theWorld !== null) {
+ if ($this.$texturePackList.$isDownloading)
+ nms_TexturePackList_onDownloadFinished($this.$texturePackList);
+ $this.$currentServerData = null;
+ $this.$integratedServerIsRunning = 0;
+ }
+ nms_SoundManager_stopAllSounds($this.$sndManager);
+ $this.$theWorld = $par1WorldClient;
+ if ($par1WorldClient === null)
+ $this.$thePlayer = null;
+ else {
+ if ($this.$renderGlobal !== null)
+ nms_RenderGlobal_setWorldAndLoadRenderers($this.$renderGlobal, $par1WorldClient);
+ if ($this.$effectRenderer !== null)
+ nms_EffectRenderer_clearEffects($this.$effectRenderer, $par1WorldClient);
+ if ($this.$thePlayer === null) {
+ $this.$thePlayer = nms_PlayerControllerMP_func_78754_a($this.$playerController, $par1WorldClient);
+ $this.$thePlayer.$rotationYaw = (-180.0);
+ }
+ nlea_EaglerAdapterImpl2_$callClinit();
+ if (!nlea_EaglerAdapterImpl2_isAnisotropicPatched)
+ nmc_Minecraft_displayEaglercraftText($this, $rt_s(327));
+ nmc_Minecraft_displayEaglercraftText($this, $rt_s(328));
+ nms_EntityPlayer_preparePlayerToSpawn($this.$thePlayer);
+ nms_WorldClient_spawnEntityInWorld($par1WorldClient, $this.$thePlayer);
+ $par1WorldClient = $this.$thePlayer;
+ $par2Str = new nms_MovementInputFromOptions;
+ var$4 = $this.$gameSettings;
+ $par2Str.$moveStrafe = 0.0;
+ $par2Str.$moveForward = 0.0;
+ $par2Str.$jump = 0;
+ $par2Str.$sneak = 0;
+ $par2Str.$gameSettings0 = var$4;
+ $par1WorldClient.$movementInput = $par2Str;
+ $par1WorldClient = $this.$playerController;
+ $par2Str = $this.$thePlayer;
+ nms_EnumGameType_configurePlayerCapabilities($par1WorldClient.$currentGameType, $par2Str.$capabilities);
+ $this.$renderViewEntity = $this.$thePlayer;
+ }
+ $this.$systemTime = Long_ZERO;
+ return;
+ }
+ var$4 = $this.$loadingScreen;
+ var$4.$field_73724_e = 0;
+ nms_LoadingScreenRenderer_func_73722_d(var$4, $par2Str);
+ $par2Str = $this.$loadingScreen;
+ var$4 = $rt_s(44);
+ $ptr = 1;
+ case 1:
+ nms_LoadingScreenRenderer_resetProgresAndWorkingMessage($par2Str, var$4);
+ if ($rt_suspending()) {
+ break main;
+ }
+ if ($par1WorldClient === null && $this.$theWorld !== null) {
+ if ($this.$texturePackList.$isDownloading)
+ nms_TexturePackList_onDownloadFinished($this.$texturePackList);
+ $this.$currentServerData = null;
+ $this.$integratedServerIsRunning = 0;
+ }
+ nms_SoundManager_stopAllSounds($this.$sndManager);
+ $this.$theWorld = $par1WorldClient;
+ if ($par1WorldClient === null)
+ $this.$thePlayer = null;
+ else {
+ if ($this.$renderGlobal !== null)
+ nms_RenderGlobal_setWorldAndLoadRenderers($this.$renderGlobal, $par1WorldClient);
+ if ($this.$effectRenderer !== null)
+ nms_EffectRenderer_clearEffects($this.$effectRenderer, $par1WorldClient);
+ if ($this.$thePlayer === null) {
+ $this.$thePlayer = nms_PlayerControllerMP_func_78754_a($this.$playerController, $par1WorldClient);
+ $this.$thePlayer.$rotationYaw = (-180.0);
+ }
+ nlea_EaglerAdapterImpl2_$callClinit();
+ if (!nlea_EaglerAdapterImpl2_isAnisotropicPatched)
+ nmc_Minecraft_displayEaglercraftText($this, $rt_s(327));
+ nmc_Minecraft_displayEaglercraftText($this, $rt_s(328));
+ nms_EntityPlayer_preparePlayerToSpawn($this.$thePlayer);
+ nms_WorldClient_spawnEntityInWorld($par1WorldClient, $this.$thePlayer);
+ $par1WorldClient = $this.$thePlayer;
+ $par2Str = new nms_MovementInputFromOptions;
+ var$4 = $this.$gameSettings;
+ $par2Str.$moveStrafe = 0.0;
+ $par2Str.$moveForward = 0.0;
+ $par2Str.$jump = 0;
+ $par2Str.$sneak = 0;
+ $par2Str.$gameSettings0 = var$4;
+ $par1WorldClient.$movementInput = $par2Str;
+ $par1WorldClient = $this.$playerController;
+ $par2Str = $this.$thePlayer;
+ nms_EnumGameType_configurePlayerCapabilities($par1WorldClient.$currentGameType, $par2Str.$capabilities);
+ $this.$renderViewEntity = $this.$thePlayer;
+ }
+ $this.$systemTime = Long_ZERO;
+ return;
+ default: $rt_invalidPointer();
+ }}
+ $rt_nativeThread().push($this, $par1WorldClient, $par2Str, $var3, var$4, $ptr);
+}
+function nmc_Minecraft_debugInfoRenders($this) {
+ return nms_RenderGlobal_getDebugInfoRenders($this.$renderGlobal);
+}
+function nmc_Minecraft_getEntityDebug($this) {
+ return nms_RenderGlobal_getDebugInfoEntities($this.$renderGlobal);
+}
+function nmc_Minecraft_getWorldProviderName($this) {
+ return nms_ChunkProviderClient_makeString($this.$theWorld.$chunkProvider);
+}
+function nmc_Minecraft_debugInfoEntities($this) {
+ var var$1, var$2;
+ var$1 = new jl_StringBuilder;
+ var$1.$buffer = $rt_createCharArray(16);
+ jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(329));
+ var$2 = nms_EffectRenderer_getStatistics($this.$effectRenderer);
+ jl_AbstractStringBuilder_insert(var$1, var$1.$length, var$2);
+ jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(330));
+ var$2 = nms_World_getDebugLoadedEntities($this.$theWorld);
+ jl_AbstractStringBuilder_insert(var$1, var$1.$length, var$2);
+ return jl_String__init_0(var$1.$buffer, 0, var$1.$length);
+}
+function nmc_Minecraft_setDimensionAndSpawnPlayer($this, $par1) {
+ var var$2, $var2, var$4, var$5, $ptr, $tmp;
+ $ptr = 0;
+ if ($rt_resuming()) {
+ var $thread = $rt_nativeThread();
+ $ptr = $thread.pop();var$5 = $thread.pop();var$4 = $thread.pop();$var2 = $thread.pop();var$2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop();
+ }
+ main: while (true) { switch ($ptr) {
+ case 0:
+ var$2 = $this.$theWorld.$worldInfo;
+ var$2.$spawnX = 8;
+ var$2.$spawnY = 64;
+ var$2.$spawnZ = 8;
+ nms_WorldClient_removeAllEntities($this.$theWorld);
+ $var2 = 0;
+ if ($this.$thePlayer !== null) {
+ $var2 = $this.$thePlayer.$entityId;
+ var$2 = $this.$theWorld;
+ var$4 = $this.$thePlayer;
+ $ptr = 1;
+ continue main;
+ }
+ $this.$renderViewEntity = null;
+ $this.$thePlayer = nms_PlayerControllerMP_func_78754_a($this.$playerController, $this.$theWorld);
+ $this.$thePlayer.$dimension = $par1;
+ $this.$renderViewEntity = $this.$thePlayer;
+ nms_EntityPlayer_preparePlayerToSpawn($this.$thePlayer);
+ nms_WorldClient_spawnEntityInWorld($this.$theWorld, $this.$thePlayer);
+ $this.$thePlayer.$rotationYaw = (-180.0);
+ var$2 = $this.$thePlayer;
+ var$4 = new nms_MovementInputFromOptions;
+ var$5 = $this.$gameSettings;
+ var$4.$moveStrafe = 0.0;
+ var$4.$moveForward = 0.0;
+ var$4.$jump = 0;
+ var$4.$sneak = 0;
+ var$4.$gameSettings0 = var$5;
+ var$2.$movementInput = var$4;
+ $this.$thePlayer.$entityId = $var2;
+ var$2 = $this.$playerController;
+ var$4 = $this.$thePlayer;
+ nms_EnumGameType_configurePlayerCapabilities(var$2.$currentGameType, var$4.$capabilities);
+ if (!($this.$currentScreen instanceof nms_GuiGameOver))
+ return;
+ var$2 = null;
+ $ptr = 2;
+ continue main;
+ case 1:
+ nms_World_removeEntity(var$2, var$4);
+ if ($rt_suspending()) {
+ break main;
+ }
+ var$2 = ju_HashMap_removeEntry(var$2.$entityList.$backingMap, var$4);
+ $this.$renderViewEntity = null;
+ $this.$thePlayer = nms_PlayerControllerMP_func_78754_a($this.$playerController, $this.$theWorld);
+ $this.$thePlayer.$dimension = $par1;
+ $this.$renderViewEntity = $this.$thePlayer;
+ nms_EntityPlayer_preparePlayerToSpawn($this.$thePlayer);
+ nms_WorldClient_spawnEntityInWorld($this.$theWorld, $this.$thePlayer);
+ $this.$thePlayer.$rotationYaw = (-180.0);
+ var$2 = $this.$thePlayer;
+ var$4 = new nms_MovementInputFromOptions;
+ var$5 = $this.$gameSettings;
+ var$4.$moveStrafe = 0.0;
+ var$4.$moveForward = 0.0;
+ var$4.$jump = 0;
+ var$4.$sneak = 0;
+ var$4.$gameSettings0 = var$5;
+ var$2.$movementInput = var$4;
+ $this.$thePlayer.$entityId = $var2;
+ var$2 = $this.$playerController;
+ var$4 = $this.$thePlayer;
+ nms_EnumGameType_configurePlayerCapabilities(var$2.$currentGameType, var$4.$capabilities);
+ if (!($this.$currentScreen instanceof nms_GuiGameOver))
+ return;
+ var$2 = null;
+ $ptr = 2;
+ case 2:
+ nmc_Minecraft_displayGuiScreen($this, var$2);
+ if ($rt_suspending()) {
+ break main;
+ }
+ return;
+ default: $rt_invalidPointer();
+ }}
+ $rt_nativeThread().push($this, $par1, var$2, $var2, var$4, var$5, $ptr);
+}
+function nmc_Minecraft_isDemo($this) {
+ return $this.$isDemo;
+}
+function nmc_Minecraft_getNetHandler($this) {
+ return $this.$thePlayer === null ? null : $this.$thePlayer.$sendQueue;
+}
+function nmc_Minecraft_isFancyGraphicsEnabled() {
+ return nmc_Minecraft_theMinecraft !== null && nmc_Minecraft_theMinecraft.$gameSettings.$fancyGraphics ? 1 : 0;
+}
+function nmc_Minecraft_handleClientCommand($this, $par1Str) {
+ return ($par1Str === $rt_s(58) ? 1 : jl_String_startsWith($par1Str, $rt_s(58), 0)) ? 0 : 0;
+}
+function nmc_Minecraft_clickMiddleMouseButton($this) {
+ var $var1, $var3, $var4, $var5, $var6, $var7, $var8, $var2, $var9, $var10, $var11, var$12;
+ if ($this.$objectMouseOver !== null) {
+ a: {
+ $var1 = $this.$thePlayer.$capabilities.$isCreativeMode;
+ $var3 = 0;
+ $var4 = 0;
+ if ($this.$objectMouseOver.$typeOfHit === nms_EnumMovingObjectType_TILE) {
+ $var5 = $this.$objectMouseOver.$blockX;
+ $var6 = $this.$objectMouseOver.$blockY;
+ $var7 = $this.$objectMouseOver.$blockZ;
+ nms_Block_$callClinit();
+ $var8 = nms_Block_blocksList.data[nms_World_getBlockId($this.$theWorld, $var5, $var6, $var7)];
+ if ($var8 === null)
+ return;
+ $var2 = $var8.$idPicked($this.$theWorld, $var5, $var6, $var7);
+ if (!$var2)
+ return;
+ nms_Item_$callClinit();
+ $var4 = nms_Item_itemsList.data[$var2].$hasSubtypes;
+ $var9 = $var2 < 256 && !nms_Block_blocksList.data[$var8.$blockID].$isFlowerPot() ? $var2 : $var8.$blockID;
+ $var3 = nms_Block_blocksList.data[$var9].$getDamageValue($this.$theWorld, $var5, $var6, $var7);
+ } else {
+ if ($this.$objectMouseOver.$typeOfHit === nms_EnumMovingObjectType_ENTITY && $this.$objectMouseOver.$entityHit !== null && $var1) {
+ if ($this.$objectMouseOver.$entityHit instanceof nms_EntityPainting) {
+ nms_Item_$callClinit();
+ $var2 = nms_Item_painting.$itemID;
+ break a;
+ }
+ if ($this.$objectMouseOver.$entityHit instanceof nms_EntityItemFrame) {
+ $var10 = $this.$objectMouseOver.$entityHit;
+ if (nms_DataWatcher_getWatchableObjectItemStack($var10.$dataWatcher, 2) === null) {
+ nms_Item_$callClinit();
+ $var2 = nms_Item_itemFrame.$itemID;
+ } else {
+ $var2 = nms_DataWatcher_getWatchableObjectItemStack($var10.$dataWatcher, 2).$itemID0;
+ $var3 = nms_DataWatcher_getWatchableObjectItemStack($var10.$dataWatcher, 2).$itemDamage;
+ $var4 = 1;
+ }
+ break a;
+ }
+ if ($this.$objectMouseOver.$entityHit instanceof nms_EntityMinecart) {
+ $var11 = $this.$objectMouseOver.$entityHit;
+ if ($var11.$getMinecartType() == 2) {
+ nms_Item_$callClinit();
+ $var2 = nms_Item_minecartPowered.$itemID;
+ } else if ($var11.$getMinecartType() == 1) {
+ nms_Item_$callClinit();
+ $var2 = nms_Item_minecartCrate.$itemID;
+ } else if ($var11.$getMinecartType() == 3) {
+ nms_Item_$callClinit();
+ $var2 = nms_Item_minecartTnt.$itemID;
+ } else if ($var11.$getMinecartType() != 5) {
+ nms_Item_$callClinit();
+ $var2 = nms_Item_minecartEmpty.$itemID;
+ } else {
+ nms_Item_$callClinit();
+ $var2 = nms_Item_minecartHopper.$itemID;
+ }
+ break a;
+ }
+ if ($this.$objectMouseOver.$entityHit instanceof nms_EntityBoat) {
+ nms_Item_$callClinit();
+ $var2 = nms_Item_boat.$itemID;
+ break a;
+ }
+ nms_Item_$callClinit();
+ $var2 = nms_Item_monsterPlacer.$itemID;
+ $var11 = jl_Class_getClass($this.$objectMouseOver.$entityHit.constructor);
+ if (!(ju_HashMap_getEntry(nms_EntityList_classToIDMapping, $var11) === null ? 0 : 1))
+ $var3 = 0;
+ else {
+ $var10 = ju_HashMap_getEntry(nms_EntityList_classToIDMapping, $var11);
+ $var3 = ($var10 === null ? null : $var10.$value0).$value;
+ }
+ $var4 = 1;
+ if ($var3 > 0 && (ju_HashMap_getEntry(nms_EntityList_entityEggs, jl_Integer_valueOf($var3)) === null ? 0 : 1))
+ break a;
+ return;
+ }
+ return;
+ }
+ }
+ nms_InventoryPlayer_setCurrentItem($this.$thePlayer.$inventory, $var2, $var3, $var4, $var1);
+ if ($var1) {
+ $var5 = ($this.$thePlayer.$inventoryContainer.$inventorySlots.$size0 - 9 | 0) + $this.$thePlayer.$inventory.$currentItem | 0;
+ $var10 = $this.$playerController;
+ $var11 = $this.$thePlayer.$inventory;
+ $var1 = $this.$thePlayer.$inventory.$currentItem;
+ var$12 = $var11.$mainInventory;
+ $var3 = var$12.data.length;
+ if ($var1 >= $var3) {
+ $var1 = $var1 - $var3 | 0;
+ var$12 = $var11.$armorInventory;
+ }
+ nms_PlayerControllerMP_sendSlotPacket($var10, var$12.data[$var1], $var5);
+ }
+ }
+}
+function nmc_Minecraft_getMinecraft() {
+ return nmc_Minecraft_theMinecraft;
+}
+function nmc_Minecraft_scheduleTexturePackRefresh($this) {
+ $this.$refreshTexturePacksScheduled = 1;
+}
+function nmc_Minecraft_setServerData($this, $par1ServerData) {
+ $this.$currentServerData = $par1ServerData;
+}
+function nmc_Minecraft_isIntegratedServerRunning($this) {
+ return $this.$integratedServerIsRunning;
+}
+function nmc_Minecraft_getSystemTime() {
+ return jl_System_currentTimeMillis();
+}
+function nmc_Minecraft_isFullScreen($this) {
+ return $this.$fullscreen;
+}
+function nmc_Minecraft__clinit_() {
+ nmc_Minecraft_debugChunkUpdates = 0;
+}
+function nle_BaseNCodec() {
+ var a = this; jl_Object.call(a);
+ a.$PAD = 61;
+ a.$pad = 0;
+ a.$unencodedBlockSize = 0;
+ a.$encodedBlockSize = 0;
+ a.$lineLength = 0;
+ a.$chunkSeparatorLength = 0;
+ a.$decodingPolicy = null;
+}
+var nle_BaseNCodec_CHUNK_SEPARATOR = null;
+function nle_BaseNCodec__init_(var_0, var_1, var_2, var_3, var_4, var_5) {
+ var var_6 = new nle_BaseNCodec();
+ nle_BaseNCodec__init_0(var_6, var_0, var_1, var_2, var_3, var_4, var_5);
+ return var_6;
+}
+function nle_BaseNCodec_createPositiveCapacity($minCapacity) {
+ var var$2, var$3, var$4, var$5;
+ if ($minCapacity >= 0) {
+ if ($minCapacity <= 2147483639)
+ $minCapacity = 2147483639;
+ return $minCapacity;
+ }
+ var$2 = new jl_OutOfMemoryError;
+ var$3 = new jl_StringBuilder;
+ var$3.$buffer = $rt_createCharArray(16);
+ jl_AbstractStringBuilder_insert(var$3, var$3.$length, $rt_s(331));
+ var$4 = Long_and(Long_fromInt($minCapacity), new Long(4294967295, 0));
+ jl_AbstractStringBuilder_insert1(var$3, var$3.$length, var$4, 10);
+ var$5 = jl_String__init_0(var$3.$buffer, 0, var$3.$length);
+ var$2.$suppressionEnabled = 1;
+ var$2.$writableStackTrace = 1;
+ var$2.$message = var$5;
+ $rt_throw(var$2);
+}
+function nle_BaseNCodec_resizeBuffer($context, $minCapacity) {
+ var $newCapacity, $oldCapacity, $b;
+ $newCapacity = $context.$buffer2.data.length * 2 | 0;
+ $oldCapacity = $rt_compare($newCapacity + (-2147483648) | 0, $minCapacity + (-2147483648) | 0);
+ if (($oldCapacity < 0 ? (-1) : $oldCapacity ? 1 : 0) < 0)
+ $newCapacity = $minCapacity;
+ $oldCapacity = $rt_compare($newCapacity + (-2147483648) | 0, (-9));
+ if (($oldCapacity < 0 ? (-1) : $oldCapacity ? 1 : 0) > 0)
+ $newCapacity = nle_BaseNCodec_createPositiveCapacity($minCapacity);
+ $b = $rt_createByteArray($newCapacity);
+ jl_System_arraycopy($context.$buffer2, 0, $b, 0, $context.$buffer2.data.length);
+ $context.$buffer2 = $b;
+ return $b;
+}
+function nle_BaseNCodec__init_0($this, $unencodedBlockSize, $encodedBlockSize, $lineLength, $chunkSeparatorLength, $pad, $decodingPolicy) {
+ $this.$PAD = 61;
+ $this.$unencodedBlockSize = $unencodedBlockSize;
+ $this.$encodedBlockSize = $encodedBlockSize;
+ $this.$lineLength = !($lineLength > 0 && $chunkSeparatorLength > 0 ? 1 : 0) ? 0 : $rt_imul($lineLength / $encodedBlockSize | 0, $encodedBlockSize);
+ $this.$chunkSeparatorLength = $chunkSeparatorLength;
+ $this.$pad = $pad;
+ $this.$decodingPolicy = $decodingPolicy;
+}
+function nle_BaseNCodec_available($this, $context) {
+ return $context.$buffer2 === null ? 0 : $context.$pos0 - $context.$readPos | 0;
+}
+function nle_BaseNCodec_containsAlphabetOrPad($this, $arrayOctet) {
+ var var$2, var$3, $element;
+ if ($arrayOctet === null)
+ return 0;
+ $arrayOctet = $arrayOctet.data;
+ var$2 = $arrayOctet.length;
+ var$3 = 0;
+ a: {
+ while (var$3 < var$2) {
+ $element = $arrayOctet[var$3];
+ if ($this.$pad == $element)
+ break a;
+ if (nle_Base64_isInAlphabet($this, $element))
+ break a;
+ var$3 = var$3 + 1 | 0;
+ }
+ return 0;
+ }
+ return 1;
+}
+function nle_BaseNCodec_decode($this, $pArray) {
+ var var$2, $context, $result;
+ if ($pArray !== null) {
+ var$2 = $pArray.data.length;
+ if (var$2) {
+ $context = new nle_BaseNCodec$Context;
+ nle_Base64_decode($this, $pArray, 0, var$2, $context);
+ nle_Base64_decode($this, $pArray, 0, (-1), $context);
+ $result = $rt_createByteArray($context.$pos0);
+ nle_BaseNCodec_readResults($this, $result, 0, $result.data.length, $context);
+ return $result;
+ }
+ }
+ return $pArray;
+}
+function nle_BaseNCodec_decode0($this, $pArray) {
+ return nle_BaseNCodec_decode($this, jl_String_getBytes0($pArray, jnc_Charset_forName($rt_s(2))));
+}
+function nle_BaseNCodec_encode($this, $pArray) {
+ var var$2;
+ if ($pArray !== null) {
+ var$2 = $pArray.data.length;
+ if (var$2)
+ return nle_BaseNCodec_encode0($this, $pArray, 0, var$2);
+ }
+ return $pArray;
+}
+function nle_BaseNCodec_encode0($this, $pArray, $offset, $length) {
+ var $context, $buf;
+ if ($pArray !== null && $pArray.data.length) {
+ $context = new nle_BaseNCodec$Context;
+ nle_Base64_encode($this, $pArray, $offset, $length, $context);
+ nle_Base64_encode($this, $pArray, $offset, (-1), $context);
+ $buf = $rt_createByteArray($context.$pos0 - $context.$readPos | 0);
+ nle_BaseNCodec_readResults($this, $buf, 0, $buf.data.length, $context);
+ return $buf;
+ }
+ return $pArray;
+}
+function nle_BaseNCodec_ensureBufferSize($this, $size, $context) {
+ var var$3;
+ a: {
+ if ($context.$buffer2 !== null) {
+ if ((($context.$pos0 + $size | 0) - $context.$buffer2.data.length | 0) <= 0)
+ break a;
+ return nle_BaseNCodec_resizeBuffer($context, $context.$pos0 + $size | 0);
+ }
+ var$3 = 8192;
+ if ($size > var$3)
+ var$3 = $size;
+ $context.$buffer2 = $rt_createByteArray(var$3);
+ $context.$pos0 = 0;
+ $context.$readPos = 0;
+ }
+ return $context.$buffer2;
+}
+function nle_BaseNCodec_getDefaultBufferSize($this) {
+ return 8192;
+}
+function nle_BaseNCodec_getEncodedLength($this, $pArray) {
+ var $len;
+ $len = Long_mul(Long_fromInt((($pArray.data.length + $this.$unencodedBlockSize | 0) - 1 | 0) / $this.$unencodedBlockSize | 0), Long_fromInt($this.$encodedBlockSize));
+ if ($this.$lineLength > 0)
+ $len = Long_add($len, Long_mul(Long_div(Long_sub(Long_add($len, Long_fromInt($this.$lineLength)), Long_fromInt(1)), Long_fromInt($this.$lineLength)), Long_fromInt($this.$chunkSeparatorLength)));
+ return $len;
+}
+function nle_BaseNCodec_isStrictDecoding($this) {
+ return $this.$decodingPolicy !== nle_BaseNCodec$CodecPolicy_STRICT ? 0 : 1;
+}
+function nle_BaseNCodec_readResults($this, $b, $bPos, $len, $context) {
+ var $len_0;
+ if ($context.$buffer2 === null)
+ return !$context.$eof ? 0 : (-1);
+ $len_0 = $context.$buffer2 === null ? 0 : $context.$pos0 - $context.$readPos | 0;
+ if ($len_0 < $len)
+ $len = $len_0;
+ jl_System_arraycopy($context.$buffer2, $context.$readPos, $b, $bPos, $len);
+ $context.$readPos = $context.$readPos + $len | 0;
+ if ($context.$readPos >= $context.$pos0)
+ $context.$buffer2 = null;
+ return $len;
+}
+function nle_BaseNCodec__clinit_() {
+ var var$1, var$2;
+ var$1 = $rt_createByteArray(2);
+ var$2 = var$1.data;
+ var$2[0] = 13;
+ var$2[1] = 10;
+ nle_BaseNCodec_CHUNK_SEPARATOR = var$1;
+}
+function nle_Base64() {
+ var a = this; nle_BaseNCodec.call(a);
+ a.$encodeTable = null;
+ a.$decodeTable = null;
+ a.$lineSeparator = null;
+ a.$decodeSize = 0;
+ a.$encodeSize = 0;
+}
+var nle_Base64_STANDARD_ENCODE_TABLE = null;
+var nle_Base64_URL_SAFE_ENCODE_TABLE = null;
+var nle_Base64_DECODE_TABLE = null;
+function nle_Base64__init_1() {
+ var var_0 = new nle_Base64();
+ nle_Base64__init_(var_0);
+ return var_0;
+}
+function nle_Base64__init_0(var_0, var_1, var_2, var_3) {
+ var var_4 = new nle_Base64();
+ nle_Base64__init_2(var_4, var_0, var_1, var_2, var_3);
+ return var_4;
+}
+function nle_Base64_decodeBase64($base64String) {
+ return nle_BaseNCodec_decode(nle_Base64__init_0(0, nle_BaseNCodec_CHUNK_SEPARATOR, 0, nle_BaseNCodec$CodecPolicy_LENIANT), jl_String_getBytes0($base64String, jnc_Charset_forName($rt_s(2))));
+}
+function nle_Base64_encodeBase64($binaryData, $isChunked, $urlSafe, $maxResultSize) {
+ var var$5, $b64, $len, var$8, var$9;
+ if ($binaryData !== null) {
+ var$5 = $binaryData.data.length;
+ if (var$5) {
+ $b64 = !$isChunked ? nle_Base64__init_0(0, nle_BaseNCodec_CHUNK_SEPARATOR, $urlSafe, nle_BaseNCodec$CodecPolicy_LENIANT) : nle_Base64__init_0(76, nle_BaseNCodec_CHUNK_SEPARATOR, $urlSafe, nle_BaseNCodec$CodecPolicy_LENIANT);
+ $len = nle_BaseNCodec_getEncodedLength($b64, $binaryData);
+ if (Long_le($len, Long_fromInt($maxResultSize))) {
+ if (var$5)
+ $binaryData = nle_BaseNCodec_encode0($b64, $binaryData, 0, var$5);
+ return $binaryData;
+ }
+ var$8 = new jl_IllegalArgumentException;
+ $b64 = new jl_StringBuilder;
+ $b64.$buffer = $rt_createCharArray(16);
+ jl_AbstractStringBuilder_insert($b64, $b64.$length, $rt_s(332));
+ jl_AbstractStringBuilder_insert1($b64, $b64.$length, $len, 10);
+ jl_AbstractStringBuilder_insert($b64, $b64.$length, $rt_s(333));
+ jl_AbstractStringBuilder_insert0($b64, $b64.$length, $maxResultSize, 10);
+ var$9 = jl_String__init_0($b64.$buffer, 0, $b64.$length);
+ var$8.$suppressionEnabled = 1;
+ var$8.$writableStackTrace = 1;
+ var$8.$message = var$9;
+ $rt_throw(var$8);
+ }
+ }
+ return $binaryData;
+}
+function nle_Base64_encodeBase64String($binaryData) {
+ var var$2, var$3, var$4;
+ var$2 = new jl_String;
+ var$3 = nle_Base64_encodeBase64($binaryData, 0, 0, 2147483647);
+ $binaryData = var$3.data;
+ var$4 = jnc_Charset_forName($rt_s(2));
+ jl_String_initWithBytes(var$2, var$3, 0, $binaryData.length, var$4);
+ return var$2;
+}
+function nle_Base64__init_($this) {
+ nle_Base64__init_2($this, 0, nle_BaseNCodec_CHUNK_SEPARATOR, 0, nle_BaseNCodec$CodecPolicy_LENIANT);
+}
+function nle_Base64__init_2($this, $lineLength, $lineSeparator, $urlSafe, $decodingPolicy) {
+ var var$5, $sep, var$7, var$8;
+ nle_BaseNCodec__init_0($this, 3, 4, $lineLength, $lineSeparator === null ? 0 : $lineSeparator.data.length, 61, $decodingPolicy);
+ $this.$decodeTable = nle_Base64_DECODE_TABLE;
+ if ($lineSeparator === null) {
+ $this.$encodeSize = 4;
+ $this.$lineSeparator = null;
+ } else {
+ if (nle_BaseNCodec_containsAlphabetOrPad($this, $lineSeparator)) {
+ var$5 = $lineSeparator.data;
+ $sep = new jl_String;
+ jl_String_initWithBytes($sep, $lineSeparator, 0, var$5.length, jnc_Charset_forName($rt_s(2)));
+ $decodingPolicy = new jl_IllegalArgumentException;
+ var$7 = new jl_StringBuilder;
+ var$7.$buffer = $rt_createCharArray(16);
+ jl_AbstractStringBuilder_insert(var$7, var$7.$length, $rt_s(334));
+ jl_AbstractStringBuilder_insert(var$7, var$7.$length, $sep);
+ jl_AbstractStringBuilder_insert(var$7, var$7.$length, $rt_s(268));
+ $sep = jl_String__init_0(var$7.$buffer, 0, var$7.$length);
+ $decodingPolicy.$suppressionEnabled = 1;
+ $decodingPolicy.$writableStackTrace = 1;
+ $decodingPolicy.$message = $sep;
+ $rt_throw($decodingPolicy);
+ }
+ if ($lineLength <= 0) {
+ $this.$encodeSize = 4;
+ $this.$lineSeparator = null;
+ } else {
+ var$8 = $lineSeparator.data.length;
+ $this.$encodeSize = 4 + var$8 | 0;
+ $this.$lineSeparator = $rt_createByteArray(var$8);
+ jl_System_arraycopy($lineSeparator, 0, $this.$lineSeparator, 0, var$8);
+ }
+ }
+ $this.$decodeSize = $this.$encodeSize - 1 | 0;
+ $this.$encodeTable = !$urlSafe ? nle_Base64_STANDARD_ENCODE_TABLE : nle_Base64_URL_SAFE_ENCODE_TABLE;
+}
+function nle_Base64_decode($this, $in, $inPos, $inAvail, $context) {
+ var $i, var$6, $buffer, var$8, $b, $result, var$11, var$12;
+ if ($context.$eof)
+ return;
+ if ($inAvail < 0)
+ $context.$eof = 1;
+ $i = 0;
+ a: {
+ while (true) {
+ if ($i >= $inAvail)
+ break a;
+ var$6 = $in.data;
+ $buffer = nle_BaseNCodec_ensureBufferSize($this, $this.$decodeSize, $context);
+ var$8 = $inPos + 1 | 0;
+ $b = var$6[$inPos];
+ if ($b == $this.$pad)
+ break;
+ if ($b >= 0 && $b < nle_Base64_DECODE_TABLE.data.length) {
+ $result = nle_Base64_DECODE_TABLE.data[$b];
+ if ($result >= 0) {
+ $context.$modulus = ($context.$modulus + 1 | 0) % 4 | 0;
+ $context.$ibitWorkArea = ($context.$ibitWorkArea << 6) + $result | 0;
+ if (!$context.$modulus) {
+ $buffer = $buffer.data;
+ $inPos = $context.$pos0;
+ $context.$pos0 = $inPos + 1 | 0;
+ $buffer[$inPos] = ($context.$ibitWorkArea >> 16 & 255) << 24 >> 24;
+ $inPos = $context.$pos0;
+ $context.$pos0 = $inPos + 1 | 0;
+ $buffer[$inPos] = ($context.$ibitWorkArea >> 8 & 255) << 24 >> 24;
+ $b = $context.$pos0;
+ $context.$pos0 = $b + 1 | 0;
+ $buffer[$b] = ($context.$ibitWorkArea & 255) << 24 >> 24;
+ }
+ }
+ }
+ $i = $i + 1 | 0;
+ $inPos = var$8;
+ }
+ $context.$eof = 1;
+ }
+ b: {
+ if ($context.$eof && $context.$modulus) {
+ $buffer = nle_BaseNCodec_ensureBufferSize($this, $this.$decodeSize, $context);
+ switch ($context.$modulus) {
+ case 1:
+ if (!($this.$decodingPolicy !== nle_BaseNCodec$CodecPolicy_STRICT ? 0 : 1))
+ break b;
+ var$11 = new jl_IllegalArgumentException;
+ var$11.$suppressionEnabled = 1;
+ var$11.$writableStackTrace = 1;
+ var$11.$message = $rt_s(335);
+ $rt_throw(var$11);
+ case 2:
+ $inPos = $this.$decodingPolicy !== nle_BaseNCodec$CodecPolicy_STRICT ? 0 : 1;
+ if ($inPos && $context.$ibitWorkArea & 15) {
+ var$11 = new jl_IllegalArgumentException;
+ var$11.$suppressionEnabled = 1;
+ var$11.$writableStackTrace = 1;
+ var$11.$message = $rt_s(336);
+ $rt_throw(var$11);
+ }
+ $in = $buffer.data;
+ $context.$ibitWorkArea = $context.$ibitWorkArea >> 4;
+ $inAvail = $context.$pos0;
+ $context.$pos0 = $inAvail + 1 | 0;
+ $in[$inAvail] = ($context.$ibitWorkArea & 255) << 24 >> 24;
+ break b;
+ case 3:
+ $inPos = $this.$decodingPolicy !== nle_BaseNCodec$CodecPolicy_STRICT ? 0 : 1;
+ if ($inPos && $context.$ibitWorkArea & 3) {
+ var$11 = new jl_IllegalArgumentException;
+ var$11.$suppressionEnabled = 1;
+ var$11.$writableStackTrace = 1;
+ var$11.$message = $rt_s(336);
+ $rt_throw(var$11);
+ }
+ $in = $buffer.data;
+ $context.$ibitWorkArea = $context.$ibitWorkArea >> 2;
+ $inPos = $context.$pos0;
+ $context.$pos0 = $inPos + 1 | 0;
+ $in[$inPos] = ($context.$ibitWorkArea >> 8 & 255) << 24 >> 24;
+ $inPos = $context.$pos0;
+ $context.$pos0 = $inPos + 1 | 0;
+ $in[$inPos] = ($context.$ibitWorkArea & 255) << 24 >> 24;
+ break b;
+ default:
+ }
+ var$11 = new jl_IllegalStateException;
+ var$12 = new jl_StringBuilder;
+ var$12.$buffer = $rt_createCharArray(16);
+ jl_AbstractStringBuilder_insert(var$12, var$12.$length, $rt_s(337));
+ $inPos = $context.$modulus;
+ jl_AbstractStringBuilder_insert0(var$12, var$12.$length, $inPos, 10);
+ $context = jl_String__init_0(var$12.$buffer, 0, var$12.$length);
+ var$11.$suppressionEnabled = 1;
+ var$11.$writableStackTrace = 1;
+ var$11.$message = $context;
+ $rt_throw(var$11);
+ }
+ }
+}
+function nle_Base64_encode($this, $in, $inPos, $inAvail, $context) {
+ var $i, $buffer, $buffer_0, var$8, $b, var$10, $savedPos, var$12, var$13;
+ if ($context.$eof)
+ return;
+ a: {
+ if ($inAvail >= 0) {
+ $i = 0;
+ while (true) {
+ if ($i >= $inAvail)
+ break a;
+ $buffer = $in.data;
+ $buffer_0 = nle_BaseNCodec_ensureBufferSize($this, $this.$encodeSize, $context);
+ $context.$modulus = ($context.$modulus + 1 | 0) % 3 | 0;
+ var$8 = $inPos + 1 | 0;
+ $b = $buffer[$inPos];
+ if ($b < 0)
+ $b = $b + 256 | 0;
+ $context.$ibitWorkArea = ($context.$ibitWorkArea << 8) + $b | 0;
+ if (0 == $context.$modulus) {
+ var$10 = $buffer_0.data;
+ $savedPos = $context.$pos0;
+ $context.$pos0 = $savedPos + 1 | 0;
+ var$10[$savedPos] = $this.$encodeTable.data[$context.$ibitWorkArea >> 18 & 63];
+ $inPos = $context.$pos0;
+ $context.$pos0 = $inPos + 1 | 0;
+ var$10[$inPos] = $this.$encodeTable.data[$context.$ibitWorkArea >> 12 & 63];
+ $inPos = $context.$pos0;
+ $context.$pos0 = $inPos + 1 | 0;
+ var$10[$inPos] = $this.$encodeTable.data[$context.$ibitWorkArea >> 6 & 63];
+ $inPos = $context.$pos0;
+ $context.$pos0 = $inPos + 1 | 0;
+ var$10[$inPos] = $this.$encodeTable.data[$context.$ibitWorkArea & 63];
+ $context.$currentLinePos = $context.$currentLinePos + 4 | 0;
+ if ($this.$lineLength > 0 && $this.$lineLength <= $context.$currentLinePos) {
+ jl_System_arraycopy($this.$lineSeparator, 0, $buffer_0, $context.$pos0, $this.$lineSeparator.data.length);
+ $context.$pos0 = $context.$pos0 + $this.$lineSeparator.data.length | 0;
+ $context.$currentLinePos = 0;
+ }
+ }
+ $i = $i + 1 | 0;
+ $inPos = var$8;
+ }
+ }
+ $context.$eof = 1;
+ if (0 == $context.$modulus && !$this.$lineLength)
+ return;
+ b: {
+ c: {
+ $buffer = nle_BaseNCodec_ensureBufferSize($this, $this.$encodeSize, $context);
+ $savedPos = $context.$pos0;
+ switch ($context.$modulus) {
+ case 0:
+ break b;
+ case 1:
+ var$10 = $buffer.data;
+ $inAvail = $context.$pos0;
+ $context.$pos0 = $inAvail + 1 | 0;
+ var$10[$inAvail] = $this.$encodeTable.data[$context.$ibitWorkArea >> 2 & 63];
+ $inPos = $context.$pos0;
+ $context.$pos0 = $inPos + 1 | 0;
+ var$10[$inPos] = $this.$encodeTable.data[$context.$ibitWorkArea << 4 & 63];
+ if ($this.$encodeTable !== nle_Base64_STANDARD_ENCODE_TABLE)
+ break b;
+ $inPos = $context.$pos0;
+ $context.$pos0 = $inPos + 1 | 0;
+ var$10[$inPos] = $this.$pad;
+ $inPos = $context.$pos0;
+ $context.$pos0 = $inPos + 1 | 0;
+ var$10[$inPos] = $this.$pad;
+ break b;
+ case 2:
+ break c;
+ default:
+ }
+ var$12 = new jl_IllegalStateException;
+ var$13 = new jl_StringBuilder;
+ var$13.$buffer = $rt_createCharArray(16);
+ jl_AbstractStringBuilder_insert(var$13, var$13.$length, $rt_s(337));
+ $inPos = $context.$modulus;
+ jl_AbstractStringBuilder_insert0(var$13, var$13.$length, $inPos, 10);
+ jl_Throwable__init_2(var$12, jl_AbstractStringBuilder_toString(var$13));
+ $rt_throw(var$12);
+ }
+ var$10 = $buffer.data;
+ $inPos = $context.$pos0;
+ $context.$pos0 = $inPos + 1 | 0;
+ var$10[$inPos] = $this.$encodeTable.data[$context.$ibitWorkArea >> 10 & 63];
+ $inPos = $context.$pos0;
+ $context.$pos0 = $inPos + 1 | 0;
+ var$10[$inPos] = $this.$encodeTable.data[$context.$ibitWorkArea >> 4 & 63];
+ $inPos = $context.$pos0;
+ $context.$pos0 = $inPos + 1 | 0;
+ var$10[$inPos] = $this.$encodeTable.data[$context.$ibitWorkArea << 2 & 63];
+ if ($this.$encodeTable === nle_Base64_STANDARD_ENCODE_TABLE) {
+ $inPos = $context.$pos0;
+ $context.$pos0 = $inPos + 1 | 0;
+ var$10[$inPos] = $this.$pad;
+ }
+ }
+ $context.$currentLinePos = $context.$currentLinePos + ($context.$pos0 - $savedPos | 0) | 0;
+ if ($this.$lineLength > 0 && $context.$currentLinePos > 0) {
+ jl_System_arraycopy($this.$lineSeparator, 0, $buffer, $context.$pos0, $this.$lineSeparator.data.length);
+ $context.$pos0 = $context.$pos0 + $this.$lineSeparator.data.length | 0;
+ }
+ }
+}
+function nle_Base64_isInAlphabet($this, $octet) {
+ return $octet >= 0 && $octet < $this.$decodeTable.data.length && $this.$decodeTable.data[$octet] != (-1) ? 1 : 0;
+}
+function nle_Base64__clinit_() {
+ var var$1, var$2;
+ var$1 = $rt_createByteArray(64);
+ var$2 = var$1.data;
+ var$2[0] = 65;
+ var$2[1] = 66;
+ var$2[2] = 67;
+ var$2[3] = 68;
+ var$2[4] = 69;
+ var$2[5] = 70;
+ var$2[6] = 71;
+ var$2[7] = 72;
+ var$2[8] = 73;
+ var$2[9] = 74;
+ var$2[10] = 75;
+ var$2[11] = 76;
+ var$2[12] = 77;
+ var$2[13] = 78;
+ var$2[14] = 79;
+ var$2[15] = 80;
+ var$2[16] = 81;
+ var$2[17] = 82;
+ var$2[18] = 83;
+ var$2[19] = 84;
+ var$2[20] = 85;
+ var$2[21] = 86;
+ var$2[22] = 87;
+ var$2[23] = 88;
+ var$2[24] = 89;
+ var$2[25] = 90;
+ var$2[26] = 97;
+ var$2[27] = 98;
+ var$2[28] = 99;
+ var$2[29] = 100;
+ var$2[30] = 101;
+ var$2[31] = 102;
+ var$2[32] = 103;
+ var$2[33] = 104;
+ var$2[34] = 105;
+ var$2[35] = 106;
+ var$2[36] = 107;
+ var$2[37] = 108;
+ var$2[38] = 109;
+ var$2[39] = 110;
+ var$2[40] = 111;
+ var$2[41] = 112;
+ var$2[42] = 113;
+ var$2[43] = 114;
+ var$2[44] = 115;
+ var$2[45] = 116;
+ var$2[46] = 117;
+ var$2[47] = 118;
+ var$2[48] = 119;
+ var$2[49] = 120;
+ var$2[50] = 121;
+ var$2[51] = 122;
+ var$2[52] = 48;
+ var$2[53] = 49;
+ var$2[54] = 50;
+ var$2[55] = 51;
+ var$2[56] = 52;
+ var$2[57] = 53;
+ var$2[58] = 54;
+ var$2[59] = 55;
+ var$2[60] = 56;
+ var$2[61] = 57;
+ var$2[62] = 43;
+ var$2[63] = 47;
+ nle_Base64_STANDARD_ENCODE_TABLE = var$1;
+ var$1 = $rt_createByteArray(64);
+ var$2 = var$1.data;
+ var$2[0] = 65;
+ var$2[1] = 66;
+ var$2[2] = 67;
+ var$2[3] = 68;
+ var$2[4] = 69;
+ var$2[5] = 70;
+ var$2[6] = 71;
+ var$2[7] = 72;
+ var$2[8] = 73;
+ var$2[9] = 74;
+ var$2[10] = 75;
+ var$2[11] = 76;
+ var$2[12] = 77;
+ var$2[13] = 78;
+ var$2[14] = 79;
+ var$2[15] = 80;
+ var$2[16] = 81;
+ var$2[17] = 82;
+ var$2[18] = 83;
+ var$2[19] = 84;
+ var$2[20] = 85;
+ var$2[21] = 86;
+ var$2[22] = 87;
+ var$2[23] = 88;
+ var$2[24] = 89;
+ var$2[25] = 90;
+ var$2[26] = 97;
+ var$2[27] = 98;
+ var$2[28] = 99;
+ var$2[29] = 100;
+ var$2[30] = 101;
+ var$2[31] = 102;
+ var$2[32] = 103;
+ var$2[33] = 104;
+ var$2[34] = 105;
+ var$2[35] = 106;
+ var$2[36] = 107;
+ var$2[37] = 108;
+ var$2[38] = 109;
+ var$2[39] = 110;
+ var$2[40] = 111;
+ var$2[41] = 112;
+ var$2[42] = 113;
+ var$2[43] = 114;
+ var$2[44] = 115;
+ var$2[45] = 116;
+ var$2[46] = 117;
+ var$2[47] = 118;
+ var$2[48] = 119;
+ var$2[49] = 120;
+ var$2[50] = 121;
+ var$2[51] = 122;
+ var$2[52] = 48;
+ var$2[53] = 49;
+ var$2[54] = 50;
+ var$2[55] = 51;
+ var$2[56] = 52;
+ var$2[57] = 53;
+ var$2[58] = 54;
+ var$2[59] = 55;
+ var$2[60] = 56;
+ var$2[61] = 57;
+ var$2[62] = 45;
+ var$2[63] = 95;
+ nle_Base64_URL_SAFE_ENCODE_TABLE = var$1;
+ var$1 = $rt_createByteArray(123);
+ var$2 = var$1.data;
+ var$2[0] = (-1);
+ var$2[1] = (-1);
+ var$2[2] = (-1);
+ var$2[3] = (-1);
+ var$2[4] = (-1);
+ var$2[5] = (-1);
+ var$2[6] = (-1);
+ var$2[7] = (-1);
+ var$2[8] = (-1);
+ var$2[9] = (-1);
+ var$2[10] = (-1);
+ var$2[11] = (-1);
+ var$2[12] = (-1);
+ var$2[13] = (-1);
+ var$2[14] = (-1);
+ var$2[15] = (-1);
+ var$2[16] = (-1);
+ var$2[17] = (-1);
+ var$2[18] = (-1);
+ var$2[19] = (-1);
+ var$2[20] = (-1);
+ var$2[21] = (-1);
+ var$2[22] = (-1);
+ var$2[23] = (-1);
+ var$2[24] = (-1);
+ var$2[25] = (-1);
+ var$2[26] = (-1);
+ var$2[27] = (-1);
+ var$2[28] = (-1);
+ var$2[29] = (-1);
+ var$2[30] = (-1);
+ var$2[31] = (-1);
+ var$2[32] = (-1);
+ var$2[33] = (-1);
+ var$2[34] = (-1);
+ var$2[35] = (-1);
+ var$2[36] = (-1);
+ var$2[37] = (-1);
+ var$2[38] = (-1);
+ var$2[39] = (-1);
+ var$2[40] = (-1);
+ var$2[41] = (-1);
+ var$2[42] = (-1);
+ var$2[43] = 62;
+ var$2[44] = (-1);
+ var$2[45] = 62;
+ var$2[46] = (-1);
+ var$2[47] = 63;
+ var$2[48] = 52;
+ var$2[49] = 53;
+ var$2[50] = 54;
+ var$2[51] = 55;
+ var$2[52] = 56;
+ var$2[53] = 57;
+ var$2[54] = 58;
+ var$2[55] = 59;
+ var$2[56] = 60;
+ var$2[57] = 61;
+ var$2[58] = (-1);
+ var$2[59] = (-1);
+ var$2[60] = (-1);
+ var$2[61] = (-1);
+ var$2[62] = (-1);
+ var$2[63] = (-1);
+ var$2[64] = (-1);
+ var$2[65] = 0;
+ var$2[66] = 1;
+ var$2[67] = 2;
+ var$2[68] = 3;
+ var$2[69] = 4;
+ var$2[70] = 5;
+ var$2[71] = 6;
+ var$2[72] = 7;
+ var$2[73] = 8;
+ var$2[74] = 9;
+ var$2[75] = 10;
+ var$2[76] = 11;
+ var$2[77] = 12;
+ var$2[78] = 13;
+ var$2[79] = 14;
+ var$2[80] = 15;
+ var$2[81] = 16;
+ var$2[82] = 17;
+ var$2[83] = 18;
+ var$2[84] = 19;
+ var$2[85] = 20;
+ var$2[86] = 21;
+ var$2[87] = 22;
+ var$2[88] = 23;
+ var$2[89] = 24;
+ var$2[90] = 25;
+ var$2[91] = (-1);
+ var$2[92] = (-1);
+ var$2[93] = (-1);
+ var$2[94] = (-1);
+ var$2[95] = 63;
+ var$2[96] = (-1);
+ var$2[97] = 26;
+ var$2[98] = 27;
+ var$2[99] = 28;
+ var$2[100] = 29;
+ var$2[101] = 30;
+ var$2[102] = 31;
+ var$2[103] = 32;
+ var$2[104] = 33;
+ var$2[105] = 34;
+ var$2[106] = 35;
+ var$2[107] = 36;
+ var$2[108] = 37;
+ var$2[109] = 38;
+ var$2[110] = 39;
+ var$2[111] = 40;
+ var$2[112] = 41;
+ var$2[113] = 42;
+ var$2[114] = 43;
+ var$2[115] = 44;
+ var$2[116] = 45;
+ var$2[117] = 46;
+ var$2[118] = 47;
+ var$2[119] = 48;
+ var$2[120] = 49;
+ var$2[121] = 50;
+ var$2[122] = 51;
+ nle_Base64_DECODE_TABLE = var$1;
+}
+function nms_ServerData() {
+ var a = this; jl_Object.call(a);
+ a.$serverName = null;
+ a.$serverIP = null;
+ a.$populationInfo = null;
+ a.$serverMOTD = null;
+ a.$pingToServer = Long_ZERO;
+ a.$field_82821_f = 0;
+ a.$gameVersion = null;
+ a.$field_78841_f = 0;
+ a.$field_78842_g = 0;
+ a.$acceptsTextures = 0;
+ a.$hideAddress = 0;
+}
+function nms_ServerData__init_(var_0, var_1) {
+ var var_2 = new nms_ServerData();
+ nms_ServerData__init_0(var_2, var_0, var_1);
+ return var_2;
+}
+function nms_ServerData__init_0($this, $par1Str, $par2Str) {
+ $this.$field_82821_f = 61;
+ $this.$gameVersion = $rt_s(338);
+ $this.$field_78841_f = 0;
+ $this.$field_78842_g = 1;
+ $this.$acceptsTextures = 0;
+ $this.$hideAddress = 0;
+ $this.$serverName = $par1Str;
+ $this.$serverIP = $par2Str;
+}
+function nms_ServerData_getNBTCompound($this) {
+ var $var1, var$2, var$3, var$4, var$5, var$6;
+ $var1 = new nms_NBTTagCompound;
+ $var1.$name0 = $rt_s(44);
+ $var1.$tagMap = ju_HashMap__init_1(16, 0.75);
+ var$2 = $this.$serverName;
+ var$3 = $var1.$tagMap;
+ var$4 = new nms_NBTTagString;
+ var$4.$name0 = $rt_s(339);
+ var$4.$data4 = var$2;
+ if (var$2 === null) {
+ var$5 = new jl_IllegalArgumentException;
+ var$5.$suppressionEnabled = 1;
+ var$5.$writableStackTrace = 1;
+ var$5.$message = $rt_s(264);
+ $rt_throw(var$5);
+ }
+ ju_HashMap_putImpl(var$3, $rt_s(339), var$4);
+ var$2 = $this.$serverIP;
+ var$3 = $var1.$tagMap;
+ var$4 = new nms_NBTTagString;
+ var$4.$name0 = $rt_s(340);
+ var$4.$data4 = var$2;
+ if (var$2 === null) {
+ var$5 = new jl_IllegalArgumentException;
+ var$5.$suppressionEnabled = 1;
+ var$5.$writableStackTrace = 1;
+ var$5.$message = $rt_s(264);
+ $rt_throw(var$5);
+ }
+ ju_HashMap_putImpl(var$3, $rt_s(340), var$4);
+ var$6 = (!$this.$hideAddress ? 0 : 1) << 24 >> 24;
+ var$4 = $var1.$tagMap;
+ var$2 = new nms_NBTTagByte;
+ var$2.$name0 = $rt_s(341);
+ var$2.$data0 = var$6;
+ ju_HashMap_putImpl(var$4, $rt_s(341), var$2);
+ return $var1;
+}
+function nms_ServerData_isHidingAddress($this) {
+ return $this.$hideAddress;
+}
+function nms_ServerData_setHideAddress($this, $par1) {
+ $this.$hideAddress = $par1;
+}
+function nms_ServerData_getServerDataFromNBTCompound($par0NBTTagCompound) {
+ var $var1;
+ $var1 = nms_ServerData__init_(nms_NBTTagCompound_getString($par0NBTTagCompound, $rt_s(339)), nms_NBTTagCompound_getString($par0NBTTagCompound, $rt_s(340)));
+ $var1.$hideAddress = nms_NBTTagCompound_getBoolean($par0NBTTagCompound, $rt_s(341));
+ $var1.$serverMOTD = nms_NBTTagCompound_getString($par0NBTTagCompound, $rt_s(342));
+ if (!($var1.$serverMOTD.$characters.data.length ? 0 : 1)) {
+ $var1.$populationInfo = $rt_s(343);
+ $var1.$pingToServer = Long_ZERO;
+ $var1.$field_78841_f = 1;
+ }
+ return $var1;
+}
+function ju_Comparator() {
+}
+function jl_String$_clinit_$lambda$_81_0() {
+ jl_Object.call(this);
+}
+function jl_String$_clinit_$lambda$_81_0__init_0() {
+ var var_0 = new jl_String$_clinit_$lambda$_81_0();
+ jl_String$_clinit_$lambda$_81_0__init_(var_0);
+ return var_0;
+}
+function jl_String$_clinit_$lambda$_81_0__init_(var$0) {
+ return;
+}
+function jl_Character() {
+ jl_Object.call(this);
+ this.$value1 = 0;
+}
+var jl_Character_TYPE = null;
+var jl_Character_digitMapping = null;
+var jl_Character_classMapping = null;
+var jl_Character_characterCache = null;
+var jl_Character_$$metadata$$0 = null;
+var jl_Character_$$metadata$$1 = null;
+function jl_Character_valueOf($value) {
+ var $result;
+ if ($value >= jl_Character_characterCache.data.length) {
+ $result = new jl_Character;
+ $result.$value1 = $value;
+ return $result;
+ }
+ $result = jl_Character_characterCache.data[$value];
+ if ($result === null) {
+ $result = new jl_Character;
+ $result.$value1 = $value;
+ jl_Character_characterCache.data[$value] = $result;
+ }
+ return $result;
+}
+function jl_Character_toString($this) {
+ var var$1, var$2, var$3;
+ var$1 = $this.$value1;
+ var$2 = new jl_String;
+ var$3 = $rt_createCharArray(1);
+ var$3.data[0] = var$1;
+ jl_String__init_3(var$2, var$3);
+ return var$2;
+}
+function jl_Character_equals($this, $other) {
+ if ($this === $other)
+ return 1;
+ return $other instanceof jl_Character && $other.$value1 == $this.$value1 ? 1 : 0;
+}
+function jl_Character_hashCode($this) {
+ return $this.$value1;
+}
+function jl_Character_toString0($c) {
+ var var$2, var$3;
+ var$2 = new jl_String;
+ var$3 = $rt_createCharArray(1);
+ var$3.data[0] = $c;
+ jl_String__init_3(var$2, var$3);
+ return var$2;
+}
+function jl_Character_isHighSurrogate($ch) {
+ return ($ch & 64512) != 55296 ? 0 : 1;
+}
+function jl_Character_isLowSurrogate($ch) {
+ return ($ch & 64512) != 56320 ? 0 : 1;
+}
+function jl_Character_codePointAt($a, $index, $limit) {
+ var var$4;
+ if ($index < ($limit - 1 | 0)) {
+ var$4 = $a.data;
+ if ((var$4[$index] & 64512) != 55296 ? 0 : 1) {
+ $limit = $index + 1 | 0;
+ if ((var$4[$limit] & 64512) != 56320 ? 0 : 1)
+ return ((var$4[$index] & 1023) << 10 | var$4[$limit] & 1023) + 65536 | 0;
+ }
+ }
+ return $a.data[$index];
+}
+function jl_Character_highSurrogate($codePoint) {
+ return (55296 | ($codePoint - 65536 | 0) >> 10 & 1023) & 65535;
+}
+function jl_Character_lowSurrogate($codePoint) {
+ return (56320 | $codePoint & 1023) & 65535;
+}
+function jl_Character_toLowerCase($ch) {
+ return (String.fromCharCode($ch)).toLowerCase().charCodeAt(0) & 65535;
+}
+function jl_Character_digit($codePoint, $radix) {
+ var $d;
+ if ($radix >= 2 && $radix <= 36) {
+ $d = jl_Character_getNumericValue($codePoint);
+ if ($d >= $radix)
+ $d = (-1);
+ return $d;
+ }
+ return (-1);
+}
+function jl_Character_getNumericValue($codePoint) {
+ var $digitMapping, $l, $u, $idx, var$6, $val;
+ if (jl_Character_digitMapping === null) {
+ if (jl_Character_$$metadata$$0 === null)
+ jl_Character_$$metadata$$0 = jl_Character_obtainDigitMapping$$create();
+ jl_Character_digitMapping = otciu_UnicodeHelper_decodeIntByte((jl_Character_$$metadata$$0.value !== null ? $rt_str(jl_Character_$$metadata$$0.value) : null));
+ }
+ $digitMapping = jl_Character_digitMapping.data;
+ $l = 0;
+ $u = ($digitMapping.length / 2 | 0) - 1 | 0;
+ while ($u >= $l) {
+ $idx = ($l + $u | 0) / 2 | 0;
+ var$6 = $idx * 2 | 0;
+ $val = $rt_compare($codePoint, $digitMapping[var$6]);
+ if ($val > 0)
+ $l = $idx + 1 | 0;
+ else {
+ if ($val >= 0)
+ return $digitMapping[var$6 + 1 | 0];
+ $u = $idx - 1 | 0;
+ }
+ }
+ return (-1);
+}
+function jl_Character_forDigit($digit, $radix) {
+ if ($radix >= 2 && $radix <= 36 && $digit < $radix)
+ return $digit < 10 ? (48 + $digit | 0) & 65535 : ((97 + $digit | 0) - 10 | 0) & 65535;
+ return 0;
+}
+function jl_Character_toChars($codePoint) {
+ var var$2, var$3;
+ if ($codePoint < 65536) {
+ var$2 = $rt_createCharArray(1);
+ var$2.data[0] = $codePoint & 65535;
+ return var$2;
+ }
+ var$2 = $rt_createCharArray(2);
+ var$3 = var$2.data;
+ var$3[0] = (55296 | ($codePoint - 65536 | 0) >> 10 & 1023) & 65535;
+ var$3[1] = (56320 | $codePoint & 1023) & 65535;
+ return var$2;
+}
+function jl_Character_isISOControl($codePoint) {
+ a: {
+ b: {
+ if (!($codePoint >= 0 && $codePoint <= 31)) {
+ if ($codePoint < 127)
+ break b;
+ if ($codePoint > 159)
+ break b;
+ }
+ $codePoint = 1;
+ break a;
+ }
+ $codePoint = 0;
+ }
+ return $codePoint;
+}
+function jl_Character_getType($codePoint) {
+ var $l, $u, $classes, $i, $range;
+ if ($codePoint > 0 && $codePoint <= 65535 ? 1 : 0) {
+ $l = $codePoint & 65535 & 64512;
+ $u = $l != 55296 ? 0 : 1;
+ if (!$u && !($l != 56320 ? 0 : 1) ? 0 : 1)
+ return 19;
+ }
+ if (jl_Character_classMapping === null) {
+ if (jl_Character_$$metadata$$1 === null)
+ jl_Character_$$metadata$$1 = jl_Character_obtainClasses$$create();
+ jl_Character_classMapping = otciu_UnicodeHelper_extractRle((jl_Character_$$metadata$$1.value !== null ? $rt_str(jl_Character_$$metadata$$1.value) : null));
+ }
+ $classes = jl_Character_classMapping.data;
+ $l = 0;
+ $u = $classes.length - 1 | 0;
+ while ($l <= $u) {
+ $i = ($l + $u | 0) / 2 | 0;
+ $range = $classes[$i];
+ if ($codePoint >= $range.$end)
+ $l = $i + 1 | 0;
+ else {
+ if ($codePoint >= $range.$start2)
+ return $range.$data5.data[$codePoint - $range.$start2 | 0];
+ $u = $i - 1 | 0;
+ }
+ }
+ return 0;
+}
+function jl_Character_isIdentifierIgnorable($codePoint) {
+ a: {
+ if (!($codePoint >= 0 && $codePoint <= 8) && !($codePoint >= 14 && $codePoint <= 27)) {
+ if ($codePoint < 127)
+ break a;
+ if ($codePoint > 159)
+ break a;
+ }
+ return 1;
+ }
+ return jl_Character_getType($codePoint) != 16 ? 0 : 1;
+}
+function jl_Character_compareTo($this, $anotherCharacter) {
+ return $this.$value1 - $anotherCharacter.$value1 | 0;
+}
+function jl_Character_compareTo0($this, var$1) {
+ var$1 = var$1;
+ return $this.$value1 - var$1.$value1 | 0;
+}
+function jl_Character__clinit_() {
+ jl_Character_TYPE = $rt_cls($rt_charcls());
+ jl_Character_characterCache = $rt_createArray(jl_Character, 128);
+}
+function jl_Character_obtainDigitMapping$$create() {
+ return {"value" : "oD#*% .%%2%)6%-:%1>%5B%9F%=J%AN%Eo%Is%Mw%Q{%U!\'Y&\'^*\'b.\'f2\'j6\'n:\'r>\'vB\'zF\'!#J\'N\'*#R\'.#V\'2#Z\'6#_\':#c\'>#g\'B#k\'F#o\'J#s\'N#w\'R#6)I:)M>)QB)UF)YJ)^N)bR)fV)jZ)n_)rc)vg)zk)!#o)s)*#w).#{)2#!+6#&+:#*+>#.+B#2+F#6+J#:+N#>+R#{R# !T#%&T#)*T#-.T#12T#56T#9:T#=>T#ABT#E6a# :a#%>a#)Ba#-Fa#1Ja#5Na#9Ra#=Va#AZa#E:s# >s#%Bs#)Fs#-Js#1Ns#5Rs#9Vs#=Zs#A_s#EZ:% _:%%c:%)g:%-k:%1o:%5s:%9w:%={:%A!<%E2F% 6F%%:F%)>F%-BF%1FF%5JF%9NF%=RF%AVF%EgP% kP%%oP%)sP%-wP%1{P%5!R%9&R%=*R%A.R%E>]% B]%%F]%)J]%-N]%1R]%5V]%9Z]%=_]%Ac]%Esg% wg%%{g%)!i%-&"
+ + "i%1*i%5.i%92i%=6i%A:i%EJs% Ns%%Rs%)Vs%-Zs%1_s%5cs%9gs%=ks%Aos%E!!\' &!\'%*!\').!\'-2!\'16!\'5:!\'9>!\'=B!\'AF!\'EV,\' Z,\'%_,\')c,\'-g,\'1k,\'5o,\'9s,\'=w,\'A{,\'E.8\' 28\'%68\'):8\'->8\'1B8\'5F8\'9J8\'=N8\'AR8\'EcB\' gB\'%kB\')oB\'-sB\'1wB\'5{B\'9!D\'=&D\'A*D\'E>L\' BL\'%FL\')JL\'-NL\'1RL\'5VL\'9ZL\'=_L\'AcL\'EsV\' wV\'%{V\')!X\'-&X\'1*X\'5.X\'92X\'=6X\'A:X\'EB_\' F_\'%J_\')N_\'-R_\'1V_\'5Z_\'9__\'=c_\'Ag_\'Esw\' ww\'%{w\')!y\'-&y\'1*y\'5.y\'92y\'=6y\'A:y\'EB!) F!)%J!))N!)-R!)1V!)5Z!)9_!)=c!)Ag!)Egi+ ki+%oi+)si+-wi+1{i+5!k+9&k+=*k+A.k+Eom+ sm+%wm+){m+-!o+1&o+5*o+9.o+=2o+A6o+E>,- B,-%F"
+ + ",-)J,--N,-1R,-5V,-9Z,-=_,-Ac,-E>8- B8-%F8-)J8--N8-1R8-5V8-9Z8-=_8-Ac8-E{F- !H-%&H-)*H--.H-12H-56H-9:H-=>H-ABH-E_H- cH-%gH-)kH--oH-1sH-5wH-9{H-=!J-A&J-E!Z- &Z-%*Z-).Z--2Z-16Z-5:Z-9>Z-=BZ-AFZ-E2c- 6c-%:c-)>c--Bc-1Fc-5Jc-9Nc-=Rc-AVc-EJo- No-%Ro-)Vo--Zo-1_o-5co-9go-=ko-Aoo-E.q- 2q-%6q-):q-->q-1Bq-5Fq-9Jq-=Nq-ARq-E&4r *4r%.4r)24r-64r1:4r5>4r9B4r=F4rAJ4rE{or !qr%&qr)*qr-.qr12qr56qr9:qr=>qrABqrE&ur *ur%.ur)2ur-6ur1:ur5>ur9Bur=FurAJurE**t .*t%2*t)6*t-:*t1>*t5B*t9F*t=J*tAN*tEN,t R,t%V,t)Z,t-_,t1c,t5g,t9k,t=o,tAs,tE_"
+ + "4t c4t%g4t)k4t-o4t1s4t5w4t9{4t=!6tA&6tEgXt kXt%oXt)sXt-wXt1{Xt5!Zt9&Zt=*ZtA.ZtE{c@# !e@#%&e@#)*e@#-.e@#12e@#56e@#9:e@#=>e@#ABe@#Ece@#Ige@#Mke@#Qoe@#Use@#Ywe@#^{e@#b!g@#f&g@#j*g@#n.g@#r2g@#v6g@#z:g@#!#>g@#Bg@#*#Fg@#.#Jg@#2#Ng@#6#Rg@#:#Vg@#>#Zg@#B#_g@#F#cg@#J#gg@#N#kg@#R#*i@#I.i@#M2i@#Q6i@#U:i@#Y>i@#^Bi@#bFi@#fJi@#jNi@#nRi@#rVi@#vZi@#z_i@#!#ci@#gi@#*#ki@#.#oi@#2#si@#6#wi@#:#{i@#>#!k@#B#&k@#F#*k@#J#.k@#N#2k@#R#s&D# w&D#%{&D#)!(D#-&(D#1*(D#5.(D#92(D#=6(D#A:(D#E2.H# 6.H#%:.H#)>.H#-B.H#1F.H#5J.H#9N.H#=R.H#AV."
+ + "H#EwuH# {uH#%!wH#)&wH#-*wH#1.wH#52wH#96wH#=:wH#A>wH#Ew$J# {$J#%!&J#)&&J#-*&J#1.&J#52&J#96&J#=:&J#A>&J#E{*J# !,J#%&,J#)*,J#-.,J#12,J#56,J#9:,J#=>,J#AB,J#E_8J# c8J#%g8J#)k8J#-o8J#1s8J#5w8J#9{8J#=!:J#A&:J#E2RJ# 6RJ#%:RJ#)>RJ#-BRJ#1FRJ#5JRJ#9NRJ#=RRJ#AVRJ#ENqJ# RqJ#%VqJ#)ZqJ#-_qJ#1cqJ#5gqJ#9kqJ#=oqJ#AsqJ#E&}J# *}J#%.}J#)2}J#-6}J#1:}J#5>}J#9B}J#=F}J#AJ}J#Eg@L# k@L#%o@L#)s@L#-w@L#1{@L#5!BL#9&BL#=*BL#A.BL#EZJL# _JL#%cJL#)gJL#-kJL#1oJL#5sJL#9wJL#={JL#A!LL#ENTL# RTL#%VTL#)ZTL#-_TL#1cTL#5gTL#9kTL#=oTL#AsTL#E:{L# >{L#"
+ + "%B{L#)F{L#-J{L#1N{L#5R{L#9V{L#=Z{L#A_{L#ERkN# VkN#%ZkN#)_kN#-ckN#1gkN#5kkN#9okN#=skN#AwkN#E_$P# c$P#%g$P#)k$P#-o$P#1s$P#5w$P#9{$P#=!&P#A&&P#E.,P# 2,P#%6,P#):,P#->,P#1B,P#5F,P#9J,P#=N,P#AR,P#EFau# Jau#%Nau#)Rau#-Vau#1Zau#5_au#9cau#=gau#Akau#Eouu# suu#%wuu#){uu#-!wu#1&wu#5*wu#9.wu#=2wu#A6wu#EF0N% J0N%%N0N%)R0N%-V0N%1Z0N%5_0N%9c0N%=g0N%Ak0N%Eo0N% s0N%%w0N%){0N%-!2N%1&2N%5*2N%9.2N%=22N%A62N%E:2N% >2N%%B2N%)F2N%-J2N%1N2N%5R2N%9V2N%=Z2N%A_2N%Ec2N% g2N%%k2N%)o2N%-s2N%1w2N%5{2N%9!4N%=&4N%A*4N%E.4N% 24N%%64N%):4N%->"
+ + "4N%1B4N%5F4N%9J4N%=N4N%AR4N%ERJR% VJR%%ZJR%)_JR%-cJR%1gJR%5kJR%9oJR%=sJR%AwJR%E>qR% BqR%%FqR%)JqR%-NqR%1RqR%5VqR%9ZqR%=_qR%AcqR%E:FV% >FV%%BFV%)FFV%-JFV%1NFV%5RFV%9VFV%=ZFV%A_FV%E"};
+}
+function jl_Character_obtainClasses$$create() {
+ return {"value" : "PA-Y$;Y$679:95Y#J+Y#Z$Y#B;697<8:1=<=:L#<#Y#<,&?L$9B8:B(C9:C)!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!C#!#!#!#!#!#!#!#!C#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#B##!#!C$B##!#B##B$C#B%#B##B$C$B##B##!#!#B##!C#!#B##B$#!#B#C#&!C$F%!$#!$#!$#!#!#!#!#!#!#!#!C#!#!#!#!#!#!#!#!#!C#!$#!#B$#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!C(B##B#C#!#B%#!#!#!#!Cg&C?6_#?6>Y)./Q&-Y*>?Y%X#Y$:67Y,:98Y+-Q& Q+,%A#L\'Z$67%L+Z$67 E.A$[AA1G.H%\'H$G-A0^#"
+ + "!^%!^##B$C#B$#=!^#:B&^\'!=!=!=B%=#B%#F%#^#C#B#Z&!C%=:^##=L1KD!#K%,^#A%Z&^&Z#^%:^#:^#:^(:^@Z#^#:=:^@b:-% ^)6767^5Z#^(67b=2! :^?Z:^IZ\'^gA:^,A6L^^pL7b=X# :^*:^WZ)b=P! :b=Y$ 67676767676767L?^MZ&67Z@6767676767Z1b= % b:$# 6767676767676767676767Za6767ZA67b:#% ^QZ6^#Z\'^HA#^AA#b=I! BP CP !#B$C#!#!#!#B%#!C#!C\'E#B$#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!#!C#^\'!#!#G$!#A&Y%,Y#CG #AA#FYA(%9A/\'F8A*F( F( F( F( F( F( F( F( GAY#>?>?Y$>?9>?Y*5Y#59>?Y#>?67676767Y&%Y+U#Y%"
+ + "596Y.AQ^; b=:! A-b=7$ A;^-A%-Y$=%&+6767676767^#6767676756W#=K*G%I#5E&^#K$%&9^# b&7! A#G#]#E#&5b&;! 9E$&A&FL b&?! ^#L%^+FA$G$)FP\'I#G%I#G#I$Y. %J+A%Y#F&\'%F*J+F& FJG\'I#G#I#G#A*F$\'F)\')A#J+A#Y%F1%F\'^$&)\')FS\'&G$F#G#F&G#&\'&A9F#%Y#F,)G#I#Y#&E#)\'A+F\'A#F\'A#F\'A*F( F( CLA$FRA0\'LA#G$A%\'L*A(Y*A(F>L#9F>L$AAF)=F=G#A%L&Y(A*FWA$Y(F7A#L)F4A&L)F3A(Y%A-L(b 1! FkAXBTA.CTA(L\'FEG%A)J+b G% L@b !# F>L+&A)F7G,L%Y&b \'# F8A*)\')FVG0Y(A%L5J+A0G$)FNI$G%I#G#Y#1Y%A,1A#F:A(J+A\'G$FEG&)G) J+Y%&I#A*FD\'Y#&A*G#)FQI$G*I#F%Y%G%9A#J+&9&Y$ L5A,F3 F:I$G$I#\')G#Y\'\'AcF( & F% F0 F+"
+ + "9A\'FP\'I$G)A&J+A\'G#I# F)A#F#A#F7 F( F# F& G#&I#\'I%A#I#A#I$A#&A\')A&F&I#A#G(A$G&b ,# FVI$G)I#G$)\'F%Y&J+ 9 9\'&AAFQI$G\')\'I%G#)G#F#9&A)J+b G# FPI$G%A#I%G#)G#Y8F%G#ACFQI$G)I#\')G#Y$&A,J+A\'Y.A4FL\')\'I#G\')\'&A(J+AWFFZb (% F* FF)G( G\')\'&Y&A+J+L4A$Y#F?A#G7 )G()G#)G#AkF( F# FGG\'A$\' G# G(&\'A)J+A\'F\' F# FAI& G# I#\')\'&A(J+b W% F4G#I#Y#b ($ L6^)[%^2A.9b&;/ b G! b+P! Y&A,b&%$ b ^K b&P1 Q*b (a b&(* b Z\'#b&Z) A(F"
+ + "@ J+A%Y#b A! F?A#G&9A+FQG(Y&^%E%9=A+J+ L( F6A&F4b Q+ BACAL8Y%b F! FmA%\'&IXA(G%E.AbE#9%A=&b W@!&A)b&T, b .5#b&@% ARF$A2F%A)b&-\' b %E b&L! A&F.A$F*A(F+A#=G#9Q%b =.!b=W$ A+^HA#^^I#G$^$I\'Q)G)^#G(^?G%^]A8^dG$=b ;# L5A-b=8! A*L:b (# B;C;B;C( C3B;C;! B#A#!A#B#A#B% B)C% # C( C,B;C;B# B%A#B) B( C;B# B% B& !A$B( C;B;C;B;C;B;C;B;C;B;C;B;C=A#B::C::C\'B::C::C\'B::C::C\'B::C::C\'B::C::C\'!#A#JSb= ) GX^%GS^)\'^/\'^#Y&A0G& G0b 16 G( G2A#G( G# G&b 6$ FNA$G(E(A#J+A%&=b Q& FMG%J+A&;b 5 b&&$ A#L*G(AJBCCCG(%A%J+A%Y#b 2- L]=L$;L%AnLN="
+ + "L0b #$ F% F< F# &A#& F+ F% & &A\'&A%& & & F$ F# &A#& & & & & F# &A#F% F( F% F% & F+ F2A&F$ F& F2AUZ#b /% ^MA%b=E! A-^0A#^0 ^0 ^FA+L.A$b=>! A$^_AZ^>A.^MA%^*A(^#A/^\'b ;# b=]$ ]&b=7, A+^.A$^,A&b=U! A-b=:! A(^-A5^-A%^YA)^+A\'^IA)^?b 3! ^- b=F! ^%A$^JA#^\'A$^>A#b=(# A-^/A#^%A%^$A&^$A.^\'b K6 &b %b %b 6<#&AJ&b T !&A,&b =$ &A#&b ;!&A/&b PU!&b @Q b&?) b %b %b %b %b %b %b %b %b %b %b %b %b %b %b %b %b %b %b %b %b %b %b %b %b %b %b %b %b %b %b %b %b "
+ + "%b %b %b %b %b %b %b %b %b %b %b %b D8 1A?b1A! b # b\'Q$ b %b %b %b 1Y$3b %b %b %b ^a$3A#3b %b %b %b ^a$3"};
+}
+function jl_Iterable() {
+}
+function ju_Collection() {
+}
+function ju_AbstractCollection() {
+ jl_Object.call(this);
+}
+function ju_AbstractCollection__init_() {
+ var var_0 = new ju_AbstractCollection();
+ ju_AbstractCollection__init_0(var_0);
+ return var_0;
+}
+function ju_AbstractCollection__init_0($this) {
+ return;
+}
+function ju_AbstractCollection_isEmpty($this) {
+ return $this.$size2() ? 0 : 1;
+}
+function ju_AbstractCollection_contains($this, $o) {
+ var $iter, $e;
+ $iter = $this.$iterator();
+ a: {
+ while ($iter.$hasNext()) {
+ b: {
+ $e = $iter.$next();
+ if ($e !== null) {
+ if (!$e.$equals($o))
+ break b;
+ else
+ break a;
+ }
+ if ($o === null)
+ break a;
+ }
+ }
+ return 0;
+ }
+ return 1;
+}
+function ju_AbstractCollection_toArray($this) {
+ var $arr, $i, var$3, $iter, var$5, var$6;
+ $arr = $rt_createArray(jl_Object, $this.$backingMap.$elementCount);
+ $i = 0;
+ var$3 = $this.$backingMap;
+ if (var$3.$cachedKeySet === null) {
+ $iter = new ju_HashMap$1;
+ $iter.$this$01 = var$3;
+ var$3.$cachedKeySet = $iter;
+ }
+ var$5 = $arr.data;
+ $iter = var$3.$cachedKeySet.$iterator();
+ while ($iter.$hasNext()) {
+ var$6 = $i + 1 | 0;
+ var$5[$i] = $iter.$next();
+ $i = var$6;
+ }
+ return $arr;
+}
+function ju_AbstractCollection_toArray0($this, $a) {
+ var var$2, $i, var$4, $iter;
+ var$2 = $a.data;
+ $i = $this.$size2();
+ var$4 = var$2.length;
+ if (var$4 >= $i)
+ while ($i < var$4) {
+ var$2[$i] = null;
+ $i = $i + 1 | 0;
+ }
+ else
+ $a = jlr_Array_newInstance(jl_Class_getClass(jl_Class_getClass($a.constructor).$platformClass.$meta.item), $i);
+ $i = 0;
+ $iter = $this.$iterator();
+ while ($iter.$hasNext()) {
+ var$2 = $a.data;
+ var$4 = $i + 1 | 0;
+ var$2[$i] = $iter.$next();
+ $i = var$4;
+ }
+ return $a;
+}
+function ju_AbstractCollection_remove($this, $o) {
+ var $iter, $e;
+ $iter = new ju_AbstractList$1;
+ $iter.$this$0 = $this;
+ $iter.$modCount = $iter.$this$0.$modCount0;
+ $iter.$size1 = $iter.$this$0.$size2();
+ $iter.$removeIndex = (-1);
+ a: {
+ while ($iter.$index >= $iter.$size1 ? 0 : 1) {
+ b: {
+ $e = ju_AbstractList$1_next($iter);
+ if ($e !== null) {
+ if (!$e.$equals($o))
+ break b;
+ else
+ break a;
+ }
+ if ($o === null)
+ break a;
+ }
+ }
+ return 0;
+ }
+ ju_AbstractList$1_remove($iter);
+ return 1;
+}
+function ju_AbstractCollection_addAll($this, $c) {
+ var $changed, $iter;
+ $changed = 0;
+ $iter = $c.$iterator();
+ while ($iter.$hasNext()) {
+ if (!$this.$add($iter.$next()))
+ continue;
+ $changed = 1;
+ }
+ return $changed;
+}
+function ju_AbstractCollection_removeAll($this, $c) {
+ var $changed, $iter;
+ $changed = 0;
+ $iter = new ju_AbstractList$1;
+ $iter.$this$0 = $this;
+ $iter.$modCount = $iter.$this$0.$modCount0;
+ $iter.$size1 = $iter.$this$0.$size2();
+ $iter.$removeIndex = (-1);
+ while ($iter.$index >= $iter.$size1 ? 0 : 1) {
+ if ($c.$contains0(ju_AbstractList$1_next($iter))) {
+ ju_AbstractList$1_remove($iter);
+ $changed = 1;
+ }
+ }
+ return $changed;
+}
+function ju_AbstractCollection_retainAll($this, $c) {
+ var $changed, $e, $iter;
+ $changed = 0;
+ $e = $this.$backingMap;
+ if ($e.$cachedKeySet === null) {
+ $iter = new ju_HashMap$1;
+ $iter.$this$01 = $e;
+ $e.$cachedKeySet = $iter;
+ }
+ $iter = $e.$cachedKeySet.$iterator();
+ while ($iter.$hasNext()) {
+ if (!ju_HashSet_contains($c, $iter.$next())) {
+ $iter.$remove();
+ $changed = 1;
+ }
+ }
+ return $changed;
+}
+function ju_AbstractCollection_toString($this) {
+ var $sb, $iter, var$3;
+ $sb = new jl_StringBuilder;
+ $sb.$buffer = $rt_createCharArray(16);
+ jl_AbstractStringBuilder_insert($sb, $sb.$length, $rt_s(310));
+ $iter = $this.$iterator();
+ if ($iter.$hasNext()) {
+ var$3 = $iter.$next();
+ var$3 = var$3 === null ? $rt_s(47) : var$3.$toString();
+ jl_AbstractStringBuilder_insert($sb, $sb.$length, var$3);
+ }
+ while ($iter.$hasNext()) {
+ jl_AbstractStringBuilder_insert($sb, $sb.$length, $rt_s(344));
+ var$3 = $iter.$next();
+ var$3 = var$3 === null ? $rt_s(47) : var$3.$toString();
+ jl_AbstractStringBuilder_insert($sb, $sb.$length, var$3);
+ }
+ jl_AbstractStringBuilder_insert($sb, $sb.$length, $rt_s(268));
+ return jl_String__init_0($sb.$buffer, 0, $sb.$length);
+}
+function ju_List() {
+}
+function ju_AbstractList() {
+ ju_AbstractCollection.call(this);
+ this.$modCount0 = 0;
+}
+function ju_AbstractList__init_() {
+ var var_0 = new ju_AbstractList();
+ ju_AbstractList__init_0(var_0);
+ return var_0;
+}
+function ju_AbstractList__init_0($this) {
+ return;
+}
+function ju_AbstractList_add($this, $e) {
+ $this.$add1($this.$size2(), $e);
+ return 1;
+}
+function ju_AbstractList_iterator($this) {
+ var var$1;
+ var$1 = new ju_AbstractList$1;
+ var$1.$this$0 = $this;
+ var$1.$modCount = var$1.$this$0.$modCount0;
+ var$1.$size1 = var$1.$this$0.$size2();
+ var$1.$removeIndex = (-1);
+ return var$1;
+}
+function ju_AbstractList_add0($this, $index, $element) {
+ $element = new jl_UnsupportedOperationException;
+ $element.$suppressionEnabled = 1;
+ $element.$writableStackTrace = 1;
+ $rt_throw($element);
+}
+function ju_AbstractList_remove($this, $index) {
+ var var$2;
+ var$2 = new jl_UnsupportedOperationException;
+ var$2.$suppressionEnabled = 1;
+ var$2.$writableStackTrace = 1;
+ $rt_throw(var$2);
+}
+function ju_AbstractList_indexOf($this, $o) {
+ var $sz, $i, $e;
+ $sz = $this.$size0;
+ $i = 0;
+ a: {
+ while ($i < $sz) {
+ b: {
+ $e = ju_ArrayList_get($this, $i);
+ if ($o !== null) {
+ if (!$o.$equals($e))
+ break b;
+ else
+ break a;
+ }
+ if ($e === null)
+ break a;
+ }
+ $i = $i + 1 | 0;
+ }
+ return (-1);
+ }
+ return $i;
+}
+function ju_AbstractList_hashCode($this) {
+ var $hashCode, $iter, $elem;
+ $hashCode = 1;
+ $iter = new ju_AbstractList$1;
+ $iter.$this$0 = $this;
+ $iter.$modCount = $iter.$this$0.$modCount0;
+ $iter.$size1 = $iter.$this$0.$size2();
+ $iter.$removeIndex = (-1);
+ while ($iter.$index >= $iter.$size1 ? 0 : 1) {
+ $elem = ju_AbstractList$1_next($iter);
+ $hashCode = (31 * $hashCode | 0) + ($elem === null ? 0 : $elem.$hashCode0()) | 0;
+ }
+ return $hashCode;
+}
+function ju_AbstractList_equals($this, $other) {
+ var $list, $i, var$4;
+ if (!$rt_isInstance($other, ju_List))
+ return 0;
+ $list = $other;
+ if ($this.$size2() != $list.$size2())
+ return 0;
+ $i = 0;
+ while ($i < $list.$size2()) {
+ $other = $this.$get4($i);
+ var$4 = $list.$get4($i);
+ if (!($other === var$4 ? 1 : $other !== null ? $other.$equals(var$4) : var$4 !== null ? 0 : 1))
+ return 0;
+ $i = $i + 1 | 0;
+ }
+ return 1;
+}
+function ju_AbstractSequentialList() {
+ ju_AbstractList.call(this);
+}
+function ju_AbstractSequentialList_add($this, $index, $element) {
+ if ($index >= 0) {
+ ju_LinkedList$SequentialListIterator_add(ju_LinkedList_listIterator($this, $index), $element);
+ return;
+ }
+ $element = new jl_IndexOutOfBoundsException;
+ $element.$suppressionEnabled = 1;
+ $element.$writableStackTrace = 1;
+ $rt_throw($element);
+}
+function ju_AbstractSequentialList_remove($this, $index) {
+ var $iter, $elem;
+ if ($index >= 0) {
+ $iter = ju_LinkedList_listIterator($this, $index);
+ $elem = ju_LinkedList$SequentialListIterator_next($iter);
+ ju_LinkedList$SequentialListIterator_remove($iter);
+ return $elem;
+ }
+ $iter = new jl_IndexOutOfBoundsException;
+ $iter.$suppressionEnabled = 1;
+ $iter.$writableStackTrace = 1;
+ $rt_throw($iter);
+}
+function ju_AbstractSequentialList_iterator($this) {
+ var var$1, var$2, var$3;
+ var$1 = new ju_LinkedList$SequentialListIterator;
+ var$2 = $this.$firstEntry;
+ var$3 = null;
+ var$1.$this$02 = $this;
+ var$1.$version = var$1.$this$02.$modCount0;
+ var$1.$nextEntry = var$2;
+ var$1.$prevEntry = var$3;
+ var$1.$index0 = 0;
+ return var$1;
+}
+function ju_Queue() {
+}
+function ju_Deque() {
+}
+function ju_LinkedList() {
+ var a = this; ju_AbstractSequentialList.call(a);
+ a.$firstEntry = null;
+ a.$lastEntry = null;
+ a.$size = 0;
+}
+function ju_LinkedList__init_0() {
+ var var_0 = new ju_LinkedList();
+ ju_LinkedList__init_(var_0);
+ return var_0;
+}
+function ju_LinkedList__init_($this) {
+ return;
+}
+function ju_LinkedList_size($this) {
+ return $this.$size;
+}
+function ju_LinkedList_clear($this) {
+ $this.$firstEntry = null;
+ $this.$lastEntry = null;
+ $this.$size = 0;
+ $this.$modCount0 = $this.$modCount0 + 1 | 0;
+}
+function ju_LinkedList_listIterator0($this) {
+ var var$1, var$2, var$3;
+ var$1 = new ju_LinkedList$SequentialListIterator;
+ var$2 = $this.$firstEntry;
+ var$3 = null;
+ var$1.$this$02 = $this;
+ var$1.$version = var$1.$this$02.$modCount0;
+ var$1.$nextEntry = var$2;
+ var$1.$prevEntry = var$3;
+ var$1.$index0 = 0;
+ return var$1;
+}
+function ju_LinkedList_listIterator($this, $index) {
+ var $prev, $next, $i, var$5;
+ if ($index < 0) {
+ $prev = new jl_IndexOutOfBoundsException;
+ $prev.$suppressionEnabled = 1;
+ $prev.$writableStackTrace = 1;
+ $rt_throw($prev);
+ }
+ if ($index <= ($this.$size / 2 | 0)) {
+ $next = $this.$firstEntry;
+ $i = 0;
+ while ($i < $index) {
+ $next = $next.$next0;
+ $i = $i + 1 | 0;
+ }
+ $prev = new ju_LinkedList$SequentialListIterator;
+ var$5 = $next === null ? null : $next.$previous;
+ $prev.$this$02 = $this;
+ $prev.$version = $prev.$this$02.$modCount0;
+ $prev.$nextEntry = $next;
+ $prev.$prevEntry = var$5;
+ $prev.$index0 = $index;
+ return $prev;
+ }
+ if ($index > $this.$size) {
+ $prev = new jl_IndexOutOfBoundsException;
+ $prev.$suppressionEnabled = 1;
+ $prev.$writableStackTrace = 1;
+ $rt_throw($prev);
+ }
+ $prev = $this.$lastEntry;
+ $i = $index;
+ while ($i < $this.$size) {
+ $prev = $prev.$previous;
+ $i = $i + 1 | 0;
+ }
+ $next = new ju_LinkedList$SequentialListIterator;
+ var$5 = $prev === null ? null : $prev.$next0;
+ $next.$this$02 = $this;
+ $next.$version = $next.$this$02.$modCount0;
+ $next.$nextEntry = var$5;
+ $next.$prevEntry = $prev;
+ $next.$index0 = $index;
+ return $next;
+}
+function ju_LinkedList_removeEntry($this, $entry) {
+ if ($entry.$previous === null)
+ $this.$firstEntry = $entry.$next0;
+ else
+ $entry.$previous.$next0 = $entry.$next0;
+ if ($entry.$next0 === null)
+ $this.$lastEntry = $entry.$previous;
+ else
+ $entry.$next0.$previous = $entry.$previous;
+ $this.$size = $this.$size - 1 | 0;
+ $this.$modCount0 = $this.$modCount0 + 1 | 0;
+}
+function otjt_ArrayBuffer() {
+ jl_Object.call(this);
+}
+function otjt_ArrayBufferView() {
+ jl_Object.call(this);
+}
+function otjt_Uint8Array() {
+ otjt_ArrayBufferView.call(this);
+}
+function otjt_Float32Array() {
+ otjt_ArrayBufferView.call(this);
+}
+function ju_Map() {
+}
+function ju_Map_computeIfAbsent($this, $key, $mappingFunction) {
+ var var$3, var$4, $v;
+ if ($key !== null) {
+ var$3 = $key.$value2;
+ var$4 = var$3.lo ^ var$3.hi;
+ $mappingFunction = ju_HashMap_findNonNullKeyEntry($this, $key, var$4 & ($this.$elementData.data.length - 1 | 0), var$4);
+ } else {
+ $mappingFunction = $this.$elementData.data[0];
+ while ($mappingFunction !== null && $mappingFunction.$key !== null) {
+ $mappingFunction = $mappingFunction.$next1;
+ }
+ }
+ $v = $mappingFunction === null ? null : $mappingFunction.$value0;
+ if ($v !== null)
+ return $v;
+ $mappingFunction = new ju_ArrayList;
+ $mappingFunction.$array1 = $rt_createArray(jl_Object, 10);
+ ju_HashMap_putImpl($this, $key, $mappingFunction);
+ return $mappingFunction;
+}
+function ju_AbstractMap() {
+ var a = this; jl_Object.call(a);
+ a.$cachedKeySet = null;
+ a.$cachedValues = null;
+}
+function ju_AbstractMap_keySet($this) {
+ var var$1;
+ if ($this.$cachedKeySet === null) {
+ var$1 = new ju_AbstractMap$KeySet;
+ var$1.$this$03 = $this;
+ $this.$cachedKeySet = var$1;
+ }
+ return $this.$cachedKeySet;
+}
+function ju_AbstractMap_equals($this, $obj) {
+ var $other, $iter, $entry, var$5, var$6;
+ if ($this === $obj)
+ return 1;
+ if (!$rt_isInstance($obj, ju_Map))
+ return 0;
+ $other = $obj;
+ if ($this.$elementCount != $other.$elementCount)
+ return 0;
+ $iter = new ju_HashMap$EntryIterator;
+ $iter.$associatedMap0 = $this;
+ $iter.$expectedModCount = $this.$modCount1;
+ $iter.$futureEntry = null;
+ while (ju_HashMap$AbstractMapIterator_hasNext($iter)) {
+ ju_HashMap$AbstractMapIterator_makeNext($iter);
+ $entry = $iter.$currentEntry;
+ $obj = $entry.$key;
+ if ($obj !== null) {
+ var$5 = $obj.$hashCode0();
+ $obj = ju_HashMap_findNonNullKeyEntry($other, $obj, var$5 & ($other.$elementData.data.length - 1 | 0), var$5);
+ } else {
+ $obj = $other.$elementData.data[0];
+ while ($obj !== null && $obj.$key !== null) {
+ $obj = $obj.$next1;
+ }
+ }
+ if (!($obj === null ? 0 : 1))
+ return 0;
+ var$6 = $entry.$value0;
+ $obj = $entry.$key;
+ if ($obj !== null) {
+ var$5 = $obj.$hashCode0();
+ $obj = ju_HashMap_findNonNullKeyEntry($other, $obj, var$5 & ($other.$elementData.data.length - 1 | 0), var$5);
+ } else {
+ $obj = $other.$elementData.data[0];
+ while ($obj !== null && $obj.$key !== null) {
+ $obj = $obj.$next1;
+ }
+ }
+ $obj = $obj === null ? null : $obj.$value0;
+ if (!(var$6 === $obj ? 1 : var$6 !== null ? var$6.$equals($obj) : $obj !== null ? 0 : 1))
+ return 0;
+ }
+ return 1;
+}
+function ju_AbstractMap_hashCode($this) {
+ var $result, $iter;
+ $result = 0;
+ $iter = new ju_HashMap$EntryIterator;
+ $iter.$associatedMap0 = $this;
+ $iter.$expectedModCount = $this.$modCount1;
+ $iter.$futureEntry = null;
+ while (ju_HashMap$AbstractMapIterator_hasNext($iter)) {
+ ju_HashMap$AbstractMapIterator_makeNext($iter);
+ $result = $result ^ ju_MapEntry_hashCode($iter.$currentEntry);
+ }
+ return $result;
+}
+function jl_Cloneable() {
+}
+function ju_HashMap() {
+ var a = this; ju_AbstractMap.call(a);
+ a.$elementCount = 0;
+ a.$elementData = null;
+ a.$modCount1 = 0;
+ a.$loadFactor = 0.0;
+ a.$threshold = 0;
+}
+function ju_HashMap__init_0() {
+ var var_0 = new ju_HashMap();
+ ju_HashMap__init_(var_0);
+ return var_0;
+}
+function ju_HashMap__init_1(var_0, var_1) {
+ var var_2 = new ju_HashMap();
+ ju_HashMap__init_2(var_2, var_0, var_1);
+ return var_2;
+}
+function ju_HashMap_newElementArray($this, $s) {
+ return $rt_createArray(ju_HashMap$HashEntry, $s);
+}
+function ju_HashMap__init_($this) {
+ ju_HashMap__init_2($this, 16, 0.75);
+}
+function ju_HashMap_calculateCapacity($x) {
+ var var$2;
+ if ($x >= 1073741824)
+ return 1073741824;
+ if (!$x)
+ return 16;
+ var$2 = $x - 1 | 0;
+ $x = var$2 | var$2 >> 1;
+ $x = $x | $x >> 2;
+ $x = $x | $x >> 4;
+ $x = $x | $x >> 8;
+ return ($x | $x >> 16) + 1 | 0;
+}
+function ju_HashMap__init_2($this, $capacity, $loadFactor) {
+ var var$3;
+ if ($capacity >= 0 && $loadFactor > 0.0) {
+ $capacity = ju_HashMap_calculateCapacity($capacity);
+ $this.$elementCount = 0;
+ $this.$elementData = $this.$newElementArray($capacity);
+ $this.$loadFactor = $loadFactor;
+ $this.$threshold = $this.$elementData.data.length * $this.$loadFactor | 0;
+ return;
+ }
+ var$3 = new jl_IllegalArgumentException;
+ var$3.$suppressionEnabled = 1;
+ var$3.$writableStackTrace = 1;
+ $rt_throw(var$3);
+}
+function ju_HashMap_clear($this) {
+ var var$1;
+ if ($this.$elementCount > 0) {
+ $this.$elementCount = 0;
+ var$1 = $this.$elementData;
+ ju_Arrays_fill(var$1, 0, var$1.data.length, null);
+ $this.$modCount1 = $this.$modCount1 + 1 | 0;
+ }
+}
+function ju_HashMap_containsKey($this, $key) {
+ return ju_HashMap_getEntry($this, $key) === null ? 0 : 1;
+}
+function ju_HashMap_containsValue($this, $value) {
+ var $i, $entry, var$4;
+ a: {
+ if ($value === null) {
+ $i = 0;
+ b: while (true) {
+ if ($i >= $this.$elementData.data.length)
+ break a;
+ $entry = $this.$elementData.data[$i];
+ while ($entry !== null) {
+ if ($entry.$value0 === null)
+ break b;
+ $entry = $entry.$next1;
+ }
+ $i = $i + 1 | 0;
+ }
+ return 1;
+ }
+ $i = 0;
+ c: while (true) {
+ if ($i >= $this.$elementData.data.length)
+ break a;
+ $entry = $this.$elementData.data[$i];
+ while ($entry !== null) {
+ var$4 = $entry.$value0;
+ if ($value !== var$4 && !$value.$equals(var$4) ? 0 : 1)
+ break c;
+ $entry = $entry.$next1;
+ }
+ $i = $i + 1 | 0;
+ }
+ return 1;
+ }
+ return 0;
+}
+function ju_HashMap_entrySet($this) {
+ var var$1;
+ var$1 = new ju_HashMap$HashMapEntrySet;
+ var$1.$associatedMap = $this;
+ return var$1;
+}
+function ju_HashMap_get($this, $key) {
+ var $m;
+ $m = ju_HashMap_getEntry($this, $key);
+ if ($m === null)
+ return null;
+ return $m.$value0;
+}
+function ju_HashMap_getEntry($this, $key) {
+ var $hash, $m;
+ if ($key !== null) {
+ $hash = $key.$hashCode0();
+ $m = ju_HashMap_findNonNullKeyEntry($this, $key, $hash & ($this.$elementData.data.length - 1 | 0), $hash);
+ } else {
+ $m = $this.$elementData.data[0];
+ while ($m !== null && $m.$key !== null) {
+ $m = $m.$next1;
+ }
+ }
+ return $m;
+}
+function ju_HashMap_findNonNullKeyEntry($this, $key, $index, $keyHash) {
+ var $m, var$5;
+ $m = $this.$elementData.data[$index];
+ while ($m !== null) {
+ if ($m.$origKeyHash == $keyHash) {
+ var$5 = $m.$key;
+ if ($key !== var$5 && !$key.$equals(var$5) ? 0 : 1)
+ break;
+ }
+ $m = $m.$next1;
+ }
+ return $m;
+}
+function ju_HashMap_findNullKeyEntry($this) {
+ var $m;
+ $m = $this.$elementData.data[0];
+ while ($m !== null && $m.$key !== null) {
+ $m = $m.$next1;
+ }
+ return $m;
+}
+function ju_HashMap_isEmpty($this) {
+ return $this.$elementCount ? 0 : 1;
+}
+function ju_HashMap_keySet($this) {
+ var var$1;
+ if ($this.$cachedKeySet === null) {
+ var$1 = new ju_HashMap$1;
+ var$1.$this$01 = $this;
+ $this.$cachedKeySet = var$1;
+ }
+ return $this.$cachedKeySet;
+}
+function ju_HashMap_put($this, $key, $value) {
+ return ju_HashMap_putImpl($this, $key, $value);
+}
+function ju_HashMap_putImpl($this, $key, $value) {
+ var $hash, $index, $entry, $result;
+ if ($key !== null) {
+ $hash = $key.$hashCode0();
+ $index = $hash & ($this.$elementData.data.length - 1 | 0);
+ $entry = ju_HashMap_findNonNullKeyEntry($this, $key, $index, $hash);
+ if ($entry === null) {
+ $this.$modCount1 = $this.$modCount1 + 1 | 0;
+ $entry = new ju_HashMap$HashEntry;
+ $result = null;
+ $entry.$key = $key;
+ $entry.$value0 = $result;
+ $entry.$origKeyHash = $hash;
+ $entry.$next1 = $this.$elementData.data[$index];
+ $this.$elementData.data[$index] = $entry;
+ $hash = $this.$elementCount + 1 | 0;
+ $this.$elementCount = $hash;
+ if ($hash > $this.$threshold)
+ ju_HashMap_rehash($this, $this.$elementData.data.length);
+ }
+ } else {
+ $entry = $this.$elementData.data[0];
+ while ($entry !== null && $entry.$key !== null) {
+ $entry = $entry.$next1;
+ }
+ if ($entry === null) {
+ $this.$modCount1 = $this.$modCount1 + 1 | 0;
+ $result = null;
+ $entry = new ju_HashMap$HashEntry;
+ $key = null;
+ $entry.$key = $result;
+ $entry.$value0 = $key;
+ $entry.$origKeyHash = 0;
+ $entry.$next1 = $this.$elementData.data[0];
+ $this.$elementData.data[0] = $entry;
+ $hash = $this.$elementCount + 1 | 0;
+ $this.$elementCount = $hash;
+ if ($hash > $this.$threshold)
+ ju_HashMap_rehash($this, $this.$elementData.data.length);
+ }
+ }
+ $result = $entry.$value0;
+ $entry.$value0 = $value;
+ return $result;
+}
+function ju_HashMap_createHashedEntry($this, $key, $index, $hash) {
+ var $entry, var$5;
+ $entry = new ju_HashMap$HashEntry;
+ var$5 = null;
+ $entry.$key = $key;
+ $entry.$value0 = var$5;
+ $entry.$origKeyHash = $hash;
+ $entry.$next1 = $this.$elementData.data[$index];
+ $this.$elementData.data[$index] = $entry;
+ return $entry;
+}
+function ju_HashMap_rehash($this, $capacity) {
+ var $length, $newData, $i, $entry, var$6, $index, $next;
+ $length = ju_HashMap_calculateCapacity(!$capacity ? 1 : $capacity << 1);
+ $newData = $this.$newElementArray($length);
+ $i = 0;
+ $capacity = $length - 1 | 0;
+ while ($i < $this.$elementData.data.length) {
+ $entry = $this.$elementData.data[$i];
+ $this.$elementData.data[$i] = null;
+ while ($entry !== null) {
+ var$6 = $newData.data;
+ $index = $entry.$origKeyHash & $capacity;
+ $next = $entry.$next1;
+ $entry.$next1 = var$6[$index];
+ var$6[$index] = $entry;
+ $entry = $next;
+ }
+ $i = $i + 1 | 0;
+ }
+ $this.$elementData = $newData;
+ $this.$threshold = $this.$elementData.data.length * $this.$loadFactor | 0;
+}
+function ju_HashMap_rehash0($this) {
+ ju_HashMap_rehash($this, $this.$elementData.data.length);
+}
+function ju_HashMap_remove($this, $key) {
+ var $entry;
+ $entry = ju_HashMap_removeEntry($this, $key);
+ if ($entry === null)
+ return null;
+ return $entry.$value0;
+}
+function ju_HashMap_removeEntry0($this, $entry) {
+ var $index, $m;
+ $index = $entry.$origKeyHash & ($this.$elementData.data.length - 1 | 0);
+ $m = $this.$elementData.data[$index];
+ if ($m === $entry)
+ $this.$elementData.data[$index] = $entry.$next1;
+ else {
+ while ($m.$next1 !== $entry) {
+ $m = $m.$next1;
+ }
+ $m.$next1 = $entry.$next1;
+ }
+ $this.$modCount1 = $this.$modCount1 + 1 | 0;
+ $this.$elementCount = $this.$elementCount - 1 | 0;
+}
+function ju_HashMap_removeEntry($this, $key) {
+ var $index, $last, $entry, $entry_0, $hash;
+ a: {
+ $index = 0;
+ $last = null;
+ if ($key === null) {
+ $entry = $this.$elementData.data[0];
+ while ($entry !== null) {
+ if ($entry.$key === null)
+ break a;
+ $entry_0 = $entry.$next1;
+ $last = $entry;
+ $entry = $entry_0;
+ }
+ } else {
+ $hash = $key.$hashCode0();
+ $index = $hash & ($this.$elementData.data.length - 1 | 0);
+ $entry = $this.$elementData.data[$index];
+ while ($entry !== null) {
+ if ($entry.$origKeyHash == $hash) {
+ $entry_0 = $entry.$key;
+ if ($key !== $entry_0 && !$key.$equals($entry_0) ? 0 : 1)
+ break;
+ }
+ $entry_0 = $entry.$next1;
+ $last = $entry;
+ $entry = $entry_0;
+ }
+ }
+ }
+ if ($entry === null)
+ return null;
+ if ($last !== null)
+ $last.$next1 = $entry.$next1;
+ else
+ $this.$elementData.data[$index] = $entry.$next1;
+ $this.$modCount1 = $this.$modCount1 + 1 | 0;
+ $this.$elementCount = $this.$elementCount - 1 | 0;
+ return $entry;
+}
+function ju_HashMap_size($this) {
+ return $this.$elementCount;
+}
+function ju_HashMap_values($this) {
+ var var$1;
+ if ($this.$cachedValues === null) {
+ var$1 = new ju_HashMap$2;
+ var$1.$this$00 = $this;
+ $this.$cachedValues = var$1;
+ }
+ return $this.$cachedValues;
+}
+function ju_HashMap_computeHashCode($key) {
+ return $key.$hashCode0();
+}
+function otjt_Int32Array() {
+ otjt_ArrayBufferView.call(this);
+}
+function nle_EaglerImage() {
+ var a = this; jl_Object.call(a);
+ a.$data = null;
+ a.$w0 = 0;
+ a.$h = 0;
+ a.$alpha = 0;
+}
+function nle_EaglerImage__init_(var_0, var_1, var_2, var_3) {
+ var var_4 = new nle_EaglerImage();
+ nle_EaglerImage__init_0(var_4, var_0, var_1, var_2, var_3);
+ return var_4;
+}
+function nle_EaglerImage__init_0($this, $pdata, $pw, $ph, $palpha) {
+ var var$5;
+ if ($pdata.data.length == $rt_imul($pw, $ph)) {
+ $this.$w0 = $pw;
+ $this.$h = $ph;
+ $this.$alpha = $palpha;
+ $this.$data = $pdata;
+ return;
+ }
+ var$5 = new jl_IllegalArgumentException;
+ var$5.$suppressionEnabled = 1;
+ var$5.$writableStackTrace = 1;
+ var$5.$message = $rt_s(345);
+ $rt_throw(var$5);
+}
+function nle_EaglerImage_loadImage($file) {
+ var $p, $e, $$je;
+ a: {
+ try {
+ $p = cbpd_Decoder_readInPNG(cbpd_Decoder__init_(ji_ByteArrayInputStream__init_($file)));
+ $e = nle_EaglerImage__init_(cbpd_PNG_getColor($p), cbpd_PNG_getWidth($p).lo, cbpd_PNG_getHeight($p).lo, cbpc_IHDR_getBpp($p.$ihdr) != 4 ? 0 : 1);
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof ji_IOException) {
+ $e = $$je;
+ break a;
+ } else if ($$je instanceof cbpd_DecodeException) {
+ $e = $$je;
+ jl_Throwable_printStackTrace($e);
+ return null;
+ } else {
+ throw $$e;
+ }
+ }
+ return $e;
+ }
+ jl_Throwable_printStackTrace($e);
+ return null;
+}
+function nle_EaglerImage_getSubImage($this, $x, $y, $pw, $ph) {
+ var $img, $i;
+ $img = $rt_createIntArray($rt_imul($pw, $ph));
+ $i = 0;
+ while ($i < $ph) {
+ jl_System_arraycopy($this.$data, $rt_imul($i + $y | 0, $this.$w0) + $x | 0, $img, $rt_imul($i, $pw), $pw);
+ $i = $i + 1 | 0;
+ }
+ return nle_EaglerImage__init_($img, $pw, $ph, $this.$alpha);
+}
+function nms_GLAllocation() {
+ jl_Object.call(this);
+}
+var nms_GLAllocation_field_74531_a = null;
+var nms_GLAllocation_field_74530_b = null;
+function nms_GLAllocation__init_0() {
+ var var_0 = new nms_GLAllocation();
+ nms_GLAllocation__init_(var_0);
+ return var_0;
+}
+function nms_GLAllocation__init_($this) {
+ return;
+}
+function nms_GLAllocation_generateDisplayLists($par0) {
+ var $var1;
+ jl_Object_monitorEnterSync($rt_cls(nms_GLAllocation));
+ try {
+ $var1 = nleg_EaglerAdapterGL30_glGenLists($par0);
+ ju_HashMap_putImpl(nms_GLAllocation_field_74531_a, jl_Integer_valueOf($var1), jl_Integer_valueOf($par0));
+ return $var1;
+ } finally {
+ jl_Object_monitorExitSync($rt_cls(nms_GLAllocation));
+ }
+}
+function nms_GLAllocation_generateTextureNames() {
+ var var$1, var$2, $var0;
+ jl_Object_monitorEnterSync($rt_cls(nms_GLAllocation));
+ try {
+ nleg_EaglerAdapterGL30_$callClinit();
+ var$1 = nleg_EaglerAdapterGL30_texObjects;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ var$2 = new nlea_EaglerAdapterImpl2$TextureGL;
+ var$2.$obj = nlea_EaglerAdapterImpl2_webgl.createTexture();
+ $var0 = nleg_GLObjectMap_register(var$1, var$2);
+ ju_ArrayList_add(nms_GLAllocation_field_74530_b, jl_Integer_valueOf($var0));
+ return $var0;
+ } finally {
+ jl_Object_monitorExitSync($rt_cls(nms_GLAllocation));
+ }
+}
+function nms_GLAllocation_deleteDisplayLists($par0) {
+ var var$2;
+ jl_Object_monitorEnterSync($rt_cls(nms_GLAllocation));
+ try {
+ var$2 = ju_HashMap_removeEntry(nms_GLAllocation_field_74531_a, jl_Integer_valueOf($par0));
+ nleg_EaglerAdapterGL30_glDeleteLists($par0, (var$2 === null ? null : var$2.$value0).$value);
+ } finally {
+ jl_Object_monitorExitSync($rt_cls(nms_GLAllocation));
+ }
+}
+function nms_GLAllocation_createDirectByteBuffer($par0) {
+ var var$2, var$3, var$4, var$5;
+ jl_Object_monitorEnterSync($rt_cls(nms_GLAllocation));
+ try {
+ nleg_EaglerAdapterGL30_$callClinit();
+ if (!nleg_EaglerAdapterGL30_isWebGL) {
+ var$2 = jn_ByteBuffer_allocateDirect($par0);
+ var$2.$order = jn_ByteOrder_BIG_ENDIAN;
+ } else {
+ var$3 = $rt_createByteArray($par0);
+ var$4 = var$3.data.length;
+ var$2 = new jn_ByteBufferImpl;
+ var$5 = 0 + var$4 | 0;
+ var$2.$mark = (-1);
+ var$2.$capacity = var$4;
+ var$2.$limit = var$4;
+ var$2.$order = jn_ByteOrder_BIG_ENDIAN;
+ var$2.$start = 0;
+ var$2.$array = var$3;
+ var$2.$position = 0;
+ var$2.$limit = var$5;
+ var$2.$direct = 0;
+ var$2.$readOnly = 0;
+ var$2.$order = jn_ByteOrder_BIG_ENDIAN;
+ }
+ return var$2;
+ } finally {
+ jl_Object_monitorExitSync($rt_cls(nms_GLAllocation));
+ }
+}
+function nms_GLAllocation_createDirectIntBuffer($par0) {
+ var var$2, var$3, var$4, var$5;
+ nleg_EaglerAdapterGL30_$callClinit();
+ if (!nleg_EaglerAdapterGL30_isWebGL)
+ var$2 = jn_ByteBufferImpl_asIntBuffer(nms_GLAllocation_createDirectByteBuffer($par0 << 2));
+ else {
+ var$3 = $rt_createIntArray($par0);
+ var$4 = var$3.data.length;
+ var$2 = new jn_IntBufferOverArray;
+ var$5 = 0 + var$4 | 0;
+ var$2.$mark = (-1);
+ var$2.$capacity = var$4;
+ var$2.$limit = var$4;
+ var$2.$position = 0;
+ var$2.$limit = var$5;
+ var$2.$start1 = 0;
+ var$2.$readOnly1 = 0;
+ var$2.$array2 = var$3;
+ }
+ return var$2;
+}
+function nms_GLAllocation__clinit_() {
+ var var$1;
+ nms_GLAllocation_field_74531_a = ju_HashMap__init_1(16, 0.75);
+ var$1 = new ju_ArrayList;
+ var$1.$array1 = $rt_createArray(jl_Object, 10);
+ nms_GLAllocation_field_74530_b = var$1;
+}
+function jl_Float() {
+ jl_Number.call(this);
+ this.$value3 = 0.0;
+}
+var jl_Float_NaN = 0.0;
+var jl_Float_TYPE = null;
+function jl_Float_floatValue($this) {
+ return $this.$value3;
+}
+function jl_Float_toString($this) {
+ var var$1, var$2;
+ var$1 = $this.$value3;
+ var$2 = new jl_StringBuilder;
+ var$2.$buffer = $rt_createCharArray(16);
+ jl_AbstractStringBuilder_insert2(var$2, var$2.$length, var$1);
+ return jl_String__init_0(var$2.$buffer, 0, var$2.$length);
+}
+function jl_Float_equals($this, $other) {
+ if ($this === $other)
+ return 1;
+ return $other instanceof jl_Float && $other.$value3 === $this.$value3 ? 1 : 0;
+}
+function jl_Float_hashCode($this) {
+ return $rt_floatToIntBits($this.$value3);
+}
+function jl_Float_floatToRawIntBits($value) {
+ return $rt_floatToIntBits($value);
+}
+function jl_Float__clinit_() {
+ jl_Float_NaN = NaN;
+ jl_Float_TYPE = $rt_cls($rt_floatcls());
+}
+function oti_AsyncCallback() {
+}
+function otpp_AsyncCallbackWrapper() {
+ jl_Object.call(this);
+ this.$realAsyncCallback = null;
+}
+function otpp_AsyncCallbackWrapper_create($realAsyncCallback) {
+ var var$2;
+ var$2 = new otpp_AsyncCallbackWrapper;
+ var$2.$realAsyncCallback = $realAsyncCallback;
+ return var$2;
+}
+function otpp_AsyncCallbackWrapper_complete($this, $result) {
+ $this.$realAsyncCallback.$complete($result);
+}
+function otpp_AsyncCallbackWrapper_error($this, $e) {
+ $this.$realAsyncCallback.$error($e);
+}
+function otja_XMLHttpRequest() {
+ jl_Object.call(this);
+}
+function otja_ReadyStateChangeHandler() {
+}
+function nlea_EaglerAdapterImpl2$1() {
+ var a = this; jl_Object.call(a);
+ a.$val$request = null;
+ a.$val$cb = null;
+}
+function nlea_EaglerAdapterImpl2$1_stateChanged($this) {
+ var $bl, var$2, $i;
+ if ($this.$val$request.readyState == 4) {
+ $bl = new Uint8Array($this.$val$request.response);
+ var$2 = $rt_createByteArray($bl.byteLength);
+ nlea_EaglerAdapterImpl2_$callClinit();
+ nlea_EaglerAdapterImpl2_loadedPackage = var$2;
+ $i = 0;
+ while ($i < nlea_EaglerAdapterImpl2_loadedPackage.data.length) {
+ nlea_EaglerAdapterImpl2_loadedPackage.data[$i] = $bl[$i] << 24 >> 24;
+ $i = $i + 1 | 0;
+ }
+ $this.$val$cb.$realAsyncCallback.$complete($rt_s(346));
+ }
+}
+function nlea_EaglerAdapterImpl2$1_stateChanged$exported$0(var$0) {
+ nlea_EaglerAdapterImpl2$1_stateChanged(var$0);
+}
+function otp_PlatformRunnable() {
+}
+function otr_EventQueue$Event() {
+}
+function jl_ThreadInterruptHandler() {
+}
+function jl_Thread$SleepHandler() {
+ var a = this; jl_Object.call(a);
+ a.$thread = null;
+ a.$callback = null;
+ a.$isInterrupted = 0;
+ a.$scheduleId = 0;
+}
+function jl_Thread$SleepHandler_run($this) {
+ var var$1, var$2;
+ if (!$this.$isInterrupted) {
+ $this.$thread.$interruptHandler = null;
+ var$1 = $this.$thread;
+ if (jl_Thread_currentThread0 !== var$1)
+ jl_Thread_currentThread0 = var$1;
+ jl_Thread_currentThread0.$timeSliceStart = jl_System_currentTimeMillis();
+ var$1 = $this.$callback;
+ var$2 = null;
+ var$1.$realAsyncCallback.$complete(var$2);
+ }
+}
+function jl_AutoCloseable() {
+}
+function ji_Closeable() {
+}
+function ji_InputStream() {
+ jl_Object.call(this);
+}
+function ji_InputStream_read($this, $b) {
+ return $this.$read($b, 0, $b.data.length);
+}
+function ji_InputStream_read0($this, $b, $off, $len) {
+ var $i, $bt, var$6, var$7;
+ $i = 0;
+ while ($i < $len) {
+ $bt = $this.$read1();
+ if ($bt < 0) {
+ if (!$i)
+ $i = (-1);
+ return $i;
+ }
+ var$6 = $b.data;
+ var$7 = $off + 1 | 0;
+ var$6[$off] = $bt << 24 >> 24;
+ $i = $i + 1 | 0;
+ $off = var$7;
+ }
+ if ($len <= 0)
+ $len = (-1);
+ return $len;
+}
+function ji_InputStream_close($this) {
+ return;
+}
+function ji_ByteArrayInputStream() {
+ var a = this; ji_InputStream.call(a);
+ a.$buf = null;
+ a.$pos = 0;
+ a.$mark0 = 0;
+ a.$count0 = 0;
+}
+function ji_ByteArrayInputStream__init_(var_0) {
+ var var_1 = new ji_ByteArrayInputStream();
+ ji_ByteArrayInputStream__init_0(var_1, var_0);
+ return var_1;
+}
+function ji_ByteArrayInputStream__init_0($this, $buf) {
+ var var$2;
+ var$2 = $buf.data.length;
+ $this.$buf = $buf;
+ $this.$pos = 0;
+ $this.$mark0 = 0;
+ $this.$count0 = 0 + var$2 | 0;
+}
+function ji_ByteArrayInputStream_read($this) {
+ var var$1, var$2, var$3;
+ if ($this.$pos >= $this.$count0)
+ var$1 = (-1);
+ else {
+ var$2 = $this.$buf.data;
+ var$3 = $this.$pos;
+ $this.$pos = var$3 + 1 | 0;
+ var$1 = var$2[var$3] & 255;
+ }
+ return var$1;
+}
+function ji_ByteArrayInputStream_read0($this, $b, $off, $bytesToRead) {
+ var $bytesToRead_0, $i, var$6, var$7, var$8;
+ $bytesToRead_0 = $this.$count0 - $this.$pos | 0;
+ if ($bytesToRead < $bytesToRead_0)
+ $bytesToRead_0 = $bytesToRead;
+ $i = 0;
+ while ($i < $bytesToRead_0) {
+ var$6 = $b.data;
+ $bytesToRead = $off + 1 | 0;
+ var$7 = $this.$buf.data;
+ var$8 = $this.$pos;
+ $this.$pos = var$8 + 1 | 0;
+ var$6[$off] = var$7[var$8];
+ $i = $i + 1 | 0;
+ $off = $bytesToRead;
+ }
+ if ($bytesToRead_0 <= 0)
+ $bytesToRead_0 = (-1);
+ return $bytesToRead_0;
+}
+function ji_ByteArrayInputStream_available($this) {
+ return $this.$count0 - $this.$pos | 0;
+}
+function ji_ByteArrayInputStream_close($this) {
+ return;
+}
+function ji_FilterInputStream() {
+ ji_InputStream.call(this);
+ this.$in = null;
+}
+function ji_FilterInputStream_available($this) {
+ return $this.$in.$available();
+}
+function ji_FilterInputStream_close($this) {
+ $this.$in.$close();
+}
+function ji_FilterInputStream_read($this) {
+ return $this.$in.$read1();
+}
+function ji_FilterInputStream_read0($this, $buffer) {
+ return $this.$read($buffer, 0, $buffer.data.length);
+}
+function ji_DataInput() {
+}
+function ji_DataInputStream() {
+ ji_FilterInputStream.call(this);
+ this.$buff = null;
+}
+function ji_DataInputStream_read($this, $buffer) {
+ var var$2;
+ var$2 = $buffer.data;
+ return $this.$in.$read($buffer, 0, var$2.length);
+}
+function ji_DataInputStream_readBoolean($this) {
+ var $temp, var$2;
+ $temp = $this.$in.$read1();
+ if ($temp >= 0)
+ return !$temp ? 0 : 1;
+ var$2 = new ji_EOFException;
+ var$2.$suppressionEnabled = 1;
+ var$2.$writableStackTrace = 1;
+ $rt_throw(var$2);
+}
+function ji_DataInputStream_readByte($this) {
+ var $temp, var$2;
+ $temp = $this.$in.$read1();
+ if ($temp >= 0)
+ return $temp << 24 >> 24;
+ var$2 = new ji_EOFException;
+ var$2.$suppressionEnabled = 1;
+ var$2.$writableStackTrace = 1;
+ $rt_throw(var$2);
+}
+function ji_DataInputStream_readToBuff($this, $count) {
+ var $offset, $bytesRead;
+ $offset = 0;
+ while ($offset < $count) {
+ $bytesRead = $this.$in.$read($this.$buff, $offset, $count - $offset | 0);
+ if ($bytesRead == (-1))
+ return $bytesRead;
+ $offset = $offset + $bytesRead | 0;
+ }
+ return $offset;
+}
+function ji_DataInputStream_readChar($this) {
+ var var$1;
+ if (ji_DataInputStream_readToBuff($this, 2) < 0) {
+ var$1 = new ji_EOFException;
+ var$1.$suppressionEnabled = 1;
+ var$1.$writableStackTrace = 1;
+ $rt_throw(var$1);
+ }
+ return (($this.$buff.data[0] & 255) << 8 | $this.$buff.data[1] & 255) & 65535;
+}
+function ji_DataInputStream_readDouble($this) {
+ return $rt_longBitsToDouble(ji_DataInputStream_readLong($this));
+}
+function ji_DataInputStream_readFloat($this) {
+ return $rt_intBitsToFloat(ji_DataInputStream_readInt($this));
+}
+function ji_DataInputStream_readFully0($this, $buffer) {
+ ji_DataInputStream_readFully($this, $buffer, 0, $buffer.data.length);
+}
+function ji_DataInputStream_readFully($this, $buffer, $offset, $length) {
+ var var$4, $result;
+ if ($length < 0) {
+ var$4 = new jl_IndexOutOfBoundsException;
+ var$4.$suppressionEnabled = 1;
+ var$4.$writableStackTrace = 1;
+ $rt_throw(var$4);
+ }
+ if (!$length)
+ return;
+ if ($this.$in === null) {
+ var$4 = new jl_NullPointerException;
+ var$4.$suppressionEnabled = 1;
+ var$4.$writableStackTrace = 1;
+ $rt_throw(var$4);
+ }
+ if ($buffer === null) {
+ var$4 = new jl_NullPointerException;
+ var$4.$suppressionEnabled = 1;
+ var$4.$writableStackTrace = 1;
+ $rt_throw(var$4);
+ }
+ if ($offset >= 0 && $offset <= ($buffer.data.length - $length | 0)) {
+ while ($length > 0) {
+ $result = $this.$in.$read($buffer, $offset, $length);
+ if ($result < 0) {
+ var$4 = new ji_EOFException;
+ var$4.$suppressionEnabled = 1;
+ var$4.$writableStackTrace = 1;
+ $rt_throw(var$4);
+ }
+ $offset = $offset + $result | 0;
+ $length = $length - $result | 0;
+ }
+ return;
+ }
+ var$4 = new jl_IndexOutOfBoundsException;
+ var$4.$suppressionEnabled = 1;
+ var$4.$writableStackTrace = 1;
+ $rt_throw(var$4);
+}
+function ji_DataInputStream_readInt($this) {
+ var var$1;
+ if (ji_DataInputStream_readToBuff($this, 4) < 0) {
+ var$1 = new ji_EOFException;
+ var$1.$suppressionEnabled = 1;
+ var$1.$writableStackTrace = 1;
+ $rt_throw(var$1);
+ }
+ return ($this.$buff.data[0] & 255) << 24 | ($this.$buff.data[1] & 255) << 16 | ($this.$buff.data[2] & 255) << 8 | $this.$buff.data[3] & 255;
+}
+function ji_DataInputStream_readLong($this) {
+ var var$1;
+ if (ji_DataInputStream_readToBuff($this, 8) < 0) {
+ var$1 = new ji_EOFException;
+ var$1.$suppressionEnabled = 1;
+ var$1.$writableStackTrace = 1;
+ $rt_throw(var$1);
+ }
+ return Long_or(Long_shl(Long_and(Long_fromInt(($this.$buff.data[0] & 255) << 24 | ($this.$buff.data[1] & 255) << 16 | ($this.$buff.data[2] & 255) << 8 | $this.$buff.data[3] & 255), new Long(4294967295, 0)), 32), Long_and(Long_fromInt(($this.$buff.data[4] & 255) << 24 | ($this.$buff.data[5] & 255) << 16 | ($this.$buff.data[6] & 255) << 8 | $this.$buff.data[7] & 255), new Long(4294967295, 0)));
+}
+function ji_DataInputStream_readShort($this) {
+ var var$1;
+ if (ji_DataInputStream_readToBuff($this, 2) < 0) {
+ var$1 = new ji_EOFException;
+ var$1.$suppressionEnabled = 1;
+ var$1.$writableStackTrace = 1;
+ $rt_throw(var$1);
+ }
+ return (($this.$buff.data[0] & 255) << 24 >> 16 | $this.$buff.data[1] & 255) << 16 >> 16;
+}
+function ji_DataInputStream_readUnsignedByte($this) {
+ var $temp, var$2;
+ $temp = $this.$in.$read1();
+ if ($temp >= 0)
+ return $temp & 255;
+ var$2 = new ji_EOFException;
+ var$2.$suppressionEnabled = 1;
+ var$2.$writableStackTrace = 1;
+ $rt_throw(var$2);
+}
+function ji_DataInputStream_readUnsignedShort($this) {
+ var var$1;
+ if (ji_DataInputStream_readToBuff($this, 2) < 0) {
+ var$1 = new ji_EOFException;
+ var$1.$suppressionEnabled = 1;
+ var$1.$writableStackTrace = 1;
+ $rt_throw(var$1);
+ }
+ return (($this.$buff.data[0] & 255) << 8 | $this.$buff.data[1] & 255) & 65535;
+}
+function ji_DataInputStream_readUTF($this) {
+ var var$1, var$2, var$3;
+ var$1 = ji_DataInputStream_readUnsignedShort($this);
+ var$2 = $rt_createByteArray(var$1);
+ var$3 = $rt_createCharArray(var$1);
+ ji_DataInputStream_readFully($this, var$2, 0, var$1);
+ return ji_DataInputStream_convertUTF8WithBuf(var$2, var$3, 0, var$1);
+}
+function ji_DataInputStream_decodeUTF($this, $utfSize) {
+ var var$2, var$3;
+ var$2 = $rt_createByteArray($utfSize);
+ var$3 = $rt_createCharArray($utfSize);
+ ji_DataInputStream_readFully($this, var$2, 0, $utfSize);
+ return ji_DataInputStream_convertUTF8WithBuf(var$2, var$3, 0, $utfSize);
+}
+function ji_DataInputStream_convertUTF8WithBuf($buf, $out, $offset, $utfSize) {
+ var $count, $s, var$7, var$8, var$9, $ch, $a, var$12, $b, $b_0, $c;
+ $count = 0;
+ $s = 0;
+ a: {
+ while ($count < $utfSize) {
+ var$7 = $buf.data;
+ var$8 = $out.data;
+ var$9 = $count + 1 | 0;
+ $ch = var$7[$offset + $count | 0] & 65535;
+ var$8[$s] = $ch;
+ $a = var$8[$s];
+ if ($ch < 128)
+ $s = $s + 1 | 0;
+ else if (($a & 224) == 192) {
+ if (var$9 >= $utfSize) {
+ var$12 = new ji_UTFDataFormatException;
+ var$12.$suppressionEnabled = 1;
+ var$12.$writableStackTrace = 1;
+ var$12.$message = $rt_s(347);
+ $rt_throw(var$12);
+ }
+ $count = var$9 + 1 | 0;
+ $b = var$7[$offset + var$9 | 0];
+ if (($b & 192) != 128) {
+ var$12 = new ji_UTFDataFormatException;
+ var$12.$suppressionEnabled = 1;
+ var$12.$writableStackTrace = 1;
+ var$12.$message = $rt_s(348);
+ $rt_throw(var$12);
+ }
+ $b_0 = $s + 1 | 0;
+ var$8[$s] = (($a & 31) << 6 | $b & 63) & 65535;
+ $s = $b_0;
+ var$9 = $count;
+ } else {
+ if (($a & 240) != 224) {
+ var$12 = new ji_UTFDataFormatException;
+ var$12.$suppressionEnabled = 1;
+ var$12.$writableStackTrace = 1;
+ var$12.$message = $rt_s(348);
+ $rt_throw(var$12);
+ }
+ $count = var$9 + 1 | 0;
+ if ($count >= $utfSize) {
+ var$12 = new ji_UTFDataFormatException;
+ var$12.$suppressionEnabled = 1;
+ var$12.$writableStackTrace = 1;
+ var$12.$message = $rt_s(348);
+ $rt_throw(var$12);
+ }
+ $b_0 = var$7[$offset + var$9 | 0];
+ var$9 = $count + 1 | 0;
+ $c = var$7[$offset + $count | 0];
+ if (($b_0 & 192) != 128)
+ break a;
+ if (($c & 192) != 128)
+ break a;
+ $ch = $s + 1 | 0;
+ var$8[$s] = (($a & 15) << 12 | ($b_0 & 63) << 6 | $c & 63) & 65535;
+ $s = $ch;
+ }
+ $count = var$9;
+ }
+ return jl_String__init_0($out, 0, $s);
+ }
+ var$12 = new ji_UTFDataFormatException;
+ var$12.$suppressionEnabled = 1;
+ var$12.$writableStackTrace = 1;
+ var$12.$message = $rt_s(348);
+ $rt_throw(var$12);
+}
+function jnc_Charset() {
+ var a = this; jl_Object.call(a);
+ a.$canonicalName = null;
+ a.$aliases = null;
+}
+function jnc_Charset__init_0(var_0, var_1) {
+ var var_2 = new jnc_Charset();
+ jnc_Charset__init_(var_2, var_0, var_1);
+ return var_2;
+}
+function jnc_Charset__init_($this, $canonicalName, $aliases) {
+ var var$3, var$4, var$5;
+ var$3 = $aliases.data;
+ jnc_Charset_checkCanonicalName($canonicalName);
+ var$4 = var$3.length;
+ var$5 = 0;
+ while (var$5 < var$4) {
+ jnc_Charset_checkCanonicalName(var$3[var$5]);
+ var$5 = var$5 + 1 | 0;
+ }
+ $this.$canonicalName = $canonicalName;
+ $this.$aliases = $aliases.$clone();
+}
+function jnc_Charset_checkCanonicalName($name) {
+ var var$2, $i, $c;
+ if ($name.$characters.data.length ? 0 : 1) {
+ var$2 = new jnc_IllegalCharsetNameException;
+ var$2.$suppressionEnabled = 1;
+ var$2.$writableStackTrace = 1;
+ var$2.$charsetName = $name;
+ $rt_throw(var$2);
+ }
+ if (!jnc_Charset_isValidCharsetStart(jl_String_charAt($name, 0))) {
+ var$2 = new jnc_IllegalCharsetNameException;
+ var$2.$suppressionEnabled = 1;
+ var$2.$writableStackTrace = 1;
+ var$2.$charsetName = $name;
+ $rt_throw(var$2);
+ }
+ $i = 1;
+ while ($i < $name.$characters.data.length) {
+ a: {
+ $c = jl_String_charAt($name, $i);
+ switch ($c) {
+ case 43:
+ case 45:
+ case 46:
+ case 58:
+ case 95:
+ break;
+ default:
+ if (jnc_Charset_isValidCharsetStart($c))
+ break a;
+ else {
+ var$2 = new jnc_IllegalCharsetNameException;
+ var$2.$suppressionEnabled = 1;
+ var$2.$writableStackTrace = 1;
+ var$2.$charsetName = $name;
+ $rt_throw(var$2);
+ }
+ }
+ }
+ $i = $i + 1 | 0;
+ }
+}
+function jnc_Charset_isValidCharsetStart($c) {
+ return !($c >= 48 && $c <= 57) && !($c >= 97 && $c <= 122) && $c < 65 && $c > 90 ? 0 : 1;
+}
+function jnc_Charset_forName($charsetName) {
+ var $charset;
+ if ($charsetName === null) {
+ $charsetName = new jl_IllegalArgumentException;
+ $charsetName.$suppressionEnabled = 1;
+ $charsetName.$writableStackTrace = 1;
+ $charsetName.$message = $rt_s(349);
+ $rt_throw($charsetName);
+ }
+ jnc_Charset_checkCanonicalName($charsetName);
+ $charset = ju_HashMap_getEntry(jnc_Charset$Charsets_value, jl_String_toUpperCase($charsetName));
+ $charset = $charset === null ? null : $charset.$value0;
+ if ($charset !== null)
+ return $charset;
+ $charset = new jnc_UnsupportedCharsetException;
+ $charset.$suppressionEnabled = 1;
+ $charset.$writableStackTrace = 1;
+ $charset.$charsetName0 = $charsetName;
+ $rt_throw($charset);
+}
+function jnc_Charset_decode($this, $bb) {
+ var $e, var$3, $$je;
+ a: {
+ try {
+ $bb = jnc_CharsetDecoder_decode(jnc_CharsetDecoder_onUnmappableCharacter(jnc_CharsetDecoder_onMalformedInput(jnci_UTF8Charset_newDecoder($this), jnc_CodingErrorAction_REPLACE), jnc_CodingErrorAction_REPLACE), $bb);
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof jnc_CharacterCodingException) {
+ $e = $$je;
+ break a;
+ } else {
+ throw $$e;
+ }
+ }
+ return $bb;
+ }
+ var$3 = new jl_AssertionError;
+ var$3.$suppressionEnabled = 1;
+ var$3.$writableStackTrace = 1;
+ var$3.$message = $rt_s(350);
+ var$3.$cause = $e;
+ $rt_throw(var$3);
+}
+function jnc_Charset_encode($this, $cb) {
+ var $e, var$3, $$je;
+ a: {
+ try {
+ $cb = jnc_CharsetEncoder_encode(jnc_CharsetEncoder_onUnmappableCharacter(jnc_CharsetEncoder_onMalformedInput(jnci_UTF8Charset_newEncoder($this), jnc_CodingErrorAction_REPLACE), jnc_CodingErrorAction_REPLACE), $cb);
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof jnc_CharacterCodingException) {
+ $e = $$je;
+ break a;
+ } else {
+ throw $$e;
+ }
+ }
+ return $cb;
+ }
+ var$3 = new jl_AssertionError;
+ var$3.$suppressionEnabled = 1;
+ var$3.$writableStackTrace = 1;
+ var$3.$message = $rt_s(350);
+ var$3.$cause = $e;
+ $rt_throw(var$3);
+}
+function cjj_InflaterInputStream() {
+ var a = this; ji_FilterInputStream.call(a);
+ a.$inflater = null;
+ a.$buf2 = null;
+ a.$closed = 0;
+ a.$eof0 = 0;
+ a.$close_in = 0;
+ a.$myinflater = 0;
+ a.$byte1 = null;
+ a.$b = null;
+}
+function cjj_InflaterInputStream__init_(var_0, var_1, var_2, var_3) {
+ var var_4 = new cjj_InflaterInputStream();
+ cjj_InflaterInputStream__init_0(var_4, var_0, var_1, var_2, var_3);
+ return var_4;
+}
+function cjj_InflaterInputStream__init_0($this, $in, $inflater, $size, $close_in) {
+ $this.$in = $in;
+ $this.$closed = 0;
+ $this.$eof0 = 0;
+ $this.$close_in = 1;
+ $this.$myinflater = 0;
+ $this.$byte1 = $rt_createByteArray(1);
+ $this.$b = $rt_createByteArray(512);
+ if ($in !== null && $inflater !== null) {
+ if ($size > 0) {
+ $this.$inflater = $inflater;
+ $this.$buf2 = $rt_createByteArray($size);
+ $this.$close_in = $close_in;
+ return;
+ }
+ $inflater = new jl_IllegalArgumentException;
+ $inflater.$suppressionEnabled = 1;
+ $inflater.$writableStackTrace = 1;
+ $inflater.$message = $rt_s(351);
+ $rt_throw($inflater);
+ }
+ $in = new jl_NullPointerException;
+ $in.$suppressionEnabled = 1;
+ $in.$writableStackTrace = 1;
+ $rt_throw($in);
+}
+function cjj_InflaterInputStream_read($this) {
+ var var$1;
+ if ($this.$closed) {
+ var$1 = new ji_IOException;
+ var$1.$suppressionEnabled = 1;
+ var$1.$writableStackTrace = 1;
+ var$1.$message = $rt_s(352);
+ $rt_throw(var$1);
+ }
+ return cjj_InflaterInputStream_read0($this, $this.$byte1, 0, 1) == (-1) ? (-1) : $this.$byte1.data[0] & 255;
+}
+function cjj_InflaterInputStream_read0($this, $b, $off, $len) {
+ var var$4, $n, $err, var$7;
+ if ($this.$closed) {
+ var$4 = new ji_IOException;
+ var$4.$suppressionEnabled = 1;
+ var$4.$writableStackTrace = 1;
+ var$4.$message = $rt_s(352);
+ $rt_throw(var$4);
+ }
+ if ($b === null) {
+ var$4 = new jl_NullPointerException;
+ var$4.$suppressionEnabled = 1;
+ var$4.$writableStackTrace = 1;
+ $rt_throw(var$4);
+ }
+ if ($off >= 0 && $len >= 0 && $len <= ($b.data.length - $off | 0)) {
+ if (!$len)
+ return 0;
+ if ($this.$eof0)
+ return (-1);
+ $n = 0;
+ var$4 = $this.$inflater;
+ var$4.$next_out = $b;
+ var$4.$next_out_index = $off;
+ var$4.$avail_out = $len;
+ a: {
+ while (!$this.$eof0) {
+ if (!$this.$inflater.$avail_in)
+ cjj_InflaterInputStream_fill($this);
+ var$4 = $this.$inflater;
+ if (var$4.$istate === null)
+ $err = (-2);
+ else {
+ $err = cjj_Inflate_inflate(var$4.$istate, 0);
+ if ($err == 1)
+ var$4.$finished = 1;
+ }
+ b: {
+ $n = $n + ($this.$inflater.$next_out_index - $off | 0) | 0;
+ $off = $this.$inflater.$next_out_index;
+ switch ($err) {
+ case -3:
+ var$4 = new ji_IOException;
+ var$7 = $this.$inflater.$msg;
+ var$4.$suppressionEnabled = 1;
+ var$4.$writableStackTrace = 1;
+ var$4.$message = var$7;
+ $rt_throw(var$4);
+ case 1:
+ case 2:
+ break;
+ default:
+ break b;
+ }
+ $this.$eof0 = 1;
+ if ($err == 2)
+ return (-1);
+ }
+ if (!$this.$inflater.$avail_out)
+ break a;
+ }
+ }
+ return $n;
+ }
+ var$4 = new jl_IndexOutOfBoundsException;
+ var$4.$suppressionEnabled = 1;
+ var$4.$writableStackTrace = 1;
+ $rt_throw(var$4);
+}
+function cjj_InflaterInputStream_available($this) {
+ var var$1;
+ if (!$this.$closed) {
+ if (!$this.$eof0)
+ return 1;
+ return 0;
+ }
+ var$1 = new ji_IOException;
+ var$1.$suppressionEnabled = 1;
+ var$1.$writableStackTrace = 1;
+ var$1.$message = $rt_s(352);
+ $rt_throw(var$1);
+}
+function cjj_InflaterInputStream_close($this) {
+ if (!$this.$closed) {
+ if ($this.$myinflater)
+ cjj_Inflater_end($this.$inflater);
+ if ($this.$close_in)
+ $this.$in.$close();
+ $this.$closed = 1;
+ }
+}
+function cjj_InflaterInputStream_fill($this) {
+ var var$1, $len;
+ if ($this.$closed) {
+ var$1 = new ji_IOException;
+ var$1.$suppressionEnabled = 1;
+ var$1.$writableStackTrace = 1;
+ var$1.$message = $rt_s(352);
+ $rt_throw(var$1);
+ }
+ a: {
+ $len = $this.$in.$read($this.$buf2, 0, $this.$buf2.data.length);
+ if ($len == (-1)) {
+ if ($this.$inflater.$istate.$wrap0)
+ break a;
+ if ($this.$inflater.$istate.$mode != 12 ? 0 : 1)
+ break a;
+ $this.$buf2.data[0] = 0;
+ $len = 1;
+ }
+ cjj_ZStream_setInput($this.$inflater, $this.$buf2, 0, $len, 1);
+ return;
+ }
+ if (Long_ne($this.$inflater.$istate.$was, Long_fromInt(-1))) {
+ var$1 = new ji_IOException;
+ var$1.$suppressionEnabled = 1;
+ var$1.$writableStackTrace = 1;
+ var$1.$message = $rt_s(353);
+ $rt_throw(var$1);
+ }
+ var$1 = new ji_EOFException;
+ var$1.$suppressionEnabled = 1;
+ var$1.$writableStackTrace = 1;
+ var$1.$message = $rt_s(354);
+ $rt_throw(var$1);
+}
+function nle_GeneralDigest() {
+ var a = this; jl_Object.call(a);
+ a.$xBuf = null;
+ a.$xBufOff = 0;
+ a.$byteCount = Long_ZERO;
+}
+function nle_GeneralDigest_update0($this, $in) {
+ var var$2, var$3;
+ var$2 = $this.$xBuf.data;
+ var$3 = $this.$xBufOff;
+ $this.$xBufOff = var$3 + 1 | 0;
+ var$2[var$3] = $in;
+ if ($this.$xBufOff == $this.$xBuf.data.length) {
+ nle_SHA1Digest_processWord($this, $this.$xBuf, 0);
+ $this.$xBufOff = 0;
+ }
+ $this.$byteCount = Long_add($this.$byteCount, Long_fromInt(1));
+}
+function nle_GeneralDigest_update($this, $in, $inOff, $len) {
+ a: {
+ while ($this.$xBufOff) {
+ if ($len <= 0)
+ break a;
+ nle_GeneralDigest_update0($this, $in.data[$inOff]);
+ $inOff = $inOff + 1 | 0;
+ $len = $len + (-1) | 0;
+ }
+ }
+ while ($len > $this.$xBuf.data.length) {
+ nle_SHA1Digest_processWord($this, $in, $inOff);
+ $inOff = $inOff + $this.$xBuf.data.length | 0;
+ $len = $len - $this.$xBuf.data.length | 0;
+ $this.$byteCount = Long_add($this.$byteCount, Long_fromInt($this.$xBuf.data.length));
+ }
+ while ($len > 0) {
+ nle_GeneralDigest_update0($this, $in.data[$inOff]);
+ $inOff = $inOff + 1 | 0;
+ $len = $len + (-1) | 0;
+ }
+}
+function nle_GeneralDigest_finish($this) {
+ var $bitLength;
+ $bitLength = Long_shl($this.$byteCount, 3);
+ nle_GeneralDigest_update0($this, (-128));
+ while ($this.$xBufOff) {
+ nle_GeneralDigest_update0($this, 0);
+ }
+ nle_SHA1Digest_processLength($this, $bitLength);
+ nle_SHA1Digest_processBlock($this);
+}
+function nle_GeneralDigest_reset($this) {
+ var $i;
+ $this.$byteCount = Long_ZERO;
+ $this.$xBufOff = 0;
+ $i = 0;
+ while ($i < $this.$xBuf.data.length) {
+ $this.$xBuf.data[$i] = 0;
+ $i = $i + 1 | 0;
+ }
+}
+function nle_SHA1Digest() {
+ var a = this; nle_GeneralDigest.call(a);
+ a.$H1 = 0;
+ a.$H2 = 0;
+ a.$H3 = 0;
+ a.$H4 = 0;
+ a.$H5 = 0;
+ a.$X = null;
+ a.$xOff = 0;
+}
+function nle_SHA1Digest__init_0() {
+ var var_0 = new nle_SHA1Digest();
+ nle_SHA1Digest__init_(var_0);
+ return var_0;
+}
+function nle_SHA1Digest__init_($this) {
+ $this.$xBuf = $rt_createByteArray(4);
+ $this.$xBufOff = 0;
+ $this.$X = $rt_createIntArray(80);
+ nle_SHA1Digest_reset($this);
+}
+function nle_SHA1Digest_processWord($this, $in, $inOff) {
+ var var$3, var$4;
+ var$3 = $in.data;
+ $in = $this.$X.data;
+ var$4 = $this.$xOff;
+ $this.$xOff = var$4 + 1 | 0;
+ $in[var$4] = (var$3[$inOff] & 255) << 24 | (var$3[$inOff + 1 | 0] & 255) << 16 | (var$3[$inOff + 2 | 0] & 255) << 8 | var$3[$inOff + 3 | 0] & 255;
+ if ($this.$xOff == 16)
+ nle_SHA1Digest_processBlock($this);
+}
+function nle_SHA1Digest_unpackWord($this, $word, $out, $outOff) {
+ $out = $out.data;
+ $out[$outOff] = $word >>> 24 << 24 >> 24;
+ $out[$outOff + 1 | 0] = $word >>> 16 << 24 >> 24;
+ $out[$outOff + 2 | 0] = $word >>> 8 << 24 >> 24;
+ $out[$outOff + 3 | 0] = $word << 24 >> 24;
+}
+function nle_SHA1Digest_processLength($this, $bitLength) {
+ if ($this.$xOff > 14)
+ nle_SHA1Digest_processBlock($this);
+ $this.$X.data[14] = $bitLength.hi;
+ $this.$X.data[15] = Long_and($bitLength, Long_fromInt(-1)).lo;
+}
+function nle_SHA1Digest_doFinal($this, $out, $outOff) {
+ var var$3;
+ var$3 = Long_shl($this.$byteCount, 3);
+ nle_GeneralDigest_update0($this, (-128));
+ while ($this.$xBufOff) {
+ nle_GeneralDigest_update0($this, 0);
+ }
+ nle_SHA1Digest_processLength($this, var$3);
+ nle_SHA1Digest_processBlock($this);
+ nle_SHA1Digest_unpackWord($this, $this.$H1, $out, $outOff);
+ nle_SHA1Digest_unpackWord($this, $this.$H2, $out, $outOff + 4 | 0);
+ nle_SHA1Digest_unpackWord($this, $this.$H3, $out, $outOff + 8 | 0);
+ nle_SHA1Digest_unpackWord($this, $this.$H4, $out, $outOff + 12 | 0);
+ nle_SHA1Digest_unpackWord($this, $this.$H5, $out, $outOff + 16 | 0);
+ nle_SHA1Digest_reset($this);
+ return 20;
+}
+function nle_SHA1Digest_reset($this) {
+ var $i;
+ nle_GeneralDigest_reset($this);
+ $this.$H1 = 1732584193;
+ $this.$H2 = (-271733879);
+ $this.$H3 = (-1732584194);
+ $this.$H4 = 271733878;
+ $this.$H5 = (-1009589776);
+ $this.$xOff = 0;
+ $i = 0;
+ while ($i != $this.$X.data.length) {
+ $this.$X.data[$i] = 0;
+ $i = $i + 1 | 0;
+ }
+}
+function nle_SHA1Digest_processBlock($this) {
+ var $i, var$2, $A, $B, $C, $D, $E, $j, $t;
+ $i = 16;
+ while ($i <= 79) {
+ var$2 = $this.$X.data;
+ $A = $this.$X.data[$i - 3 | 0] ^ $this.$X.data[$i - 8 | 0] ^ $this.$X.data[$i - 14 | 0] ^ $this.$X.data[$i - 16 | 0];
+ var$2[$i] = $A << 1 | $A >>> 31;
+ $i = $i + 1 | 0;
+ }
+ $A = $this.$H1;
+ $B = $this.$H2;
+ $C = $this.$H3;
+ $D = $this.$H4;
+ $E = $this.$H5;
+ $j = 0;
+ while ($j <= 19) {
+ $t = (((($A << 5 | $A >>> 27) + ($B & $C | ($B ^ (-1)) & $D) | 0) + $E | 0) + $this.$X.data[$j] | 0) + 1518500249 | 0;
+ $B = $B << 30 | $B >>> 2;
+ $j = $j + 1 | 0;
+ $E = $D;
+ $D = $C;
+ $C = $B;
+ $B = $A;
+ $A = $t;
+ }
+ $j = 20;
+ while ($j <= 39) {
+ $t = (((($A << 5 | $A >>> 27) + ($B ^ $C ^ $D) | 0) + $E | 0) + $this.$X.data[$j] | 0) + 1859775393 | 0;
+ $B = $B << 30 | $B >>> 2;
+ $j = $j + 1 | 0;
+ $E = $D;
+ $D = $C;
+ $C = $B;
+ $B = $A;
+ $A = $t;
+ }
+ $j = 40;
+ while ($j <= 59) {
+ $t = (((($A << 5 | $A >>> 27) + ($B & $C | $B & $D | $C & $D) | 0) + $E | 0) + $this.$X.data[$j] | 0) + (-1894007588) | 0;
+ $B = $B << 30 | $B >>> 2;
+ $j = $j + 1 | 0;
+ $E = $D;
+ $D = $C;
+ $C = $B;
+ $B = $A;
+ $A = $t;
+ }
+ $j = 60;
+ while ($j <= 79) {
+ $t = (((($A << 5 | $A >>> 27) + ($B ^ $C ^ $D) | 0) + $E | 0) + $this.$X.data[$j] | 0) + (-899497514) | 0;
+ $B = $B << 30 | $B >>> 2;
+ $j = $j + 1 | 0;
+ $E = $D;
+ $D = $C;
+ $C = $B;
+ $B = $A;
+ $A = $t;
+ }
+ $this.$H1 = $this.$H1 + $A | 0;
+ $this.$H2 = $this.$H2 + $B | 0;
+ $this.$H3 = $this.$H3 + $C | 0;
+ $this.$H4 = $this.$H4 + $D | 0;
+ $this.$H5 = $this.$H5 + $E | 0;
+ $this.$xOff = 0;
+ $i = 0;
+ while ($i != $this.$X.data.length) {
+ $this.$X.data[$i] = 0;
+ $i = $i + 1 | 0;
+ }
+}
+function ju_Arrays() {
+ jl_Object.call(this);
+}
+function ju_Arrays__init_0() {
+ var var_0 = new ju_Arrays();
+ ju_Arrays__init_(var_0);
+ return var_0;
+}
+function ju_Arrays__init_($this) {
+ return;
+}
+function ju_Arrays_copyOf($array, $sz) {
+ var $result, $sz_0, var$5, $i;
+ $array = $array.data;
+ $result = $rt_createCharArray($sz);
+ $sz_0 = $array.length;
+ if ($sz < $sz_0)
+ $sz_0 = $sz;
+ var$5 = $result.data;
+ $i = 0;
+ while ($i < $sz_0) {
+ var$5[$i] = $array[$i];
+ $i = $i + 1 | 0;
+ }
+ return $result;
+}
+function ju_Arrays_copyOf0($array, $sz) {
+ var $result, $sz_0, var$5, $i;
+ $array = $array.data;
+ $result = $rt_createByteArray($sz);
+ $sz_0 = $array.length;
+ if ($sz < $sz_0)
+ $sz_0 = $sz;
+ var$5 = $result.data;
+ $i = 0;
+ while ($i < $sz_0) {
+ var$5[$i] = $array[$i];
+ $i = $i + 1 | 0;
+ }
+ return $result;
+}
+function ju_Arrays_copyOf1($original, $sz) {
+ var var$3, $result, $sz_0, $i;
+ var$3 = $original.data;
+ $result = jlr_Array_newInstance(jl_Class_getClass(jl_Class_getClass($original.constructor).$platformClass.$meta.item), $sz);
+ $sz_0 = var$3.length;
+ if ($sz < $sz_0)
+ $sz_0 = $sz;
+ $i = 0;
+ while ($i < $sz_0) {
+ $result.data[$i] = var$3[$i];
+ $i = $i + 1 | 0;
+ }
+ return $result;
+}
+function ju_Arrays_fill0($a, $fromIndex, $toIndex, $val) {
+ var var$5, var$6, var$7;
+ if ($fromIndex > $toIndex) {
+ var$5 = new jl_IllegalArgumentException;
+ var$5.$suppressionEnabled = 1;
+ var$5.$writableStackTrace = 1;
+ $rt_throw(var$5);
+ }
+ while ($fromIndex < $toIndex) {
+ var$6 = $a.data;
+ var$7 = $fromIndex + 1 | 0;
+ var$6[$fromIndex] = $val;
+ $fromIndex = var$7;
+ }
+}
+function ju_Arrays_fill1($a, $fromIndex, $toIndex, $val) {
+ var var$5, var$6, var$7;
+ if ($fromIndex > $toIndex) {
+ var$5 = new jl_IllegalArgumentException;
+ var$5.$suppressionEnabled = 1;
+ var$5.$writableStackTrace = 1;
+ $rt_throw(var$5);
+ }
+ while ($fromIndex < $toIndex) {
+ var$6 = $a.data;
+ var$7 = $fromIndex + 1 | 0;
+ var$6[$fromIndex] = $val;
+ $fromIndex = var$7;
+ }
+}
+function ju_Arrays_fill2($a, $fromIndex, $toIndex, $val) {
+ var var$5, var$6, var$7;
+ if ($fromIndex > $toIndex) {
+ var$5 = new jl_IllegalArgumentException;
+ var$5.$suppressionEnabled = 1;
+ var$5.$writableStackTrace = 1;
+ $rt_throw(var$5);
+ }
+ while ($fromIndex < $toIndex) {
+ var$6 = $a.data;
+ var$7 = $fromIndex + 1 | 0;
+ var$6[$fromIndex] = $val;
+ $fromIndex = var$7;
+ }
+}
+function ju_Arrays_fill($a, $fromIndex, $toIndex, $val) {
+ var var$5, var$6;
+ if ($fromIndex > $toIndex) {
+ $val = new jl_IllegalArgumentException;
+ $val.$suppressionEnabled = 1;
+ $val.$writableStackTrace = 1;
+ $rt_throw($val);
+ }
+ while ($fromIndex < $toIndex) {
+ var$5 = $a.data;
+ var$6 = $fromIndex + 1 | 0;
+ var$5[$fromIndex] = $val;
+ $fromIndex = var$6;
+ }
+}
+function ju_Arrays_sort($a, $c) {
+ var var$3, $second, $chunkSize, var$6, $i, var$8, var$9, $i_0, var$11;
+ var$3 = $a.data.length;
+ if (!var$3)
+ return;
+ $second = $rt_createArray(jl_Object, var$3);
+ $chunkSize = 1;
+ var$6 = $a;
+ while ($chunkSize < var$3) {
+ $i = 0;
+ while (true) {
+ var$8 = var$6.data.length;
+ if ($i >= var$8)
+ break;
+ var$9 = $i + $chunkSize | 0;
+ if (var$8 < var$9)
+ var$9 = var$8;
+ $i_0 = $i + (2 * $chunkSize | 0) | 0;
+ if (var$8 >= $i_0)
+ var$8 = $i_0;
+ ju_Arrays_merge(var$6, $second, $i, var$9, var$8, $c);
+ $i = $i_0;
+ }
+ $chunkSize = $chunkSize * 2 | 0;
+ var$11 = var$6;
+ var$6 = $second;
+ $second = var$11;
+ }
+ a: {
+ if (var$6 !== $a) {
+ $i_0 = 0;
+ while (true) {
+ $a = var$6.data;
+ if ($i_0 >= $a.length)
+ break a;
+ $second.data[$i_0] = $a[$i_0];
+ $i_0 = $i_0 + 1 | 0;
+ }
+ }
+ }
+}
+function ju_Arrays_merge($a, $b, $from, $split, $to, $comp) {
+ var var$7, $from2, var$9, $p, $q, var$12, var$13;
+ var$7 = $from;
+ $from2 = $split;
+ a: {
+ b: {
+ while ($from != $split) {
+ if ($from2 == $to)
+ break b;
+ var$9 = $a.data;
+ $p = var$9[$from];
+ $q = var$9[$from2];
+ if ($comp.$compare($p, $q) > 0) {
+ var$9 = $b.data;
+ var$12 = var$7 + 1 | 0;
+ var$9[var$7] = $q;
+ $from2 = $from2 + 1 | 0;
+ } else {
+ var$9 = $b.data;
+ var$12 = var$7 + 1 | 0;
+ var$9[var$7] = $p;
+ $from = $from + 1 | 0;
+ }
+ var$7 = var$12;
+ }
+ while (true) {
+ if ($from2 >= $to)
+ break a;
+ var$13 = $b.data;
+ var$9 = $a.data;
+ $from = var$7 + 1 | 0;
+ $split = $from2 + 1 | 0;
+ var$13[var$7] = var$9[$from2];
+ var$7 = $from;
+ $from2 = $split;
+ }
+ }
+ while (true) {
+ if ($from >= $split)
+ break a;
+ var$13 = $b.data;
+ var$9 = $a.data;
+ $from2 = var$7 + 1 | 0;
+ $to = $from + 1 | 0;
+ var$13[var$7] = var$9[$from];
+ var$7 = $from2;
+ $from = $to;
+ }
+ }
+}
+function ju_Arrays_binarySearch($a, $fromIndex, $toIndex, $key) {
+ var var$5, $u, var$7, $i, $e;
+ if ($fromIndex > $toIndex) {
+ var$5 = new jl_IllegalArgumentException;
+ var$5.$suppressionEnabled = 1;
+ var$5.$writableStackTrace = 1;
+ $rt_throw(var$5);
+ }
+ $u = $toIndex - 1 | 0;
+ while (true) {
+ var$7 = $a.data;
+ $i = ($fromIndex + $u | 0) / 2 | 0;
+ $e = var$7[$i];
+ if ($e == $key)
+ break;
+ if ($key >= $e) {
+ $fromIndex = $i + 1 | 0;
+ if ($fromIndex > $u)
+ return -$i - 2 | 0;
+ } else {
+ $u = $i - 1 | 0;
+ if ($u < $fromIndex)
+ return -$i - 1 | 0;
+ }
+ }
+ return $i;
+}
+function ju_Arrays_binarySearch0($a, $fromIndex, $toIndex, $key) {
+ var var$5, $u, var$7, $i;
+ if ($fromIndex > $toIndex) {
+ var$5 = new jl_IllegalArgumentException;
+ var$5.$suppressionEnabled = 1;
+ var$5.$writableStackTrace = 1;
+ $rt_throw(var$5);
+ }
+ $u = $toIndex - 1 | 0;
+ while (true) {
+ var$7 = $a.data;
+ $i = ($fromIndex + $u | 0) / 2 | 0;
+ $toIndex = Long_compare(var$7[$i], $key);
+ if (!$toIndex)
+ break;
+ if ($toIndex <= 0) {
+ $fromIndex = $i + 1 | 0;
+ if ($fromIndex > $u)
+ return -$i - 2 | 0;
+ } else {
+ $u = $i - 1 | 0;
+ if ($u < $fromIndex)
+ return -$i - 1 | 0;
+ }
+ }
+ return $i;
+}
+function ju_Arrays_equals0($a, $a2) {
+ var var$3, $i;
+ if ($a === $a2)
+ return 1;
+ if ($a !== null && $a2 !== null) {
+ $a2 = $a2.data;
+ $a = $a.data;
+ var$3 = $a.length;
+ if (var$3 == $a2.length) {
+ $i = 0;
+ while ($i < var$3) {
+ if ($a[$i] != $a2[$i])
+ return 0;
+ $i = $i + 1 | 0;
+ }
+ return 1;
+ }
+ }
+ return 0;
+}
+function ju_Arrays_equals($a, $a2) {
+ var var$3, $i;
+ if ($a === $a2)
+ return 1;
+ if ($a !== null && $a2 !== null) {
+ $a2 = $a2.data;
+ $a = $a.data;
+ var$3 = $a.length;
+ if (var$3 == $a2.length) {
+ $i = 0;
+ while ($i < var$3) {
+ if ($a[$i] != $a2[$i])
+ return 0;
+ $i = $i + 1 | 0;
+ }
+ return 1;
+ }
+ }
+ return 0;
+}
+function ju_Arrays_hashCode($a) {
+ var $hash, $i, var$4;
+ if ($a === null)
+ return 0;
+ $hash = 1;
+ $i = 0;
+ while (true) {
+ var$4 = $a.data;
+ if ($i >= var$4.length)
+ break;
+ $hash = (31 * $hash | 0) + var$4[$i] | 0;
+ $i = $i + 1 | 0;
+ }
+ return $hash;
+}
+function ju_Arrays_hashCode0($a) {
+ var $hash, $i, var$4;
+ if ($a === null)
+ return 0;
+ $hash = 1;
+ $i = 0;
+ while (true) {
+ var$4 = $a.data;
+ if ($i >= var$4.length)
+ break;
+ $hash = (31 * $hash | 0) + var$4[$i] | 0;
+ $i = $i + 1 | 0;
+ }
+ return $hash;
+}
+function ju_Arrays_hashCode1($a) {
+ var $hash, $i, var$4, var$5, $h;
+ if ($a === null)
+ return 0;
+ $hash = (-1515898884);
+ $i = 0;
+ while (true) {
+ var$4 = $a.data;
+ if ($i >= var$4.length)
+ break;
+ var$5 = var$4[$i];
+ $h = (var$5 !== null ? var$5.$hashCode0() : 0) ^ 528111840;
+ $hash = ($h << 4 | $h >>> 28) ^ ($h >>> 7 | $h << 25) ^ ($hash << 13 | $hash >>> 19);
+ $i = $i + 1 | 0;
+ }
+ return $hash;
+}
+function ju_Arrays_asList($a) {
+ var var$2;
+ var$2 = new ju_Arrays$ArrayAsList;
+ var$2.$array3 = $a;
+ return var$2;
+}
+function ji_BufferedInputStream() {
+ var a = this; ji_FilterInputStream.call(a);
+ a.$buf0 = null;
+ a.$count2 = 0;
+ a.$marklimit = 0;
+ a.$markpos = 0;
+ a.$pos1 = 0;
+}
+function ji_BufferedInputStream_available($this) {
+ var $localIn, var$2;
+ $localIn = $this.$in;
+ if ($this.$buf0 !== null && $localIn !== null)
+ return ($this.$count2 - $this.$pos1 | 0) + $localIn.$available() | 0;
+ var$2 = new ji_IOException;
+ var$2.$suppressionEnabled = 1;
+ var$2.$writableStackTrace = 1;
+ var$2.$message = $rt_s(355);
+ $rt_throw(var$2);
+}
+function ji_BufferedInputStream_close($this) {
+ var $localIn;
+ $this.$buf0 = null;
+ $localIn = $this.$in;
+ $this.$in = null;
+ if ($localIn !== null)
+ $localIn.$close();
+}
+function ji_BufferedInputStream_fillbuf($this, $localIn, $localBuf) {
+ var $newbuf, $newLength, $result, $bytesread;
+ if ($this.$markpos != (-1) && ($this.$pos1 - $this.$markpos | 0) < $this.$marklimit) {
+ a: {
+ if (!$this.$markpos) {
+ $newbuf = $localBuf.data;
+ $newLength = $this.$marklimit;
+ $result = $newbuf.length;
+ if ($newLength > $result) {
+ $newLength = $result * 2 | 0;
+ if ($newLength > $this.$marklimit)
+ $newLength = $this.$marklimit;
+ $newbuf = $rt_createByteArray($newLength);
+ jl_System_arraycopy($localBuf, 0, $newbuf, 0, $result);
+ $this.$buf0 = $newbuf;
+ $localBuf = $this.$buf0;
+ break a;
+ }
+ }
+ if ($this.$markpos > 0) {
+ $newbuf = $localBuf.data;
+ jl_System_arraycopy($localBuf, $this.$markpos, $localBuf, 0, $newbuf.length - $this.$markpos | 0);
+ }
+ }
+ $newbuf = $localBuf.data;
+ $this.$pos1 = $this.$pos1 - $this.$markpos | 0;
+ $this.$count2 = 0;
+ $this.$markpos = 0;
+ $bytesread = $localIn.$read($localBuf, $this.$pos1, $newbuf.length - $this.$pos1 | 0);
+ $this.$count2 = $bytesread <= 0 ? $this.$pos1 : $this.$pos1 + $bytesread | 0;
+ return $bytesread;
+ }
+ $result = $localIn.$read2($localBuf);
+ if ($result > 0) {
+ $this.$markpos = (-1);
+ $this.$pos1 = 0;
+ $this.$count2 = $result;
+ }
+ return $result;
+}
+function ji_BufferedInputStream_read($this) {
+ var $localBuf, $localIn, var$3, var$4;
+ jl_Object_monitorEnterSync($this);
+ try {
+ $localBuf = $this.$buf0;
+ $localIn = $this.$in;
+ if ($localBuf !== null && $localIn !== null) {
+ if ($this.$pos1 >= $this.$count2 && ji_BufferedInputStream_fillbuf($this, $localIn, $localBuf) == (-1))
+ return (-1);
+ if ($localBuf !== $this.$buf0) {
+ $localBuf = $this.$buf0;
+ if ($localBuf === null) {
+ $localIn = new ji_IOException;
+ $localIn.$suppressionEnabled = 1;
+ $localIn.$writableStackTrace = 1;
+ $localIn.$message = $rt_s(355);
+ $rt_throw($localIn);
+ }
+ }
+ if (($this.$count2 - $this.$pos1 | 0) <= 0)
+ return (-1);
+ $localBuf = $localBuf.data;
+ var$3 = $this.$pos1;
+ $this.$pos1 = var$3 + 1 | 0;
+ return $localBuf[var$3] & 255;
+ }
+ var$4 = new ji_IOException;
+ var$4.$suppressionEnabled = 1;
+ var$4.$writableStackTrace = 1;
+ var$4.$message = $rt_s(355);
+ $rt_throw(var$4);
+ } finally {
+ jl_Object_monitorExitSync($this);
+ }
+}
+function ji_BufferedInputStream_read0($this, $buffer, $offset, $length) {
+ var $localBuf, $localIn, $required, $copylength, $read;
+ jl_Object_monitorEnterSync($this);
+ try {
+ $localBuf = $this.$buf0;
+ if ($localBuf === null) {
+ $localIn = new ji_IOException;
+ $localIn.$suppressionEnabled = 1;
+ $localIn.$writableStackTrace = 1;
+ $localIn.$message = $rt_s(355);
+ $rt_throw($localIn);
+ }
+ if ($offset <= ($buffer.data.length - $length | 0) && $offset >= 0 && $length >= 0) {
+ if (!$length)
+ return 0;
+ $localIn = $this.$in;
+ if ($localIn === null) {
+ $localIn = new ji_IOException;
+ $localIn.$suppressionEnabled = 1;
+ $localIn.$writableStackTrace = 1;
+ $localIn.$message = $rt_s(355);
+ $rt_throw($localIn);
+ }
+ if ($this.$pos1 >= $this.$count2)
+ $required = $length;
+ else {
+ $copylength = ($this.$count2 - $this.$pos1 | 0) >= $length ? $length : $this.$count2 - $this.$pos1 | 0;
+ jl_System_arraycopy($localBuf, $this.$pos1, $buffer, $offset, $copylength);
+ $this.$pos1 = $this.$pos1 + $copylength | 0;
+ if ($copylength != $length && $localIn.$available()) {
+ $offset = $offset + $copylength | 0;
+ $required = $length - $copylength | 0;
+ } else
+ return $copylength;
+ }
+ while (true) {
+ if ($this.$markpos == (-1) && $required >= $localBuf.data.length) {
+ $read = $localIn.$read($buffer, $offset, $required);
+ if ($read == (-1))
+ return $required != $length ? $length - $required | 0 : (-1);
+ } else {
+ if (ji_BufferedInputStream_fillbuf($this, $localIn, $localBuf) == (-1))
+ return $required != $length ? $length - $required | 0 : (-1);
+ if ($localBuf !== $this.$buf0) {
+ $localBuf = $this.$buf0;
+ if ($localBuf === null) {
+ $localIn = new ji_IOException;
+ $localIn.$suppressionEnabled = 1;
+ $localIn.$writableStackTrace = 1;
+ $localIn.$message = $rt_s(355);
+ $rt_throw($localIn);
+ }
+ }
+ $read = ($this.$count2 - $this.$pos1 | 0) >= $required ? $required : $this.$count2 - $this.$pos1 | 0;
+ jl_System_arraycopy($localBuf, $this.$pos1, $buffer, $offset, $read);
+ $this.$pos1 = $this.$pos1 + $read | 0;
+ }
+ $required = $required - $read | 0;
+ if (!$required)
+ break;
+ if (!$localIn.$available())
+ return $length - $required | 0;
+ $offset = $offset + $read | 0;
+ }
+ return $length;
+ }
+ $localIn = new jl_IndexOutOfBoundsException;
+ $localIn.$suppressionEnabled = 1;
+ $localIn.$writableStackTrace = 1;
+ $rt_throw($localIn);
+ } finally {
+ jl_Object_monitorExitSync($this);
+ }
+}
+function ji_Flushable() {
+}
+function ji_OutputStream() {
+ jl_Object.call(this);
+}
+function ji_OutputStream__init_() {
+ var var_0 = new ji_OutputStream();
+ ji_OutputStream__init_0(var_0);
+ return var_0;
+}
+function ji_OutputStream__init_0($this) {
+ return;
+}
+function ji_OutputStream_write($this, $b) {
+ $this.$write2($b, 0, $b.data.length);
+}
+function ji_OutputStream_write0($this, $b, $off, $len) {
+ var $i, var$5, var$6;
+ $i = 0;
+ while ($i < $len) {
+ var$5 = $b.data;
+ var$6 = $off + 1 | 0;
+ $this.$write0(var$5[$off]);
+ $i = $i + 1 | 0;
+ $off = var$6;
+ }
+}
+function ji_OutputStream_close($this) {
+ return;
+}
+function ji_OutputStream_flush($this) {
+ return;
+}
+function ji_FilterOutputStream() {
+ ji_OutputStream.call(this);
+ this.$out = null;
+}
+function ji_FilterOutputStream__init_(var_0) {
+ var var_1 = new ji_FilterOutputStream();
+ ji_FilterOutputStream__init_0(var_1, var_0);
+ return var_1;
+}
+function ji_FilterOutputStream__init_0($this, $out) {
+ $this.$out = $out;
+}
+function ji_FilterOutputStream_close($this) {
+ var $$je;
+ a: {
+ try {
+ $this.$out.$flush();
+ break a;
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof ji_IOException) {
+ } else {
+ throw $$e;
+ }
+ }
+ }
+ $this.$out.$close();
+}
+function ji_PrintStream() {
+ var a = this; ji_FilterOutputStream.call(a);
+ a.$autoFlush = 0;
+ a.$errorState = 0;
+ a.$sb = null;
+ a.$buffer0 = null;
+ a.$charset = null;
+}
+function ji_PrintStream__init_(var_0, var_1) {
+ var var_2 = new ji_PrintStream();
+ ji_PrintStream__init_0(var_2, var_0, var_1);
+ return var_2;
+}
+function ji_PrintStream__init_0($this, $out, $autoFlush) {
+ $this.$out = $out;
+ $out = new jl_StringBuilder;
+ $out.$buffer = $rt_createCharArray(16);
+ $this.$sb = $out;
+ $this.$buffer0 = $rt_createCharArray(32);
+ $this.$autoFlush = $autoFlush;
+ $out = new jnci_UTF8Charset;
+ jnc_Charset__init_($out, $rt_s(2), $rt_createArray(jl_String, 0));
+ $this.$charset = $out;
+}
+function ji_PrintStream_write($this, $b, $off, $len) {
+ var $$je;
+ if ($this.$out === null)
+ $this.$errorState = 1;
+ if (!($this.$errorState ? 0 : 1))
+ return;
+ a: {
+ try {
+ $this.$out.$write2($b, $off, $len);
+ break a;
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof ji_IOException) {
+ } else {
+ throw $$e;
+ }
+ }
+ $this.$errorState = 1;
+ }
+}
+function ji_PrintStream_print($this, $s, $begin, $end) {
+ var $destBytes, $src, $overflow, var$7, var$8, var$9, var$10, $overflow_0, $$je;
+ $destBytes = $s.data;
+ $end = $end - $begin | 0;
+ $src = new jn_CharBufferOverArray;
+ $overflow = $destBytes.length;
+ $end = $begin + $end | 0;
+ $src.$mark = (-1);
+ $src.$capacity = $overflow;
+ $src.$limit = $overflow;
+ $src.$position = $begin;
+ $src.$limit = $end;
+ $src.$start0 = 0;
+ $src.$readOnly0 = 0;
+ $src.$array0 = $s;
+ $end = 1024;
+ if ($overflow < $end)
+ $end = $overflow;
+ if (16 > $end)
+ $end = 16;
+ $destBytes = $rt_createByteArray($end);
+ $end = $destBytes.data.length;
+ var$7 = new jn_ByteBufferImpl;
+ var$8 = 0 + $end | 0;
+ var$7.$mark = (-1);
+ var$7.$capacity = $end;
+ var$7.$limit = $end;
+ var$7.$order = jn_ByteOrder_BIG_ENDIAN;
+ var$7.$start = 0;
+ var$7.$array = $destBytes;
+ var$7.$position = 0;
+ var$7.$limit = var$8;
+ var$7.$direct = 0;
+ var$7.$readOnly = 0;
+ var$9 = jnci_UTF8Charset_newEncoder($this.$charset);
+ var$10 = jnc_CodingErrorAction_REPLACE;
+ if (var$10 === null) {
+ var$10 = new jl_IllegalArgumentException;
+ var$10.$suppressionEnabled = 1;
+ var$10.$writableStackTrace = 1;
+ var$10.$message = $rt_s(356);
+ $rt_throw(var$10);
+ }
+ var$9.$malformedAction = var$10;
+ var$10 = jnc_CodingErrorAction_REPLACE;
+ if (var$10 === null) {
+ var$10 = new jl_IllegalArgumentException;
+ var$10.$suppressionEnabled = 1;
+ var$10.$writableStackTrace = 1;
+ var$10.$message = $rt_s(356);
+ $rt_throw(var$10);
+ }
+ var$9.$unmappableAction = var$10;
+ while (true) {
+ $overflow_0 = jnc_CharsetEncoder_encode0(var$9, $src, var$7, 1).$kind != 1 ? 0 : 1;
+ $end = var$7.$position;
+ if ($this.$out === null)
+ $this.$errorState = 1;
+ if ($this.$errorState ? 0 : 1)
+ a: {
+ try {
+ $this.$out.$write2($destBytes, 0, $end);
+ break a;
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof ji_IOException) {
+ } else {
+ throw $$e;
+ }
+ }
+ $this.$errorState = 1;
+ }
+ var$7.$position = 0;
+ var$7.$limit = var$7.$capacity;
+ var$7.$mark = (-1);
+ if (!$overflow_0)
+ break;
+ }
+ while (true) {
+ $overflow = jnc_CharsetEncoder_flush(var$9, var$7).$kind != 1 ? 0 : 1;
+ $overflow_0 = var$7.$position;
+ if ($this.$out === null)
+ $this.$errorState = 1;
+ if ($this.$errorState ? 0 : 1)
+ b: {
+ try {
+ $this.$out.$write2($destBytes, 0, $overflow_0);
+ break b;
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof ji_IOException) {
+ } else {
+ throw $$e;
+ }
+ }
+ $this.$errorState = 1;
+ }
+ var$7.$position = 0;
+ var$7.$limit = var$7.$capacity;
+ var$7.$mark = (-1);
+ if (!$overflow)
+ break;
+ }
+}
+function ji_PrintStream_print0($this, $c) {
+ $this.$buffer0.data[0] = $c;
+ ji_PrintStream_print($this, $this.$buffer0, 0, 1);
+}
+function ji_PrintStream_print1($this, $s) {
+ var var$2;
+ var$2 = $this.$sb;
+ jl_AbstractStringBuilder_insert(var$2, var$2.$length, $s);
+ ji_PrintStream_printSB($this);
+}
+function ji_PrintStream_println0($this, $s) {
+ var var$2, var$3;
+ var$2 = $this.$sb;
+ jl_AbstractStringBuilder_insert(var$2, var$2.$length, $s);
+ var$3 = var$2.$length;
+ jl_AbstractStringBuilder_insertSpace(var$2, var$3, var$3 + 1 | 0);
+ var$2.$buffer.data[var$3] = 10;
+ ji_PrintStream_printSB($this);
+}
+function ji_PrintStream_println($this, $s) {
+ var var$2, var$3;
+ var$2 = $this.$sb;
+ jl_AbstractStringBuilder_insert(var$2, var$2.$length, $s === null ? $rt_s(47) : $s.$toString());
+ var$3 = var$2.$length;
+ jl_AbstractStringBuilder_insertSpace(var$2, var$3, var$3 + 1 | 0);
+ var$2.$buffer.data[var$3] = 10;
+ ji_PrintStream_printSB($this);
+}
+function ji_PrintStream_println1($this) {
+ $this.$buffer0.data[0] = 10;
+ ji_PrintStream_print($this, $this.$buffer0, 0, 1);
+}
+function ji_PrintStream_printSB($this) {
+ var $buffer;
+ $buffer = $this.$sb.$length <= $this.$buffer0.data.length ? $this.$buffer0 : $rt_createCharArray($this.$sb.$length);
+ jl_AbstractStringBuilder_getChars($this.$sb, 0, $this.$sb.$length, $buffer, 0);
+ ji_PrintStream_print($this, $buffer, 0, $this.$sb.$length);
+ $this.$sb.$length = 0;
+}
+function jl_ConsoleOutputStreamStdout() {
+ ji_OutputStream.call(this);
+}
+function jl_ConsoleOutputStreamStdout__init_0() {
+ var var_0 = new jl_ConsoleOutputStreamStdout();
+ jl_ConsoleOutputStreamStdout__init_(var_0);
+ return var_0;
+}
+function jl_ConsoleOutputStreamStdout__init_($this) {
+ return;
+}
+function jl_ConsoleOutputStreamStdout_write($this, $b) {
+ $rt_putStdout($b);
+}
+function nms_Timer() {
+ var a = this; jl_Object.call(a);
+ a.$ticksPerSecond = 0.0;
+ a.$lastHRTime = 0.0;
+ a.$elapsedTicks = 0;
+ a.$renderPartialTicks = 0.0;
+ a.$timerSpeed = 0.0;
+ a.$elapsedPartialTicks = 0.0;
+ a.$lastSyncSysClock = Long_ZERO;
+ a.$lastSyncHRClock = Long_ZERO;
+ a.$field_74285_i = Long_ZERO;
+ a.$timeSyncAdjustment = 0.0;
+}
+function nms_Timer_updateTimer($this) {
+ var $var1, $var3, $var5, $var7, $var9, $var11, $var13;
+ $var1 = jl_System_currentTimeMillis();
+ $var3 = Long_sub($var1, $this.$lastSyncSysClock);
+ $var5 = Long_div(Long_fromNumber(performance.now() * 1000000.0), Long_fromInt(1000000));
+ $var7 = Long_toNumber($var5) / 1000.0;
+ if (Long_le($var3, Long_fromInt(1000)) && Long_ge($var3, Long_ZERO)) {
+ $this.$field_74285_i = Long_add($this.$field_74285_i, $var3);
+ if (Long_gt($this.$field_74285_i, Long_fromInt(1000))) {
+ $var9 = Long_sub($var5, $this.$lastSyncHRClock);
+ $var11 = Long_toNumber($this.$field_74285_i) / Long_toNumber($var9);
+ $this.$timeSyncAdjustment = $this.$timeSyncAdjustment + ($var11 - $this.$timeSyncAdjustment) * 0.20000000298023224;
+ $this.$lastSyncHRClock = $var5;
+ $this.$field_74285_i = Long_ZERO;
+ }
+ if (Long_lt($this.$field_74285_i, Long_ZERO))
+ $this.$lastSyncHRClock = $var5;
+ } else
+ $this.$lastHRTime = $var7;
+ $this.$lastSyncSysClock = $var1;
+ $var13 = ($var7 - $this.$lastHRTime) * $this.$timeSyncAdjustment;
+ $this.$lastHRTime = $var7;
+ if ($var13 < 0.0)
+ $var13 = 0.0;
+ if ($var13 > 1.0)
+ $var13 = 1.0;
+ $this.$elapsedPartialTicks = $this.$elapsedPartialTicks + $var13 * $this.$timerSpeed * $this.$ticksPerSecond;
+ $this.$elapsedTicks = $this.$elapsedPartialTicks | 0;
+ $this.$elapsedPartialTicks = $this.$elapsedPartialTicks - $this.$elapsedTicks;
+ if ($this.$elapsedTicks > 10)
+ $this.$elapsedTicks = 10;
+ $this.$renderPartialTicks = $this.$elapsedPartialTicks;
+}
+function nms_SoundManager() {
+ var a = this; jl_Object.call(a);
+ a.$options = null;
+ a.$soundevents = null;
+ a.$queuedsoundevents = null;
+ a.$sounddefinitions = null;
+ a.$soundrandom = null;
+ a.$resetTimer = 0;
+ a.$titleMusic = 0;
+}
+function nms_SoundManager__init_0() {
+ var var_0 = new nms_SoundManager();
+ nms_SoundManager__init_(var_0);
+ return var_0;
+}
+function nms_SoundManager__init_($this) {
+ var var$1;
+ $this.$resetTimer = 0;
+ $this.$titleMusic = (-1);
+ var$1 = new ju_ArrayList;
+ var$1.$array1 = $rt_createArray(jl_Object, 10);
+ $this.$soundevents = var$1;
+ var$1 = new ju_ArrayList;
+ var$1.$array1 = $rt_createArray(jl_Object, 10);
+ $this.$queuedsoundevents = var$1;
+ $this.$sounddefinitions = null;
+ $this.$soundrandom = new ju_Random;
+}
+function nms_SoundManager_loadSoundSettings($this, $par1GameSettings) {
+ var $l, $c, $i, $cc, $e, $file, $$je;
+ a: {
+ $this.$options = $par1GameSettings;
+ if ($this.$sounddefinitions === null) {
+ $this.$sounddefinitions = ju_HashMap__init_1(16, 0.75);
+ try {
+ $l = nms_NBTTagCompound_getTagList(nms_CompressedStreamTools_readUncompressed(nlea_EaglerAdapterImpl2_loadResourceBytes($rt_s(357))), $rt_s(358));
+ $c = nms_NBTTagList_tagCount($l);
+ $i = 0;
+ while ($i < $c) {
+ $cc = nms_NBTTagList_tagAt($l, $i);
+ ju_HashMap_put($this.$sounddefinitions, nms_NBTTagCompound_getString($cc, $rt_s(359)), jl_Integer_valueOf(nms_NBTTagCompound_getByte($cc, $rt_s(360)) & 255));
+ $i = $i + 1 | 0;
+ }
+ break a;
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof ji_IOException) {
+ $e = $$je;
+ } else {
+ throw $$e;
+ }
+ }
+ if (jl_System_errCache === null) {
+ $file = new ji_PrintStream;
+ $file.$out = new jl_ConsoleOutputStreamStderr;
+ $par1GameSettings = new jl_StringBuilder;
+ $par1GameSettings.$buffer = $rt_createCharArray(16);
+ $file.$sb = $par1GameSettings;
+ $file.$buffer0 = $rt_createCharArray(32);
+ $file.$autoFlush = 0;
+ $par1GameSettings = new jnci_UTF8Charset;
+ jnc_Charset__init_($par1GameSettings, $rt_s(2), $rt_createArray(jl_String, 0));
+ $file.$charset = $par1GameSettings;
+ jl_System_errCache = $file;
+ }
+ jl_Throwable_printStackTrace0($e, jl_System_errCache);
+ }
+ }
+}
+function nms_SoundManager_onSoundOptionsChanged($this) {
+ return;
+}
+function nms_SoundManager_playRandomMusicIfReady($this) {
+ return;
+}
+function nms_SoundManager_setListener($this, $par1EntityLiving, $par2) {
+ var var$3, var$4, var$5, $x, $y, $z, $pitch, $yaw;
+ if ($par1EntityLiving === null)
+ nlea_EaglerAdapterImpl2_setListenerPos(0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
+ else {
+ var$3 = $par1EntityLiving.$prevPosX;
+ var$4 = $par1EntityLiving.$posX - $par1EntityLiving.$prevPosX;
+ var$5 = $par2;
+ $x = var$3 + var$4 * var$5;
+ $y = $par1EntityLiving.$prevPosY + ($par1EntityLiving.$posY - $par1EntityLiving.$prevPosY) * var$5;
+ $z = $par1EntityLiving.$prevPosZ + ($par1EntityLiving.$posZ - $par1EntityLiving.$prevPosZ) * var$5;
+ $pitch = $par1EntityLiving.$prevRotationPitch + ($par1EntityLiving.$rotationPitch - $par1EntityLiving.$prevRotationPitch) * $par2;
+ $yaw = $par1EntityLiving.$prevRotationYaw + ($par1EntityLiving.$rotationYaw - $par1EntityLiving.$prevRotationYaw) * $par2;
+ nlea_EaglerAdapterImpl2_setListenerPos($x, $y, $z, $par1EntityLiving.$motionX, $par1EntityLiving.$motionY, $par1EntityLiving.$motionZ, $pitch, $yaw);
+ }
+}
+function nms_SoundManager_stopAllSounds($this) {
+ var $e, var$2;
+ $e = $this.$soundevents;
+ var$2 = new ju_AbstractList$1;
+ var$2.$this$0 = $e;
+ var$2.$modCount = var$2.$this$0.$modCount0;
+ var$2.$size1 = var$2.$this$0.$size2();
+ var$2.$removeIndex = (-1);
+ while (var$2.$index >= var$2.$size1 ? 0 : 1) {
+ nlea_EaglerAdapterImpl2_endSound(ju_AbstractList$1_next(var$2).$id1);
+ }
+}
+function nms_SoundManager_playStreaming($this, $par1Str, $par2, $par3, $par4) {
+ return;
+}
+function nms_SoundManager_updateSoundLocation($this, $par1Entity) {
+ var $e, var$3, var$4;
+ $e = $this.$soundevents;
+ var$3 = new ju_AbstractList$1;
+ var$3.$this$0 = $e;
+ var$3.$modCount = var$3.$this$0.$modCount0;
+ var$3.$size1 = var$3.$this$0.$size2();
+ var$3.$removeIndex = (-1);
+ while (var$3.$index >= var$3.$size1 ? 0 : 1) {
+ $e = ju_AbstractList$1_next(var$3);
+ var$4 = $e.$e;
+ if (!($par1Entity instanceof nms_Entity) ? 0 : $par1Entity.$entityId != var$4.$entityId ? 0 : 1)
+ nlea_EaglerAdapterImpl2_moveSound($e.$id1, $par1Entity.$posX, $par1Entity.$posY, $par1Entity.$posZ, $par1Entity.$motionX, $par1Entity.$motionY, $par1Entity.$motionZ);
+ }
+}
+function nms_SoundManager_updateSoundLocation0($this, $par1Entity, $par2Entity) {
+ var $e, var$4, var$5, var$6;
+ $e = $this.$soundevents;
+ var$4 = new ju_AbstractList$1;
+ var$4.$this$0 = $e;
+ var$4.$modCount = var$4.$this$0.$modCount0;
+ var$4.$size1 = var$4.$this$0.$size2();
+ var$4.$removeIndex = (-1);
+ var$5 = $par1Entity instanceof nms_Entity;
+ $par1Entity = $par1Entity;
+ while (var$4.$index >= var$4.$size1 ? 0 : 1) {
+ $e = ju_AbstractList$1_next(var$4);
+ var$6 = $e.$e;
+ if (!var$5 ? 0 : $par1Entity.$entityId != var$6.$entityId ? 0 : 1)
+ nlea_EaglerAdapterImpl2_moveSound($e.$id1, $par2Entity.$posX, $par2Entity.$posY, $par2Entity.$posZ, $par2Entity.$motionX, $par2Entity.$motionY, $par2Entity.$motionZ);
+ }
+}
+function nms_SoundManager_isEntitySoundPlaying($this, $par1Entity) {
+ var $e, var$3, var$4, var$5;
+ $e = $this.$soundevents;
+ var$3 = new ju_AbstractList$1;
+ var$3.$this$0 = $e;
+ var$3.$modCount = var$3.$this$0.$modCount0;
+ var$3.$size1 = var$3.$this$0.$size2();
+ var$3.$removeIndex = (-1);
+ var$4 = $par1Entity instanceof nms_Entity;
+ var$5 = $par1Entity;
+ while (true) {
+ if (!(var$3.$index >= var$3.$size1 ? 0 : 1))
+ return 0;
+ $par1Entity = ju_AbstractList$1_next(var$3).$e;
+ if (!var$4 ? 0 : var$5.$entityId != $par1Entity.$entityId ? 0 : 1)
+ break;
+ }
+ return 1;
+}
+function nms_SoundManager_stopEntitySound($this, $par1Entity) {
+ var $e, var$3, var$4, var$5;
+ $e = $this.$soundevents;
+ var$3 = new ju_AbstractList$1;
+ var$3.$this$0 = $e;
+ var$3.$modCount = var$3.$this$0.$modCount0;
+ var$3.$size1 = var$3.$this$0.$size2();
+ var$3.$removeIndex = (-1);
+ var$4 = $par1Entity instanceof nms_Entity;
+ var$5 = $par1Entity;
+ while (var$3.$index >= var$3.$size1 ? 0 : 1) {
+ $e = ju_AbstractList$1_next(var$3);
+ $par1Entity = $e.$e;
+ if (!var$4 ? 0 : var$5.$entityId != $par1Entity.$entityId ? 0 : 1)
+ nlea_EaglerAdapterImpl2_endSound($e.$id1);
+ }
+}
+function nms_SoundManager_setEntitySoundVolume($this, $par1Entity, $par2) {
+ var var$3, var$4, var$5, $e;
+ var$3 = $this.$soundevents;
+ var$4 = new ju_AbstractList$1;
+ var$4.$this$0 = var$3;
+ var$4.$modCount = var$4.$this$0.$modCount0;
+ var$4.$size1 = var$4.$this$0.$size2();
+ var$4.$removeIndex = (-1);
+ var$5 = $par1Entity instanceof nms_Entity;
+ $par1Entity = $par1Entity;
+ while (var$4.$index >= var$4.$size1 ? 0 : 1) {
+ $e = ju_AbstractList$1_next(var$4);
+ var$3 = $e.$e;
+ if (!var$5 ? 0 : $par1Entity.$entityId != var$3.$entityId ? 0 : 1)
+ nlea_EaglerAdapterImpl2_setVolume($e.$id1, $par2);
+ }
+}
+function nms_SoundManager_setEntitySoundPitch($this, $par1Entity, $par2) {
+ var var$3, var$4, var$5, $e;
+ var$3 = $this.$soundevents;
+ var$4 = new ju_AbstractList$1;
+ var$4.$this$0 = var$3;
+ var$4.$modCount = var$4.$this$0.$modCount0;
+ var$4.$size1 = var$4.$this$0.$size2();
+ var$4.$removeIndex = (-1);
+ var$5 = $par1Entity instanceof nms_Entity;
+ $par1Entity = $par1Entity;
+ while (var$4.$index >= var$4.$size1 ? 0 : 1) {
+ $e = ju_AbstractList$1_next(var$4);
+ var$3 = $e.$e;
+ if (!var$5 ? 0 : $par1Entity.$entityId != var$3.$entityId ? 0 : 1)
+ nlea_EaglerAdapterImpl2_setPitch($e.$id1, $par2);
+ }
+}
+function nms_SoundManager_playEntitySound($this, $par1Str, $par2Entity, $par3, $par4, $par5) {
+ var $path, $ct, $c, var$9, $v, $r, var$12, var$13, $e, $ptr, $tmp;
+ $ptr = 0;
+ if ($rt_resuming()) {
+ var $thread = $rt_nativeThread();
+ $ptr = $thread.pop();$e = $thread.pop();var$13 = $thread.pop();var$12 = $thread.pop();$r = $thread.pop();$v = $thread.pop();var$9 = $thread.pop();$c = $thread.pop();$ct = $thread.pop();$path = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2Entity = $thread.pop();$par1Str = $thread.pop();$this = $thread.pop();
+ }
+ main: while (true) { switch ($ptr) {
+ case 0:
+ $path = $this.$soundevents;
+ $ct = new ju_AbstractList$1;
+ $ct.$this$0 = $path;
+ $ct.$modCount = $ct.$this$0.$modCount0;
+ $ct.$size1 = $ct.$this$0.$size2();
+ $ct.$removeIndex = (-1);
+ $c = $par2Entity instanceof nms_Entity;
+ var$9 = $par2Entity;
+ while (true) {
+ if (!($ct.$index >= $ct.$size1 ? 0 : 1)) {
+ $v = $par3 * $this.$options.$soundVolume;
+ if ($v > 0.0) {
+ $ct = $this.$sounddefinitions;
+ if ($par1Str !== null) {
+ $c = jl_String_hashCode($par1Str);
+ $ct = ju_HashMap_findNonNullKeyEntry($ct, $par1Str, $c & ($ct.$elementData.data.length - 1 | 0), $c);
+ } else {
+ $ct = $ct.$elementData.data[0];
+ while ($ct !== null && $ct.$key !== null) {
+ $ct = $ct.$next1;
+ }
+ }
+ $ct = $ct === null ? null : $ct.$value0;
+ if ($ct !== null) {
+ $c = $ct.$value;
+ if ($c <= 1) {
+ $ct = new jl_StringBuilder;
+ $ct.$buffer = $rt_createCharArray(16);
+ jl_AbstractStringBuilder_insert($ct, $ct.$length, $rt_s(361));
+ $par1Str = jl_String_replace($par1Str, 46, 47);
+ jl_AbstractStringBuilder_insert($ct, $ct.$length, $par1Str);
+ jl_AbstractStringBuilder_insert($ct, $ct.$length, $rt_s(362));
+ $path = jl_String__init_0($ct.$buffer, 0, $ct.$length);
+ } else {
+ $r = (Math.random() * $c | 0) + 1 | 0;
+ $ct = new jl_StringBuilder;
+ $ct.$buffer = $rt_createCharArray(16);
+ jl_AbstractStringBuilder_insert($ct, $ct.$length, $rt_s(361));
+ $par1Str = jl_String_replace($par1Str, 46, 47);
+ jl_AbstractStringBuilder_insert($ct, $ct.$length, $par1Str);
+ jl_AbstractStringBuilder_insert0($ct, $ct.$length, $r, 10);
+ jl_AbstractStringBuilder_insert($ct, $ct.$length, $rt_s(362));
+ $path = jl_String__init_0($ct.$buffer, 0, $ct.$length);
+ }
+ $par1Str = $this.$soundevents;
+ $ct = new nms_SoundManager$EntitySoundEvent;
+ $par3 = 0.0;
+ var$12 = 0.0;
+ var$13 = 0.0;
+ $ptr = 1;
+ continue main;
+ }
+ if (jl_String_contains($par1Str, $rt_s(363)))
+ nmc_Minecraft_displayEaglercraftText(nmc_Minecraft_getMinecraft(), $rt_s(364));
+ if (jl_System_errCache === null) {
+ $ct = new ji_PrintStream;
+ $ct.$out = new jl_ConsoleOutputStreamStderr;
+ $par2Entity = new jl_StringBuilder;
+ $par2Entity.$buffer = $rt_createCharArray(16);
+ $ct.$sb = $par2Entity;
+ $ct.$buffer0 = $rt_createCharArray(32);
+ $ct.$autoFlush = 0;
+ $par2Entity = new jnci_UTF8Charset;
+ jnc_Charset__init_($par2Entity, $rt_s(2), $rt_createArray(jl_String, 0));
+ $ct.$charset = $par2Entity;
+ jl_System_errCache = $ct;
+ }
+ $path = jl_System_errCache;
+ $par2Entity = new jl_StringBuilder;
+ $par2Entity.$buffer = $rt_createCharArray(16);
+ jl_AbstractStringBuilder_insert($par2Entity, $par2Entity.$length, $rt_s(365));
+ jl_AbstractStringBuilder_insert($par2Entity, $par2Entity.$length, $par1Str);
+ $par1Str = jl_String__init_0($par2Entity.$buffer, 0, $par2Entity.$length);
+ $par2Entity = $path.$sb;
+ jl_AbstractStringBuilder_insert($par2Entity, $par2Entity.$length, $par1Str);
+ $r = $par2Entity.$length;
+ jl_AbstractStringBuilder_insertSpace($par2Entity, $r, $r + 1 | 0);
+ $par2Entity.$buffer.data[$r] = 10;
+ ji_PrintStream_printSB($path);
+ }
+ return;
+ }
+ $e = ju_AbstractList$1_next($ct);
+ $path = $e.$e;
+ if (!$c ? 0 : var$9.$entityId != $path.$entityId ? 0 : 1)
+ break;
+ }
+ nlea_EaglerAdapterImpl2_moveSound($e.$id1, $par2Entity.$posX, $par2Entity.$posY, $par2Entity.$posZ, $par2Entity.$motionX, $par2Entity.$motionY, $par2Entity.$motionZ);
+ return;
+ case 1:
+ $tmp = nlea_EaglerAdapterImpl2_beginPlayback($path, $par3, var$12, var$13, $v, $par4);
+ if ($rt_suspending()) {
+ break main;
+ }
+ $par5 = $tmp;
+ $ct.$e = $par2Entity;
+ $ct.$id1 = $par5;
+ ju_ArrayList_add($par1Str, $ct);
+ nlea_EaglerAdapterImpl2_moveSound($par5, $par2Entity.$posX, $par2Entity.$posY, $par2Entity.$posZ, $par2Entity.$motionX, $par2Entity.$motionY, $par2Entity.$motionZ);
+ return;
+ default: $rt_invalidPointer();
+ }}
+ $rt_nativeThread().push($this, $par1Str, $par2Entity, $par3, $par4, $par5, $path, $ct, $c, var$9, $v, $r, var$12, var$13, $e, $ptr);
+}
+function nms_SoundManager_playSound($this, $par1Str, $par2, $par3, $par4, $par5, $par6) {
+ var $v, $ct, $c, $path, $r, var$12, $ptr, $tmp;
+ $ptr = 0;
+ if ($rt_resuming()) {
+ var $thread = $rt_nativeThread();
+ $ptr = $thread.pop();var$12 = $thread.pop();$r = $thread.pop();$path = $thread.pop();$c = $thread.pop();$ct = $thread.pop();$v = $thread.pop();$par6 = $thread.pop();$par5 = $thread.pop();$par4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1Str = $thread.pop();$this = $thread.pop();
+ }
+ main: while (true) { switch ($ptr) {
+ case 0:
+ $v = $par5 * $this.$options.$soundVolume;
+ if ($v > 0.0) {
+ $ct = $this.$sounddefinitions;
+ if ($par1Str !== null) {
+ $c = jl_String_hashCode($par1Str);
+ $ct = ju_HashMap_findNonNullKeyEntry($ct, $par1Str, $c & ($ct.$elementData.data.length - 1 | 0), $c);
+ } else {
+ $ct = $ct.$elementData.data[0];
+ while ($ct !== null && $ct.$key !== null) {
+ $ct = $ct.$next1;
+ }
+ }
+ $ct = $ct === null ? null : $ct.$value0;
+ if ($ct !== null) {
+ $c = $ct.$value;
+ if ($c <= 1) {
+ $ct = new jl_StringBuilder;
+ $ct.$buffer = $rt_createCharArray(16);
+ jl_AbstractStringBuilder_insert($ct, $ct.$length, $rt_s(361));
+ $par1Str = jl_String_replace($par1Str, 46, 47);
+ jl_AbstractStringBuilder_insert($ct, $ct.$length, $par1Str);
+ jl_AbstractStringBuilder_insert($ct, $ct.$length, $rt_s(362));
+ $path = jl_String__init_0($ct.$buffer, 0, $ct.$length);
+ } else {
+ $r = (Math.random() * $c | 0) + 1 | 0;
+ $ct = new jl_StringBuilder;
+ $ct.$buffer = $rt_createCharArray(16);
+ jl_AbstractStringBuilder_insert($ct, $ct.$length, $rt_s(361));
+ $par1Str = jl_String_replace($par1Str, 46, 47);
+ jl_AbstractStringBuilder_insert($ct, $ct.$length, $par1Str);
+ jl_AbstractStringBuilder_insert0($ct, $ct.$length, $r, 10);
+ jl_AbstractStringBuilder_insert($ct, $ct.$length, $rt_s(362));
+ $path = jl_String__init_0($ct.$buffer, 0, $ct.$length);
+ }
+ $ptr = 1;
+ continue main;
+ }
+ if (jl_String_contains($par1Str, $rt_s(363))) {
+ nmc_Minecraft_displayEaglercraftText(nmc_Minecraft_theMinecraft, $rt_s(364));
+ return;
+ }
+ if (jl_System_errCache === null) {
+ $path = new ji_PrintStream;
+ $path.$out = new jl_ConsoleOutputStreamStderr;
+ $ct = new jl_StringBuilder;
+ $ct.$buffer = $rt_createCharArray(16);
+ $path.$sb = $ct;
+ $path.$buffer0 = $rt_createCharArray(32);
+ $path.$autoFlush = 0;
+ $ct = new jnci_UTF8Charset;
+ jnc_Charset__init_($ct, $rt_s(2), $rt_createArray(jl_String, 0));
+ $path.$charset = $ct;
+ jl_System_errCache = $path;
+ }
+ var$12 = jl_System_errCache;
+ $ct = new jl_StringBuilder;
+ $ct.$buffer = $rt_createCharArray(16);
+ jl_AbstractStringBuilder_insert($ct, $ct.$length, $rt_s(365));
+ jl_AbstractStringBuilder_insert($ct, $ct.$length, $par1Str);
+ $par1Str = jl_String__init_0($ct.$buffer, 0, $ct.$length);
+ $ct = var$12.$sb;
+ jl_AbstractStringBuilder_insert($ct, $ct.$length, $par1Str);
+ $r = $ct.$length;
+ jl_AbstractStringBuilder_insertSpace($ct, $r, $r + 1 | 0);
+ $ct.$buffer.data[$r] = 10;
+ ji_PrintStream_printSB(var$12);
+ }
+ return;
+ case 1:
+ nlea_EaglerAdapterImpl2_beginPlayback($path, $par2, $par3, $par4, $v, $par6);
+ if ($rt_suspending()) {
+ break main;
+ }
+ return;
+ default: $rt_invalidPointer();
+ }}
+ $rt_nativeThread().push($this, $par1Str, $par2, $par3, $par4, $par5, $par6, $v, $ct, $c, $path, $r, var$12, $ptr);
+}
+function nms_SoundManager_playSoundFX($this, $par1Str, $par2, $par3) {
+ var $v, $ct, var$6, $c, $path, $r, var$10, $ptr, $tmp;
+ $ptr = 0;
+ if ($rt_resuming()) {
+ var $thread = $rt_nativeThread();
+ $ptr = $thread.pop();var$10 = $thread.pop();$r = $thread.pop();$path = $thread.pop();$c = $thread.pop();var$6 = $thread.pop();$ct = $thread.pop();$v = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1Str = $thread.pop();$this = $thread.pop();
+ }
+ main: while (true) { switch ($ptr) {
+ case 0:
+ $v = $par3 * $this.$options.$soundVolume;
+ if ($v > 0.0) {
+ $ct = $this.$sounddefinitions;
+ if ($par1Str !== null) {
+ var$6 = jl_String_hashCode($par1Str);
+ $ct = ju_HashMap_findNonNullKeyEntry($ct, $par1Str, var$6 & ($ct.$elementData.data.length - 1 | 0), var$6);
+ } else {
+ $ct = $ct.$elementData.data[0];
+ while ($ct !== null && $ct.$key !== null) {
+ $ct = $ct.$next1;
+ }
+ }
+ $ct = $ct === null ? null : $ct.$value0;
+ if ($ct !== null) {
+ $c = $ct.$value;
+ if ($c <= 1) {
+ $ct = new jl_StringBuilder;
+ $ct.$buffer = $rt_createCharArray(16);
+ jl_AbstractStringBuilder_insert($ct, $ct.$length, $rt_s(361));
+ $par1Str = jl_String_replace($par1Str, 46, 47);
+ jl_AbstractStringBuilder_insert($ct, $ct.$length, $par1Str);
+ jl_AbstractStringBuilder_insert($ct, $ct.$length, $rt_s(362));
+ $path = jl_String__init_0($ct.$buffer, 0, $ct.$length);
+ } else {
+ $r = (Math.random() * $c | 0) + 1 | 0;
+ var$10 = new jl_StringBuilder;
+ var$10.$buffer = $rt_createCharArray(16);
+ jl_AbstractStringBuilder_insert(var$10, var$10.$length, $rt_s(361));
+ $par1Str = jl_String_replace($par1Str, 46, 47);
+ jl_AbstractStringBuilder_insert(var$10, var$10.$length, $par1Str);
+ jl_AbstractStringBuilder_insert0(var$10, var$10.$length, $r, 10);
+ jl_AbstractStringBuilder_insert(var$10, var$10.$length, $rt_s(362));
+ $path = jl_String__init_0(var$10.$buffer, 0, var$10.$length);
+ }
+ $ptr = 1;
+ continue main;
+ }
+ if (jl_System_errCache === null) {
+ var$10 = new ji_PrintStream;
+ var$10.$out = new jl_ConsoleOutputStreamStderr;
+ $ct = new jl_StringBuilder;
+ $ct.$buffer = $rt_createCharArray(16);
+ var$10.$sb = $ct;
+ var$10.$buffer0 = $rt_createCharArray(32);
+ var$10.$autoFlush = 0;
+ $ct = new jnci_UTF8Charset;
+ jnc_Charset__init_($ct, $rt_s(2), $rt_createArray(jl_String, 0));
+ var$10.$charset = $ct;
+ jl_System_errCache = var$10;
+ }
+ $path = jl_System_errCache;
+ $ct = new jl_StringBuilder;
+ $ct.$buffer = $rt_createCharArray(16);
+ jl_AbstractStringBuilder_insert($ct, $ct.$length, $rt_s(365));
+ jl_AbstractStringBuilder_insert($ct, $ct.$length, $par1Str);
+ var$10 = jl_String__init_0($ct.$buffer, 0, $ct.$length);
+ $par1Str = $path.$sb;
+ jl_AbstractStringBuilder_insert($par1Str, $par1Str.$length, var$10);
+ $r = $par1Str.$length;
+ jl_AbstractStringBuilder_insertSpace($par1Str, $r, $r + 1 | 0);
+ $par1Str.$buffer.data[$r] = 10;
+ ji_PrintStream_printSB($path);
+ }
+ return;
+ case 1:
+ nlea_EaglerAdapterImpl2_beginPlaybackStatic($path, $v, $par3);
+ if ($rt_suspending()) {
+ break main;
+ }
+ return;
+ default: $rt_invalidPointer();
+ }}
+ $rt_nativeThread().push($this, $par1Str, $par2, $par3, $v, $ct, var$6, $c, $path, $r, var$10, $ptr);
+}
+function nms_SoundManager_resumeAllSounds($this) {
+ return;
+}
+function nms_SoundManager_func_92071_g($this) {
+ var $e, $e2, var$3, var$4, $itr, var$6, var$7, var$8, var$9, var$10, var$11, $ptr, $tmp;
+ $ptr = 0;
+ if ($rt_resuming()) {
+ var $thread = $rt_nativeThread();
+ $ptr = $thread.pop();var$11 = $thread.pop();var$10 = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();var$6 = $thread.pop();$itr = $thread.pop();var$4 = $thread.pop();var$3 = $thread.pop();$e2 = $thread.pop();$e = $thread.pop();$this = $thread.pop();
+ }
+ main: while (true) { switch ($ptr) {
+ case 0:
+ a: {
+ $this.$resetTimer = $this.$resetTimer + 1 | 0;
+ if (!($this.$resetTimer % 20 | 0)) {
+ $e = $this.$soundevents;
+ $e2 = new ju_ArrayList;
+ $e2.$array1 = $rt_createArray(jl_Object, 10);
+ $this.$soundevents = $e2;
+ var$3 = new ju_AbstractList$1;
+ var$3.$this$0 = $e;
+ var$3.$modCount = var$3.$this$0.$modCount0;
+ var$3.$size1 = var$3.$this$0.$size2();
+ var$3.$removeIndex = (-1);
+ while (true) {
+ if (!(var$3.$index >= var$3.$size1 ? 0 : 1))
+ break a;
+ $e2 = ju_AbstractList$1_next(var$3);
+ var$4 = $e2.$id1;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ $e = nlea_EaglerAdapterImpl2_activeSoundEffects;
+ $itr = jl_Integer_valueOf(var$4);
+ if ($itr !== null) {
+ var$6 = jl_Integer_hashCode($itr);
+ $e = ju_HashMap_findNonNullKeyEntry($e, $itr, var$6 & ($e.$elementData.data.length - 1 | 0), var$6);
+ } else {
+ $e = $e.$elementData.data[0];
+ while ($e !== null && $e.$key !== null) {
+ $e = $e.$next1;
+ }
+ }
+ if ($e === null ? 0 : 1)
+ ju_ArrayList_add($this.$soundevents, $e2);
+ }
+ }
+ }
+ $e = $this.$queuedsoundevents;
+ $itr = new ju_AbstractList$1;
+ $itr.$this$0 = $e;
+ $itr.$modCount = $itr.$this$0.$modCount0;
+ $itr.$size1 = $itr.$this$0.$size2();
+ $itr.$removeIndex = (-1);
+ while ($itr.$index >= $itr.$size1 ? 0 : 1) {
+ $e = ju_AbstractList$1_next($itr);
+ var$4 = $e.$timer0 - 1 | 0;
+ $e.$timer0 = var$4;
+ if (var$4 <= 0) {
+ $e2 = $e.$sound;
+ var$7 = $e.$x1;
+ var$8 = $e.$y1;
+ var$9 = $e.$z1;
+ var$10 = $e.$volume;
+ var$11 = $e.$pitch;
+ $ptr = 1;
+ continue main;
+ }
+ }
+ return;
+ case 1:
+ nms_SoundManager_playSound($this, $e2, var$7, var$8, var$9, var$10, var$11);
+ if ($rt_suspending()) {
+ break main;
+ }
+ ju_AbstractList$1_remove($itr);
+ while ($itr.$index >= $itr.$size1 ? 0 : 1) {
+ $e = ju_AbstractList$1_next($itr);
+ var$4 = $e.$timer0 - 1 | 0;
+ $e.$timer0 = var$4;
+ if (var$4 > 0)
+ continue;
+ else {
+ $e2 = $e.$sound;
+ var$7 = $e.$x1;
+ var$8 = $e.$y1;
+ var$9 = $e.$z1;
+ var$10 = $e.$volume;
+ var$11 = $e.$pitch;
+ continue main;
+ }
+ }
+ return;
+ default: $rt_invalidPointer();
+ }}
+ $rt_nativeThread().push($this, $e, $e2, var$3, var$4, $itr, var$6, var$7, var$8, var$9, var$10, var$11, $ptr);
+}
+function nms_SoundManager_func_92070_a($this, $par1Str, $par2, $par3, $par4, $par5, $par6, $par7) {
+ var var$8, var$9;
+ var$8 = $this.$queuedsoundevents;
+ var$9 = new nms_SoundManager$QueuedSoundEvent;
+ var$9.$sound = $par1Str;
+ var$9.$x1 = $par2;
+ var$9.$y1 = $par3;
+ var$9.$z1 = $par4;
+ var$9.$volume = $par5;
+ var$9.$pitch = $par6;
+ var$9.$timer0 = $par7;
+ ju_ArrayList_add(var$8, var$9);
+}
+function nms_SoundManager_playTheTitleMusic($this) {
+ var var$1, var$2, var$3, var$4, var$5, var$6, $ptr, $tmp;
+ $ptr = 0;
+ if ($rt_resuming()) {
+ var $thread = $rt_nativeThread();
+ $ptr = $thread.pop();var$6 = $thread.pop();var$5 = $thread.pop();var$4 = $thread.pop();var$3 = $thread.pop();var$2 = $thread.pop();var$1 = $thread.pop();$this = $thread.pop();
+ }
+ main: while (true) { switch ($ptr) {
+ case 0:
+ if ($this.$titleMusic != (-1)) {
+ var$1 = $this.$titleMusic;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ var$2 = nlea_EaglerAdapterImpl2_activeSoundEffects;
+ var$3 = jl_Integer_valueOf(var$1);
+ if (var$3 !== null) {
+ var$4 = jl_Integer_hashCode(var$3);
+ var$2 = ju_HashMap_findNonNullKeyEntry(var$2, var$3, var$4 & (var$2.$elementData.data.length - 1 | 0), var$4);
+ } else {
+ var$2 = var$2.$elementData.data[0];
+ while (var$2 !== null && var$2.$key !== null) {
+ var$2 = var$2.$next1;
+ }
+ }
+ if (var$2 === null ? 0 : 1)
+ return;
+ }
+ var$2 = $rt_s(366);
+ var$5 = 1.0;
+ var$6 = 1.0;
+ $ptr = 1;
+ case 1:
+ $tmp = nlea_EaglerAdapterImpl2_beginPlaybackStatic(var$2, var$5, var$6);
+ if ($rt_suspending()) {
+ break main;
+ }
+ var$1 = $tmp;
+ $this.$titleMusic = var$1;
+ return;
+ default: $rt_invalidPointer();
+ }}
+ $rt_nativeThread().push($this, var$1, var$2, var$3, var$4, var$5, var$6, $ptr);
+}
+function nms_SoundManager_stopTheTitleMusic($this) {
+ var var$1, var$2, var$3, var$4;
+ var$1 = $this.$titleMusic;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ var$2 = nlea_EaglerAdapterImpl2_activeSoundEffects;
+ var$3 = jl_Integer_valueOf(var$1);
+ if (var$3 !== null) {
+ var$4 = jl_Integer_hashCode(var$3);
+ var$2 = ju_HashMap_findNonNullKeyEntry(var$2, var$3, var$4 & (var$2.$elementData.data.length - 1 | 0), var$4);
+ } else {
+ var$2 = var$2.$elementData.data[0];
+ while (var$2 !== null && var$2.$key !== null) {
+ var$2 = var$2.$next1;
+ }
+ }
+ if (var$2 === null ? 0 : 1)
+ nlea_EaglerAdapterImpl2_endSound($this.$titleMusic);
+ $this.$titleMusic = (-1);
+}
+function nms_Profiler() {
+ var a = this; jl_Object.call(a);
+ a.$sectionList = null;
+ a.$timestampList = null;
+ a.$profilingEnabled = 0;
+ a.$profilingSection = null;
+ a.$profilingMap = null;
+}
+function nms_Profiler__init_0() {
+ var var_0 = new nms_Profiler();
+ nms_Profiler__init_(var_0);
+ return var_0;
+}
+function nms_Profiler__init_($this) {
+ var var$1;
+ var$1 = new ju_ArrayList;
+ var$1.$array1 = $rt_createArray(jl_Object, 10);
+ $this.$sectionList = var$1;
+ var$1 = new ju_ArrayList;
+ var$1.$array1 = $rt_createArray(jl_Object, 10);
+ $this.$timestampList = var$1;
+ $this.$profilingEnabled = 0;
+ $this.$profilingSection = $rt_s(44);
+ $this.$profilingMap = ju_HashMap__init_1(16, 0.75);
+}
+function nms_Profiler_clearProfiling($this) {
+ var var$1, var$2;
+ var$1 = $this.$profilingMap;
+ if (var$1.$elementCount > 0) {
+ var$1.$elementCount = 0;
+ var$2 = var$1.$elementData;
+ ju_Arrays_fill(var$2, 0, var$2.data.length, null);
+ var$1.$modCount1 = var$1.$modCount1 + 1 | 0;
+ }
+ $this.$profilingSection = $rt_s(44);
+ var$1 = $this.$sectionList;
+ ju_Arrays_fill(var$1.$array1, 0, var$1.$size0, null);
+ var$1.$size0 = 0;
+}
+function nms_Profiler_startSection($this, $par1Str) {
+ var var$2, var$3, var$4;
+ if ($this.$profilingEnabled) {
+ if ($this.$profilingSection.$characters.data.length > 0) {
+ var$2 = new jl_StringBuilder;
+ var$2.$buffer = $rt_createCharArray(16);
+ var$3 = $this.$profilingSection;
+ jl_AbstractStringBuilder_insert(var$2, var$2.$length, var$3);
+ jl_AbstractStringBuilder_insert(var$2, var$2.$length, $rt_s(303));
+ $this.$profilingSection = jl_String__init_0(var$2.$buffer, 0, var$2.$length);
+ }
+ var$2 = new jl_StringBuilder;
+ var$2.$buffer = $rt_createCharArray(16);
+ var$3 = $this.$profilingSection;
+ jl_AbstractStringBuilder_insert(var$2, var$2.$length, var$3);
+ jl_AbstractStringBuilder_insert(var$2, var$2.$length, $par1Str);
+ $this.$profilingSection = jl_String__init_0(var$2.$buffer, 0, var$2.$length);
+ ju_ArrayList_add($this.$sectionList, $this.$profilingSection);
+ $par1Str = $this.$timestampList;
+ var$4 = Long_fromNumber(performance.now() * 1000000.0);
+ var$2 = new jl_Long;
+ var$2.$value2 = var$4;
+ ju_ArrayList_add($par1Str, var$2);
+ }
+}
+function nms_Profiler_endSection($this) {
+ var $var1, $var3, $var5, var$4, var$5, var$6, var$7, var$8, var$9, var$10;
+ if ($this.$profilingEnabled) {
+ $var1 = Long_fromNumber(performance.now() * 1000000.0);
+ $var3 = ju_ArrayList_remove($this.$timestampList, $this.$timestampList.$size0 - 1 | 0).$value2;
+ ju_ArrayList_remove($this.$sectionList, $this.$sectionList.$size0 - 1 | 0);
+ $var5 = Long_sub($var1, $var3);
+ var$4 = $this.$profilingMap;
+ var$5 = $this.$profilingSection;
+ if (var$5 !== null) {
+ var$6 = jl_String_hashCode(var$5);
+ var$4 = ju_HashMap_findNonNullKeyEntry(var$4, var$5, var$6 & (var$4.$elementData.data.length - 1 | 0), var$6);
+ } else {
+ var$4 = var$4.$elementData.data[0];
+ while (var$4 !== null && var$4.$key !== null) {
+ var$4 = var$4.$next1;
+ }
+ }
+ if (!(var$4 === null ? 0 : 1)) {
+ var$4 = $this.$profilingMap;
+ var$5 = $this.$profilingSection;
+ var$7 = new jl_Long;
+ var$7.$value2 = $var5;
+ ju_HashMap_putImpl(var$4, var$5, var$7);
+ } else {
+ var$4 = $this.$profilingMap;
+ var$5 = $this.$profilingSection;
+ var$7 = $this.$profilingMap;
+ var$8 = $this.$profilingSection;
+ if (var$8 !== null) {
+ var$6 = jl_String_hashCode(var$8);
+ var$7 = ju_HashMap_findNonNullKeyEntry(var$7, var$8, var$6 & (var$7.$elementData.data.length - 1 | 0), var$6);
+ } else {
+ var$7 = var$7.$elementData.data[0];
+ while (var$7 !== null && var$7.$key !== null) {
+ var$7 = var$7.$next1;
+ }
+ }
+ $var3 = Long_add((var$7 === null ? null : var$7.$value0).$value2, $var5);
+ var$7 = new jl_Long;
+ var$7.$value2 = $var3;
+ ju_HashMap_putImpl(var$4, var$5, var$7);
+ }
+ if (Long_gt($var5, Long_fromInt(100000000))) {
+ if (jl_System_outCache === null) {
+ var$5 = new ji_PrintStream;
+ var$5.$out = new jl_ConsoleOutputStreamStdout;
+ var$4 = new jl_StringBuilder;
+ var$4.$buffer = $rt_createCharArray(16);
+ var$5.$sb = var$4;
+ var$5.$buffer0 = $rt_createCharArray(32);
+ var$5.$autoFlush = 0;
+ var$4 = new jnci_UTF8Charset;
+ jnc_Charset__init_(var$4, $rt_s(2), $rt_createArray(jl_String, 0));
+ var$5.$charset = var$4;
+ jl_System_outCache = var$5;
+ }
+ var$7 = jl_System_outCache;
+ var$4 = new jl_StringBuilder;
+ var$4.$buffer = $rt_createCharArray(16);
+ jl_AbstractStringBuilder_insert(var$4, var$4.$length, $rt_s(367));
+ var$5 = $this.$profilingSection;
+ jl_AbstractStringBuilder_insert(var$4, var$4.$length, var$5);
+ jl_AbstractStringBuilder_insert(var$4, var$4.$length, $rt_s(368));
+ var$9 = Long_toNumber($var5) / 1000000.0;
+ jl_AbstractStringBuilder_insert3(var$4, var$4.$length, var$9);
+ jl_AbstractStringBuilder_insert(var$4, var$4.$length, $rt_s(369));
+ var$5 = jl_String__init_0(var$4.$buffer, 0, var$4.$length);
+ var$4 = var$7.$sb;
+ jl_AbstractStringBuilder_insert(var$4, var$4.$length, var$5);
+ var$10 = var$4.$length;
+ jl_AbstractStringBuilder_insertSpace(var$4, var$10, var$10 + 1 | 0);
+ var$4.$buffer.data[var$10] = 10;
+ ji_PrintStream_printSB(var$7);
+ }
+ $this.$profilingSection = ($this.$sectionList.$size0 ? 0 : 1) ? $rt_s(44) : ju_ArrayList_get($this.$sectionList, $this.$sectionList.$size0 - 1 | 0);
+ }
+}
+function nms_Profiler_getProfilingData($this, $par1Str) {
+ var $var12, var$3, $var3, $var21, $var5, $var7, $var8, $var10, $var11, $var20, $var17, $var15, var$14;
+ if (!$this.$profilingEnabled)
+ return null;
+ $var12 = $this.$profilingMap;
+ var$3 = jl_String_hashCode($rt_s(281));
+ if (!(ju_HashMap_findNonNullKeyEntry($var12, $rt_s(281), var$3 & ($var12.$elementData.data.length - 1 | 0), var$3) === null ? 0 : 1))
+ $var3 = Long_ZERO;
+ else {
+ $var21 = $this.$profilingMap;
+ var$3 = jl_String_hashCode($rt_s(281));
+ $var21 = ju_HashMap_findNonNullKeyEntry($var21, $rt_s(281), var$3 & ($var21.$elementData.data.length - 1 | 0), var$3);
+ $var3 = ($var21 === null ? null : $var21.$value0).$value2;
+ }
+ $var21 = $this.$profilingMap;
+ if ($par1Str !== null) {
+ var$3 = jl_String_hashCode($par1Str);
+ $var21 = ju_HashMap_findNonNullKeyEntry($var21, $par1Str, var$3 & ($var21.$elementData.data.length - 1 | 0), var$3);
+ } else {
+ $var21 = $var21.$elementData.data[0];
+ while ($var21 !== null && $var21.$key !== null) {
+ $var21 = $var21.$next1;
+ }
+ }
+ if (!($var21 === null ? 0 : 1))
+ $var5 = Long_fromInt(-1);
+ else {
+ $var21 = $this.$profilingMap;
+ if ($par1Str !== null) {
+ var$3 = jl_String_hashCode($par1Str);
+ $var21 = ju_HashMap_findNonNullKeyEntry($var21, $par1Str, var$3 & ($var21.$elementData.data.length - 1 | 0), var$3);
+ } else {
+ $var21 = $var21.$elementData.data[0];
+ while ($var21 !== null && $var21.$key !== null) {
+ $var21 = $var21.$next1;
+ }
+ }
+ $var5 = ($var21 === null ? null : $var21.$value0).$value2;
+ }
+ $var7 = ju_ArrayList__init_0();
+ if (jl_String_length($par1Str) > 0) {
+ $var21 = new jl_StringBuilder;
+ jl_AbstractStringBuilder__init_($var21);
+ jl_AbstractStringBuilder_append($var21, $par1Str);
+ $par1Str = jl_StringBuilder_toString(jl_StringBuilder_append0($var21, $rt_s(303)));
+ }
+ $var8 = Long_ZERO;
+ $var10 = ju_HashMap_keySet($this.$profilingMap).$iterator();
+ while ($var10.$hasNext()) {
+ $var11 = $var10.$next();
+ if (jl_String_length($var11) > jl_String_length($par1Str) && jl_String_startsWith0($var11, $par1Str) && jl_String_indexOf1($var11, $rt_s(303), jl_String_length($par1Str) + 1 | 0) < 0)
+ $var8 = Long_add($var8, jl_Long_longValue(ju_HashMap_get($this.$profilingMap, $var11)));
+ }
+ $var20 = Long_toNumber($var8);
+ if (Long_ge($var8, $var5))
+ $var5 = $var8;
+ if (Long_lt($var3, $var5))
+ $var3 = $var5;
+ $var21 = ju_HashMap_keySet($this.$profilingMap).$iterator();
+ while ($var21.$hasNext()) {
+ $var12 = $var21.$next();
+ if (jl_String_length($var12) <= jl_String_length($par1Str))
+ continue;
+ if (!jl_String_startsWith0($var12, $par1Str))
+ continue;
+ if (jl_String_indexOf1($var12, $rt_s(303), jl_String_length($par1Str) + 1 | 0) >= 0)
+ continue;
+ $var17 = Long_toNumber(jl_Long_longValue(ju_HashMap_get($this.$profilingMap, $var12))) * 100.0;
+ $var15 = $var17 / Long_toNumber($var5);
+ $var17 = $var17 / Long_toNumber($var3);
+ ju_ArrayList_add($var7, nms_ProfilerResult__init_(jl_String_substring($var12, jl_String_length($par1Str)), $var15, $var17));
+ }
+ $var21 = ju_HashMap_keySet($this.$profilingMap).$iterator();
+ while ($var21.$hasNext()) {
+ $var12 = $var21.$next();
+ ju_HashMap_put($this.$profilingMap, $var12, jl_Long_valueOf(Long_div(Long_mul(jl_Long_longValue(ju_HashMap_get($this.$profilingMap, $var12)), Long_fromInt(999)), Long_fromInt(1000))));
+ }
+ var$14 = Long_toNumber($var5);
+ if (var$14 > $var20) {
+ $var21 = new nms_ProfilerResult;
+ $var17 = (var$14 - $var20) * 100.0;
+ nms_ProfilerResult__init_0($var21, $rt_s(302), $var17 / Long_toNumber($var5), $var17 / Long_toNumber($var3));
+ ju_ArrayList_add($var7, $var21);
+ }
+ ju_Collections_sort($var7);
+ ju_ArrayList_add0($var7, 0, nms_ProfilerResult__init_($par1Str, 100.0, Long_toNumber($var5) * 100.0 / Long_toNumber($var3)));
+ return $var7;
+}
+function nms_Profiler_endStartSection($this, $par1Str) {
+ nms_Profiler_endSection($this);
+ nms_Profiler_startSection($this, $par1Str);
+}
+function ju_Set() {
+}
+function ju_AbstractSet() {
+ ju_AbstractCollection.call(this);
+}
+function ju_AbstractSet_removeAll($this, $c) {
+ var $modified, $iter, $elem;
+ $modified = 0;
+ if ($this.$backingMap.$elementCount < $c.$size2()) {
+ $iter = $this.$backingMap;
+ if ($iter.$cachedKeySet === null) {
+ $elem = new ju_HashMap$1;
+ $elem.$this$01 = $iter;
+ $iter.$cachedKeySet = $elem;
+ }
+ $iter = $iter.$cachedKeySet.$iterator();
+ while ($iter.$hasNext()) {
+ if ($c.$contains0($iter.$next())) {
+ $modified = 1;
+ $iter.$remove();
+ }
+ }
+ } else {
+ $iter = $c.$iterator();
+ while ($iter.$hasNext()) {
+ $c = $iter.$next();
+ $c = ju_HashMap_removeEntry($this.$backingMap, $c);
+ if (!(($c === null ? null : $c.$value0) === null ? 0 : 1))
+ continue;
+ $modified = 1;
+ }
+ }
+ return $modified;
+}
+function ju_AbstractSet_equals($this, $obj) {
+ var $other, $iter;
+ if ($this === $obj)
+ return 1;
+ if (!$rt_isInstance($obj, ju_Set))
+ return 0;
+ $other = $obj;
+ if ($this.$size2() != $other.$size2())
+ return 0;
+ $iter = $other.$iterator();
+ while ($iter.$hasNext()) {
+ if ($this.$contains0($iter.$next()))
+ continue;
+ else
+ return 0;
+ }
+ return 1;
+}
+function ju_AbstractSet_hashCode($this) {
+ var var$1, var$2, var$3, var$4, var$5, var$6;
+ var$1 = $rt_createArray(jl_Object, $this.$backingMap.$elementCount);
+ var$2 = 0;
+ var$3 = $this.$backingMap;
+ if (var$3.$cachedKeySet === null) {
+ var$4 = new ju_HashMap$1;
+ var$4.$this$01 = var$3;
+ var$3.$cachedKeySet = var$4;
+ }
+ var$5 = var$1.data;
+ var$4 = var$3.$cachedKeySet.$iterator();
+ while (var$4.$hasNext()) {
+ var$6 = var$2 + 1 | 0;
+ var$5[var$2] = var$4.$next();
+ var$2 = var$6;
+ }
+ return ju_Arrays_hashCode1(var$1);
+}
+function ju_HashSet() {
+ ju_AbstractSet.call(this);
+ this.$backingMap = null;
+}
+function ju_HashSet__init_0() {
+ var var_0 = new ju_HashSet();
+ ju_HashSet__init_(var_0);
+ return var_0;
+}
+function ju_HashSet__init_1(var_0) {
+ var var_1 = new ju_HashSet();
+ ju_HashSet__init_2(var_1, var_0);
+ return var_1;
+}
+function ju_HashSet__init_($this) {
+ $this.$backingMap = ju_HashMap__init_1(16, 0.75);
+}
+function ju_HashSet__init_2($this, $backingMap) {
+ $this.$backingMap = $backingMap;
+}
+function ju_HashSet_add($this, $object) {
+ return ju_HashMap_putImpl($this.$backingMap, $object, $this) !== null ? 0 : 1;
+}
+function ju_HashSet_clear($this) {
+ var var$1, var$2;
+ var$1 = $this.$backingMap;
+ if (var$1.$elementCount > 0) {
+ var$1.$elementCount = 0;
+ var$2 = var$1.$elementData;
+ ju_Arrays_fill(var$2, 0, var$2.data.length, null);
+ var$1.$modCount1 = var$1.$modCount1 + 1 | 0;
+ }
+}
+function ju_HashSet_contains($this, $object) {
+ var var$2, var$3;
+ var$2 = $this.$backingMap;
+ if ($object !== null) {
+ var$3 = $object.$hashCode0();
+ $object = ju_HashMap_findNonNullKeyEntry(var$2, $object, var$3 & (var$2.$elementData.data.length - 1 | 0), var$3);
+ } else {
+ $object = var$2.$elementData.data[0];
+ while ($object !== null && $object.$key !== null) {
+ $object = $object.$next1;
+ }
+ }
+ return $object === null ? 0 : 1;
+}
+function ju_HashSet_isEmpty($this) {
+ return $this.$backingMap.$elementCount ? 0 : 1;
+}
+function ju_HashSet_iterator($this) {
+ var var$1, var$2;
+ var$1 = $this.$backingMap;
+ if (var$1.$cachedKeySet === null) {
+ var$2 = new ju_HashMap$1;
+ var$2.$this$01 = var$1;
+ var$1.$cachedKeySet = var$2;
+ }
+ return var$1.$cachedKeySet.$iterator();
+}
+function ju_HashSet_remove($this, $object) {
+ $object = ju_HashMap_removeEntry($this.$backingMap, $object);
+ return ($object === null ? null : $object.$value0) === null ? 0 : 1;
+}
+function ju_HashSet_size($this) {
+ return $this.$backingMap.$elementCount;
+}
+function nms_Packet() {
+ var a = this; jl_Object.call(a);
+ a.$creationTimeMillis = Long_ZERO;
+ a.$isChunkDataPacket = 0;
+}
+var nms_Packet_packetIdToClassMap = null;
+var nms_Packet_packetClassToIdMap = null;
+var nms_Packet_clientPacketIdList = null;
+var nms_Packet_serverPacketIdList = null;
+var nms_Packet_receivedID = Long_ZERO;
+var nms_Packet_receivedSize = Long_ZERO;
+var nms_Packet_sentID = Long_ZERO;
+var nms_Packet_sentSize = Long_ZERO;
+function nms_Packet_$callClinit() {
+ nms_Packet_$callClinit = $rt_eraseClinit(nms_Packet);
+ nms_Packet__clinit_();
+}
+function nms_Packet_addIdClassMapping($par0, $par1, $par2, $par3Class) {
+ var var$5, var$6, var$7, var$8, var$9, var$10;
+ nms_Packet_$callClinit();
+ if (nms_IntHashMap_lookupEntry(nms_Packet_packetIdToClassMap, $par0) === null ? 0 : 1) {
+ $par3Class = new jl_IllegalArgumentException;
+ var$5 = new jl_StringBuilder;
+ var$5.$buffer = $rt_createCharArray(16);
+ jl_AbstractStringBuilder_insert(var$5, var$5.$length, $rt_s(370));
+ jl_AbstractStringBuilder_insert0(var$5, var$5.$length, $par0, 10);
+ var$6 = jl_String__init_0(var$5.$buffer, 0, var$5.$length);
+ $par3Class.$suppressionEnabled = 1;
+ $par3Class.$writableStackTrace = 1;
+ $par3Class.$message = var$6;
+ $rt_throw($par3Class);
+ }
+ var$5 = nms_Packet_packetClassToIdMap;
+ if ($par3Class !== null) {
+ var$7 = jl_Object_identity($par3Class);
+ var$5 = ju_HashMap_findNonNullKeyEntry(var$5, $par3Class, var$7 & (var$5.$elementData.data.length - 1 | 0), var$7);
+ } else {
+ var$5 = var$5.$elementData.data[0];
+ while (var$5 !== null && var$5.$key !== null) {
+ var$5 = var$5.$next1;
+ }
+ }
+ if (!(var$5 === null ? 0 : 1)) {
+ nms_IntHashMap_addKey(nms_Packet_packetIdToClassMap, $par0, $par3Class);
+ ju_HashMap_putImpl(nms_Packet_packetClassToIdMap, $par3Class, jl_Integer_valueOf($par0));
+ if ($par1) {
+ $par3Class = nms_Packet_clientPacketIdList;
+ var$5 = jl_Integer_valueOf($par0);
+ ju_HashMap_putImpl($par3Class.$backingMap, var$5, $par3Class);
+ }
+ if ($par2) {
+ $par3Class = nms_Packet_serverPacketIdList;
+ var$5 = jl_Integer_valueOf($par0);
+ ju_HashMap_putImpl($par3Class.$backingMap, var$5, $par3Class);
+ }
+ return;
+ }
+ var$5 = new jl_IllegalArgumentException;
+ var$6 = new jl_StringBuilder;
+ var$6.$buffer = $rt_createCharArray(16);
+ jl_AbstractStringBuilder_insert(var$6, var$6.$length, $rt_s(371));
+ $par0 = var$6.$length;
+ if ($par3Class === null)
+ $par3Class = $rt_s(47);
+ else {
+ var$8 = new jl_StringBuilder;
+ jl_AbstractStringBuilder__init_2(var$8, 16);
+ var$9 = jl_Class_getClass($par3Class.constructor);
+ if (var$9.$name === null)
+ var$9.$name = $rt_str(var$9.$platformClass.$meta.name);
+ var$10 = var$9.$name;
+ jl_StringBuilder_insert14(var$8, var$8.$length, var$10);
+ jl_StringBuilder_insert14(var$8, var$8.$length, $rt_s(1));
+ $par3Class = otci_IntegerUtil_toUnsignedLogRadixString(jl_Object_identity($par3Class), 4);
+ jl_StringBuilder_insert14(var$8, var$8.$length, $par3Class);
+ $par3Class = jl_String__init_0(var$8.$buffer, 0, var$8.$length);
+ }
+ jl_AbstractStringBuilder_insert(var$6, $par0, $par3Class);
+ $par3Class = jl_String__init_0(var$6.$buffer, 0, var$6.$length);
+ var$5.$suppressionEnabled = 1;
+ var$5.$writableStackTrace = 1;
+ var$5.$message = $par3Class;
+ $rt_throw(var$5);
+}
+function nms_Packet_getNewPacket($par1) {
+ var $var2, $var3, var$4, var$5, $$je;
+ nms_Packet_$callClinit();
+ a: {
+ try {
+ $var2 = nms_IntHashMap_lookup(nms_Packet_packetIdToClassMap, $par1);
+ $var2 = $var2 === null ? null : jl_Class_newInstance($var2);
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof jl_Exception) {
+ $var3 = $$je;
+ break a;
+ } else {
+ throw $$e;
+ }
+ }
+ return $var2;
+ }
+ if (jl_System_errCache === null) {
+ var$4 = new ji_PrintStream;
+ var$4.$out = new jl_ConsoleOutputStreamStderr;
+ $var2 = new jl_StringBuilder;
+ $var2.$buffer = $rt_createCharArray(16);
+ var$4.$sb = $var2;
+ var$4.$buffer0 = $rt_createCharArray(32);
+ var$4.$autoFlush = 0;
+ $var2 = new jnci_UTF8Charset;
+ jnc_Charset__init_($var2, $rt_s(2), $rt_createArray(jl_String, 0));
+ var$4.$charset = $var2;
+ jl_System_errCache = var$4;
+ }
+ jl_Throwable_printStackTrace0($var3, jl_System_errCache);
+ if (jl_System_errCache === null) {
+ $var3 = new ji_PrintStream;
+ $var3.$out = new jl_ConsoleOutputStreamStderr;
+ $var2 = new jl_StringBuilder;
+ $var2.$buffer = $rt_createCharArray(16);
+ $var3.$sb = $var2;
+ $var3.$buffer0 = $rt_createCharArray(32);
+ $var3.$autoFlush = 0;
+ $var2 = new jnci_UTF8Charset;
+ jnc_Charset__init_($var2, $rt_s(2), $rt_createArray(jl_String, 0));
+ $var3.$charset = $var2;
+ jl_System_errCache = $var3;
+ }
+ var$4 = jl_System_errCache;
+ $var2 = new jl_StringBuilder;
+ $var2.$buffer = $rt_createCharArray(16);
+ jl_AbstractStringBuilder_insert($var2, $var2.$length, $rt_s(372));
+ jl_AbstractStringBuilder_insert0($var2, $var2.$length, $par1, 10);
+ $var3 = jl_String__init_0($var2.$buffer, 0, $var2.$length);
+ $var2 = var$4.$sb;
+ jl_AbstractStringBuilder_insert($var2, $var2.$length, $var3);
+ var$5 = $var2.$length;
+ jl_AbstractStringBuilder_insertSpace($var2, var$5, var$5 + 1 | 0);
+ $var2.$buffer.data[var$5] = 10;
+ ji_PrintStream_printSB(var$4);
+ return null;
+}
+function nms_Packet_getPacketId($this) {
+ var var$1, var$2, var$3;
+ var$1 = nms_Packet_packetClassToIdMap;
+ var$2 = jl_Class_getClass($this.constructor);
+ if (var$2 !== null) {
+ var$3 = jl_Object_identity(var$2);
+ var$1 = ju_HashMap_findNonNullKeyEntry(var$1, var$2, var$3 & (var$1.$elementData.data.length - 1 | 0), var$3);
+ } else {
+ var$1 = var$1.$elementData.data[0];
+ while (var$1 !== null && var$1.$key !== null) {
+ var$1 = var$1.$next1;
+ }
+ }
+ return (var$1 === null ? null : var$1.$value0).$value;
+}
+function nms_Packet_readPacket($par1DataInputStream, $par2) {
+ var $var9, var$4, var$5, var$6, var$7;
+ nms_Packet_$callClinit();
+ $var9 = $par1DataInputStream.$in.$read1();
+ if ($var9 == (-1))
+ return null;
+ a: {
+ b: {
+ if ($par2) {
+ var$4 = nms_Packet_serverPacketIdList;
+ var$5 = jl_Integer_valueOf($var9);
+ var$4 = var$4.$backingMap;
+ if (var$5 !== null) {
+ var$6 = jl_Integer_hashCode(var$5);
+ var$4 = ju_HashMap_findNonNullKeyEntry(var$4, var$5, var$6 & (var$4.$elementData.data.length - 1 | 0), var$6);
+ } else {
+ var$4 = var$4.$elementData.data[0];
+ while (var$4 !== null && var$4.$key !== null) {
+ var$4 = var$4.$next1;
+ }
+ }
+ if (!(var$4 === null ? 0 : 1))
+ break b;
+ }
+ if ($par2)
+ break a;
+ var$4 = nms_Packet_clientPacketIdList;
+ var$5 = jl_Integer_valueOf($var9);
+ var$4 = var$4.$backingMap;
+ if (var$5 !== null) {
+ var$7 = jl_Integer_hashCode(var$5);
+ var$4 = ju_HashMap_findNonNullKeyEntry(var$4, var$5, var$7 & (var$4.$elementData.data.length - 1 | 0), var$7);
+ } else {
+ var$4 = var$4.$elementData.data[0];
+ while (var$4 !== null && var$4.$key !== null) {
+ var$4 = var$4.$next1;
+ }
+ }
+ if (var$4 === null ? 0 : 1)
+ break a;
+ }
+ $par1DataInputStream = new ji_IOException;
+ var$4 = new jl_StringBuilder;
+ var$4.$buffer = $rt_createCharArray(16);
+ jl_AbstractStringBuilder_insert(var$4, var$4.$length, $rt_s(373));
+ jl_AbstractStringBuilder_insert0(var$4, var$4.$length, $var9, 10);
+ var$5 = jl_String__init_0(var$4.$buffer, 0, var$4.$length);
+ $par1DataInputStream.$suppressionEnabled = 1;
+ $par1DataInputStream.$writableStackTrace = 1;
+ $par1DataInputStream.$message = var$5;
+ $rt_throw($par1DataInputStream);
+ }
+ var$4 = nms_Packet_getNewPacket($var9);
+ if (var$4 !== null) {
+ var$4.$readPacketData($par1DataInputStream);
+ nms_Packet_receivedID = Long_add(nms_Packet_receivedID, Long_fromInt(1));
+ nms_Packet_receivedSize = Long_add(nms_Packet_receivedSize, Long_fromInt(var$4.$getPacketSize()));
+ nms_PacketCount_countPacket($var9, Long_fromInt(var$4.$getPacketSize()));
+ nms_Packet_receivedID = Long_add(nms_Packet_receivedID, Long_fromInt(1));
+ nms_Packet_receivedSize = Long_add(nms_Packet_receivedSize, Long_fromInt(var$4.$getPacketSize()));
+ return var$4;
+ }
+ $par1DataInputStream = new ji_IOException;
+ var$4 = new jl_StringBuilder;
+ var$4.$buffer = $rt_createCharArray(16);
+ jl_AbstractStringBuilder_insert(var$4, var$4.$length, $rt_s(373));
+ jl_AbstractStringBuilder_insert0(var$4, var$4.$length, $var9, 10);
+ var$5 = jl_String__init_0(var$4.$buffer, 0, var$4.$length);
+ $par1DataInputStream.$suppressionEnabled = 1;
+ $par1DataInputStream.$writableStackTrace = 1;
+ $par1DataInputStream.$message = var$5;
+ $rt_throw($par1DataInputStream);
+}
+function nms_Packet_writePacket($par0Packet, $par1DataOutputStream) {
+ var var$3, var$4, var$5, var$6;
+ nms_Packet_$callClinit();
+ var$3 = nms_Packet_packetClassToIdMap;
+ var$4 = jl_Class_getClass($par0Packet.constructor);
+ if (var$4 !== null) {
+ var$5 = jl_Object_identity(var$4);
+ var$3 = ju_HashMap_findNonNullKeyEntry(var$3, var$4, var$5 & (var$3.$elementData.data.length - 1 | 0), var$5);
+ } else {
+ var$3 = var$3.$elementData.data[0];
+ while (var$3 !== null && var$3.$key !== null) {
+ var$3 = var$3.$next1;
+ }
+ }
+ var$6 = (var$3 === null ? null : var$3.$value0).$value;
+ $par1DataOutputStream.$out.$write0(var$6);
+ $par1DataOutputStream.$written = $par1DataOutputStream.$written + 1 | 0;
+ $par0Packet.$writePacketData($par1DataOutputStream);
+ nms_Packet_sentID = Long_add(nms_Packet_sentID, Long_fromInt(1));
+ nms_Packet_sentSize = Long_add(nms_Packet_sentSize, Long_fromInt($par0Packet.$getPacketSize()));
+}
+function nms_Packet_writeString($par0Str, $par1DataOutputStream) {
+ nms_Packet_$callClinit();
+ if ($par0Str.$characters.data.length <= 32767) {
+ ji_DataOutputStream_writeShort($par1DataOutputStream, $par0Str.$characters.data.length);
+ ji_DataOutputStream_writeChars($par1DataOutputStream, $par0Str);
+ return;
+ }
+ $par1DataOutputStream = new ji_IOException;
+ $par1DataOutputStream.$suppressionEnabled = 1;
+ $par1DataOutputStream.$writableStackTrace = 1;
+ $par1DataOutputStream.$message = $rt_s(374);
+ $rt_throw($par1DataOutputStream);
+}
+function nms_Packet_readString($par0DataInputStream, $par1) {
+ var $var2, $var3, $var4, var$6, var$7;
+ nms_Packet_$callClinit();
+ $var2 = ji_DataInputStream_readShort($par0DataInputStream);
+ if ($var2 <= $par1) {
+ if ($var2 < 0) {
+ $var3 = new ji_IOException;
+ $var3.$suppressionEnabled = 1;
+ $var3.$writableStackTrace = 1;
+ $var3.$message = $rt_s(375);
+ $rt_throw($var3);
+ }
+ $var3 = new jl_StringBuilder;
+ $var3.$buffer = $rt_createCharArray(16);
+ $var4 = 0;
+ while ($var4 < $var2) {
+ $par1 = ji_DataInputStream_readChar($par0DataInputStream);
+ var$6 = $var3.$length;
+ jl_AbstractStringBuilder_insertSpace($var3, var$6, var$6 + 1 | 0);
+ $var3.$buffer.data[var$6] = $par1;
+ $var4 = $var4 + 1 | 0;
+ }
+ return jl_String__init_0($var3.$buffer, 0, $var3.$length);
+ }
+ $par0DataInputStream = new ji_IOException;
+ $var3 = new jl_StringBuilder;
+ $var3.$buffer = $rt_createCharArray(16);
+ jl_AbstractStringBuilder_insert($var3, $var3.$length, $rt_s(376));
+ jl_AbstractStringBuilder_insert0($var3, $var3.$length, $var2, 10);
+ jl_AbstractStringBuilder_insert($var3, $var3.$length, $rt_s(377));
+ jl_AbstractStringBuilder_insert0($var3, $var3.$length, $par1, 10);
+ jl_AbstractStringBuilder_insert($var3, $var3.$length, $rt_s(64));
+ var$7 = jl_String__init_0($var3.$buffer, 0, $var3.$length);
+ $par0DataInputStream.$suppressionEnabled = 1;
+ $par0DataInputStream.$writableStackTrace = 1;
+ $par0DataInputStream.$message = var$7;
+ $rt_throw($par0DataInputStream);
+}
+function nms_Packet_readItemStack($par0DataInputStream) {
+ var $var1, $var2, $var4, $var3, var$6, var$7, var$8, var$9, $$je;
+ nms_Packet_$callClinit();
+ $var1 = null;
+ $var2 = ji_DataInputStream_readShort($par0DataInputStream);
+ if ($var2 >= 0) {
+ $var4 = $par0DataInputStream.$in.$read1();
+ if ($var4 < 0) {
+ $par0DataInputStream = new ji_EOFException;
+ $par0DataInputStream.$suppressionEnabled = 1;
+ $par0DataInputStream.$writableStackTrace = 1;
+ $rt_throw($par0DataInputStream);
+ }
+ $var3 = $var4 << 24 >> 24;
+ $var4 = ji_DataInputStream_readShort($par0DataInputStream);
+ $var1 = new nms_ItemStack;
+ $var1.$stackSize = 0;
+ $var1.$itemFrame = null;
+ $var1.$itemID0 = $var2;
+ $var1.$stackSize = $var3;
+ $var1.$itemDamage = $var4;
+ if ($var1.$itemDamage < 0)
+ $var1.$itemDamage = 0;
+ $var2 = ji_DataInputStream_readShort($par0DataInputStream);
+ if ($var2 < 0)
+ $par0DataInputStream = null;
+ else {
+ var$6 = $rt_createByteArray($var2);
+ $var4 = var$6.data.length;
+ ji_DataInputStream_readFully($par0DataInputStream, var$6, 0, $var4);
+ var$7 = new ji_DataInputStream;
+ $par0DataInputStream = new ji_BufferedInputStream;
+ var$8 = new cjj_GZIPInputStream;
+ var$9 = new ji_ByteArrayInputStream;
+ var$9.$buf = var$6;
+ var$9.$pos = 0;
+ var$9.$mark0 = 0;
+ var$9.$count0 = 0 + $var4 | 0;
+ cjj_InflaterInputStream__init_0(var$8, var$9, cjj_Inflater__init_0(31, 0), 512, 1);
+ var$8.$myinflater = 1;
+ $par0DataInputStream.$in = var$8;
+ $par0DataInputStream.$markpos = (-1);
+ $par0DataInputStream.$buf0 = $rt_createByteArray(8192);
+ var$7.$in = $par0DataInputStream;
+ var$7.$buff = $rt_createByteArray(8);
+ a: {
+ try {
+ $par0DataInputStream = nms_CompressedStreamTools_read(var$7);
+ break a;
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ $par0DataInputStream = $$je;
+
+ }
+ var$7.$in.$close();
+ $rt_throw($par0DataInputStream);
+ }
+ var$7.$in.$close();
+ }
+ $var1.$stackTagCompound = $par0DataInputStream;
+ }
+ return $var1;
+}
+function nms_Packet_writeItemStack($par0ItemStack, $par1DataOutputStream) {
+ var var$3, $var2, var$5, var$6, var$7, $$je;
+ nms_Packet_$callClinit();
+ if ($par0ItemStack === null)
+ ji_DataOutputStream_writeShort($par1DataOutputStream, (-1));
+ else {
+ ji_DataOutputStream_writeShort($par1DataOutputStream, $par0ItemStack.$itemID0);
+ var$3 = $par0ItemStack.$stackSize;
+ $par1DataOutputStream.$out.$write0(var$3);
+ $par1DataOutputStream.$written = $par1DataOutputStream.$written + 1 | 0;
+ ji_DataOutputStream_writeShort($par1DataOutputStream, $par0ItemStack.$itemDamage);
+ $var2 = null;
+ nms_Item_$callClinit();
+ var$5 = nms_Item_itemsList.data[$par0ItemStack.$itemID0];
+ var$3 = var$5.$maxDamage > 0 && !var$5.$hasSubtypes ? 1 : 0;
+ if (!(!var$3 && !nms_Item_itemsList.data[$par0ItemStack.$itemID0].$getShareTag()))
+ $var2 = $par0ItemStack.$stackTagCompound;
+ if ($var2 === null)
+ ji_DataOutputStream_writeShort($par1DataOutputStream, (-1));
+ else {
+ $par0ItemStack = new ji_ByteArrayOutputStream;
+ $par0ItemStack.$buf1 = $rt_createByteArray(32);
+ var$6 = new ji_DataOutputStream;
+ var$5 = new cjj_GZIPOutputStream;
+ cjj_DeflaterOutputStream__init_(var$5, $par0ItemStack, cjj_Deflater__init_0((-1), 31, 0), 512, 1);
+ var$5.$mydeflater = 1;
+ var$6.$out = var$5;
+ var$6.$buff0 = $rt_createByteArray(8);
+ a: {
+ try {
+ nms_CompressedStreamTools_write($var2, var$6);
+ break a;
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ $par0ItemStack = $$je;
+
+ }
+ b: {
+ try {
+ var$6.$out.$flush();
+ break b;
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof ji_IOException) {
+ } else {
+ throw $$e;
+ }
+ }
+ }
+ var$6.$out.$close();
+ $rt_throw($par0ItemStack);
+ }
+ c: {
+ try {
+ var$6.$out.$flush();
+ break c;
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof ji_IOException) {
+ } else {
+ throw $$e;
+ }
+ }
+ }
+ var$6.$out.$close();
+ var$7 = ju_Arrays_copyOf0($par0ItemStack.$buf1, $par0ItemStack.$count1);
+ var$3 = var$7.data.length;
+ ji_DataOutputStream_writeShort($par1DataOutputStream, var$3 << 16 >> 16);
+ $par1DataOutputStream.$out.$write2(var$7, 0, var$3);
+ $par1DataOutputStream.$written = $par1DataOutputStream.$written + var$3 | 0;
+ }
+ }
+}
+function nms_Packet__clinit_() {
+ nms_Packet_packetIdToClassMap = nms_IntHashMap__init_0();
+ nms_Packet_packetClassToIdMap = ju_HashMap__init_0();
+ nms_Packet_clientPacketIdList = ju_HashSet__init_0();
+ nms_Packet_serverPacketIdList = ju_HashSet__init_0();
+ nms_Packet_addIdClassMapping(0, 1, 1, $rt_cls(nms_Packet0KeepAlive));
+ nms_Packet_addIdClassMapping(1, 1, 1, $rt_cls(nms_Packet1Login));
+ nms_Packet_addIdClassMapping(2, 0, 1, $rt_cls(nms_Packet2ClientProtocol));
+ nms_Packet_addIdClassMapping(3, 1, 1, $rt_cls(nms_Packet3Chat));
+ nms_Packet_addIdClassMapping(4, 1, 0, $rt_cls(nms_Packet4UpdateTime));
+ nms_Packet_addIdClassMapping(5, 1, 0, $rt_cls(nms_Packet5PlayerInventory));
+ nms_Packet_addIdClassMapping(6, 1, 0, $rt_cls(nms_Packet6SpawnPosition));
+ nms_Packet_addIdClassMapping(7, 0, 1, $rt_cls(nms_Packet7UseEntity));
+ nms_Packet_addIdClassMapping(8, 1, 0, $rt_cls(nms_Packet8UpdateHealth));
+ nms_Packet_addIdClassMapping(9, 1, 1, $rt_cls(nms_Packet9Respawn));
+ nms_Packet_addIdClassMapping(10, 1, 1, $rt_cls(nms_Packet10Flying));
+ nms_Packet_addIdClassMapping(11, 1, 1, $rt_cls(nms_Packet11PlayerPosition));
+ nms_Packet_addIdClassMapping(12, 1, 1, $rt_cls(nms_Packet12PlayerLook));
+ nms_Packet_addIdClassMapping(13, 1, 1, $rt_cls(nms_Packet13PlayerLookMove));
+ nms_Packet_addIdClassMapping(14, 0, 1, $rt_cls(nms_Packet14BlockDig));
+ nms_Packet_addIdClassMapping(15, 0, 1, $rt_cls(nms_Packet15Place));
+ nms_Packet_addIdClassMapping(16, 1, 1, $rt_cls(nms_Packet16BlockItemSwitch));
+ nms_Packet_addIdClassMapping(17, 1, 0, $rt_cls(nms_Packet17Sleep));
+ nms_Packet_addIdClassMapping(18, 1, 1, $rt_cls(nms_Packet18Animation));
+ nms_Packet_addIdClassMapping(19, 0, 1, $rt_cls(nms_Packet19EntityAction));
+ nms_Packet_addIdClassMapping(20, 1, 0, $rt_cls(nms_Packet20NamedEntitySpawn));
+ nms_Packet_addIdClassMapping(22, 1, 0, $rt_cls(nms_Packet22Collect));
+ nms_Packet_addIdClassMapping(23, 1, 0, $rt_cls(nms_Packet23VehicleSpawn));
+ nms_Packet_addIdClassMapping(24, 1, 0, $rt_cls(nms_Packet24MobSpawn));
+ nms_Packet_addIdClassMapping(25, 1, 0, $rt_cls(nms_Packet25EntityPainting));
+ nms_Packet_addIdClassMapping(26, 1, 0, $rt_cls(nms_Packet26EntityExpOrb));
+ nms_Packet_addIdClassMapping(28, 1, 0, $rt_cls(nms_Packet28EntityVelocity));
+ nms_Packet_addIdClassMapping(29, 1, 0, $rt_cls(nms_Packet29DestroyEntity));
+ nms_Packet_addIdClassMapping(30, 1, 0, $rt_cls(nms_Packet30Entity));
+ nms_Packet_addIdClassMapping(31, 1, 0, $rt_cls(nms_Packet31RelEntityMove));
+ nms_Packet_addIdClassMapping(32, 1, 0, $rt_cls(nms_Packet32EntityLook));
+ nms_Packet_addIdClassMapping(33, 1, 0, $rt_cls(nms_Packet33RelEntityMoveLook));
+ nms_Packet_addIdClassMapping(34, 1, 0, $rt_cls(nms_Packet34EntityTeleport));
+ nms_Packet_addIdClassMapping(35, 1, 0, $rt_cls(nms_Packet35EntityHeadRotation));
+ nms_Packet_addIdClassMapping(38, 1, 0, $rt_cls(nms_Packet38EntityStatus));
+ nms_Packet_addIdClassMapping(39, 1, 0, $rt_cls(nms_Packet39AttachEntity));
+ nms_Packet_addIdClassMapping(40, 1, 0, $rt_cls(nms_Packet40EntityMetadata));
+ nms_Packet_addIdClassMapping(41, 1, 0, $rt_cls(nms_Packet41EntityEffect));
+ nms_Packet_addIdClassMapping(42, 1, 0, $rt_cls(nms_Packet42RemoveEntityEffect));
+ nms_Packet_addIdClassMapping(43, 1, 0, $rt_cls(nms_Packet43Experience));
+ nms_Packet_addIdClassMapping(51, 1, 0, $rt_cls(nms_Packet51MapChunk));
+ nms_Packet_addIdClassMapping(52, 1, 0, $rt_cls(nms_Packet52MultiBlockChange));
+ nms_Packet_addIdClassMapping(53, 1, 0, $rt_cls(nms_Packet53BlockChange));
+ nms_Packet_addIdClassMapping(54, 1, 0, $rt_cls(nms_Packet54PlayNoteBlock));
+ nms_Packet_addIdClassMapping(55, 1, 0, $rt_cls(nms_Packet55BlockDestroy));
+ nms_Packet_addIdClassMapping(56, 1, 0, $rt_cls(nms_Packet56MapChunks));
+ nms_Packet_addIdClassMapping(60, 1, 0, $rt_cls(nms_Packet60Explosion));
+ nms_Packet_addIdClassMapping(61, 1, 0, $rt_cls(nms_Packet61DoorChange));
+ nms_Packet_addIdClassMapping(62, 1, 0, $rt_cls(nms_Packet62LevelSound));
+ nms_Packet_addIdClassMapping(63, 1, 0, $rt_cls(nms_Packet63WorldParticles));
+ nms_Packet_addIdClassMapping(70, 1, 0, $rt_cls(nms_Packet70GameEvent));
+ nms_Packet_addIdClassMapping(71, 1, 0, $rt_cls(nms_Packet71Weather));
+ nms_Packet_addIdClassMapping(100, 1, 0, $rt_cls(nms_Packet100OpenWindow));
+ nms_Packet_addIdClassMapping(101, 1, 1, $rt_cls(nms_Packet101CloseWindow));
+ nms_Packet_addIdClassMapping(102, 0, 1, $rt_cls(nms_Packet102WindowClick));
+ nms_Packet_addIdClassMapping(103, 1, 0, $rt_cls(nms_Packet103SetSlot));
+ nms_Packet_addIdClassMapping(104, 1, 0, $rt_cls(nms_Packet104WindowItems));
+ nms_Packet_addIdClassMapping(105, 1, 0, $rt_cls(nms_Packet105UpdateProgressbar));
+ nms_Packet_addIdClassMapping(106, 1, 1, $rt_cls(nms_Packet106Transaction));
+ nms_Packet_addIdClassMapping(107, 1, 1, $rt_cls(nms_Packet107CreativeSetSlot));
+ nms_Packet_addIdClassMapping(108, 0, 1, $rt_cls(nms_Packet108EnchantItem));
+ nms_Packet_addIdClassMapping(130, 1, 1, $rt_cls(nms_Packet130UpdateSign));
+ nms_Packet_addIdClassMapping(131, 1, 0, $rt_cls(nms_Packet131MapData));
+ nms_Packet_addIdClassMapping(132, 1, 0, $rt_cls(nms_Packet132TileEntityData));
+ nms_Packet_addIdClassMapping(200, 1, 0, $rt_cls(nms_Packet200Statistic));
+ nms_Packet_addIdClassMapping(201, 1, 0, $rt_cls(nms_Packet201PlayerInfo));
+ nms_Packet_addIdClassMapping(202, 1, 1, $rt_cls(nms_Packet202PlayerAbilities));
+ nms_Packet_addIdClassMapping(203, 1, 1, $rt_cls(nms_Packet203AutoComplete));
+ nms_Packet_addIdClassMapping(204, 0, 1, $rt_cls(nms_Packet204ClientInfo));
+ nms_Packet_addIdClassMapping(205, 0, 1, $rt_cls(nms_Packet205ClientCommand));
+ nms_Packet_addIdClassMapping(206, 1, 0, $rt_cls(nms_Packet206SetObjective));
+ nms_Packet_addIdClassMapping(207, 1, 0, $rt_cls(nms_Packet207SetScore));
+ nms_Packet_addIdClassMapping(208, 1, 0, $rt_cls(nms_Packet208SetDisplayObjective));
+ nms_Packet_addIdClassMapping(209, 1, 0, $rt_cls(nms_Packet209SetPlayerTeam));
+ nms_Packet_addIdClassMapping(250, 1, 1, $rt_cls(nms_Packet250CustomPayload));
+ nms_Packet_addIdClassMapping(252, 1, 1, $rt_cls(nms_Packet252SharedKey));
+ nms_Packet_addIdClassMapping(253, 1, 0, $rt_cls(nms_Packet253ServerAuthData));
+ nms_Packet_addIdClassMapping(254, 0, 1, $rt_cls(nms_Packet254ServerPing));
+ nms_Packet_addIdClassMapping(255, 1, 1, $rt_cls(nms_Packet255KickDisconnect));
+}
+function nms_Packet3Chat() {
+ var a = this; nms_Packet.call(a);
+ a.$message0 = null;
+ a.$isServer = 0;
+}
+var nms_Packet3Chat_maxChatLength = 0;
+function nms_Packet3Chat__init_0() {
+ var var_0 = new nms_Packet3Chat();
+ nms_Packet3Chat__init_(var_0);
+ return var_0;
+}
+function nms_Packet3Chat__init_($this) {
+ nms_Packet_$callClinit();
+ $this.$creationTimeMillis = jl_System_currentTimeMillis();
+ $this.$isChunkDataPacket = 0;
+ $this.$isServer = 1;
+}
+function nms_Packet3Chat_readPacketData($this, $par1DataInputStream) {
+ $this.$message0 = nms_Packet_readString($par1DataInputStream, nms_Packet3Chat_maxChatLength);
+}
+function nms_Packet3Chat_writePacketData($this, $par1DataOutputStream) {
+ var var$2;
+ var$2 = $this.$message0;
+ nms_Packet_$callClinit();
+ if (var$2.$characters.data.length <= 32767) {
+ ji_DataOutputStream_writeShort($par1DataOutputStream, var$2.$characters.data.length);
+ ji_DataOutputStream_writeChars($par1DataOutputStream, var$2);
+ return;
+ }
+ var$2 = new ji_IOException;
+ var$2.$suppressionEnabled = 1;
+ var$2.$writableStackTrace = 1;
+ var$2.$message = $rt_s(374);
+ $rt_throw(var$2);
+}
+function nms_Packet3Chat_processPacket($this, $par1NetHandler) {
+ nms_NetClientHandler_handleChat($par1NetHandler, $this);
+}
+function nms_Packet3Chat_getPacketSize($this) {
+ return 2 + ($this.$message0.$characters.data.length * 2 | 0) | 0;
+}
+function nms_Packet3Chat__clinit_() {
+ nms_Packet3Chat_maxChatLength = 119;
+}
+function ju_RandomAccess() {
+}
+function ju_ArrayList() {
+ var a = this; ju_AbstractList.call(a);
+ a.$array1 = null;
+ a.$size0 = 0;
+}
+function ju_ArrayList__init_0() {
+ var var_0 = new ju_ArrayList();
+ ju_ArrayList__init_(var_0);
+ return var_0;
+}
+function ju_ArrayList__init_1(var_0) {
+ var var_1 = new ju_ArrayList();
+ ju_ArrayList__init_2(var_1, var_0);
+ return var_1;
+}
+function ju_ArrayList__init_3(var_0) {
+ var var_1 = new ju_ArrayList();
+ ju_ArrayList__init_4(var_1, var_0);
+ return var_1;
+}
+function ju_ArrayList__init_($this) {
+ $this.$array1 = $rt_createArray(jl_Object, 10);
+}
+function ju_ArrayList__init_2($this, $initialCapacity) {
+ $this.$array1 = $rt_createArray(jl_Object, $initialCapacity);
+}
+function ju_ArrayList__init_4($this, $c) {
+ var $iter, $i;
+ $this.$array1 = $rt_createArray(jl_Object, $c.$size2());
+ $iter = $c.$iterator();
+ $i = 0;
+ while ($i < $this.$array1.data.length) {
+ $this.$array1.data[$i] = $iter.$next();
+ $i = $i + 1 | 0;
+ }
+ $this.$size0 = $this.$array1.data.length;
+}
+function ju_ArrayList_ensureCapacity($this, $minCapacity) {
+ var $newLength, var$3;
+ if ($this.$array1.data.length < $minCapacity) {
+ if ($this.$array1.data.length >= 1073741823)
+ $newLength = 2147483647;
+ else {
+ var$3 = $this.$array1.data.length * 2 | 0;
+ $newLength = 5;
+ if (var$3 > $newLength)
+ $newLength = var$3;
+ if ($minCapacity > $newLength)
+ $newLength = $minCapacity;
+ }
+ $this.$array1 = ju_Arrays_copyOf1($this.$array1, $newLength);
+ }
+}
+function ju_ArrayList_get($this, $index) {
+ var var$2;
+ if ($index >= 0 && $index < $this.$size0)
+ return $this.$array1.data[$index];
+ var$2 = new jl_IndexOutOfBoundsException;
+ var$2.$suppressionEnabled = 1;
+ var$2.$writableStackTrace = 1;
+ $rt_throw(var$2);
+}
+function ju_ArrayList_size($this) {
+ return $this.$size0;
+}
+function ju_ArrayList_set($this, $index, $element) {
+ var $old;
+ if ($index >= 0 && $index < $this.$size0) {
+ $old = $this.$array1.data[$index];
+ $this.$array1.data[$index] = $element;
+ return $old;
+ }
+ $element = new jl_IndexOutOfBoundsException;
+ $element.$suppressionEnabled = 1;
+ $element.$writableStackTrace = 1;
+ $rt_throw($element);
+}
+function ju_ArrayList_add($this, $element) {
+ var var$2, var$3;
+ ju_ArrayList_ensureCapacity($this, $this.$size0 + 1 | 0);
+ var$2 = $this.$array1.data;
+ var$3 = $this.$size0;
+ $this.$size0 = var$3 + 1 | 0;
+ var$2[var$3] = $element;
+ $this.$modCount0 = $this.$modCount0 + 1 | 0;
+ return 1;
+}
+function ju_ArrayList_add0($this, $index, $element) {
+ var $i;
+ if ($index >= 0 && $index <= $this.$size0) {
+ ju_ArrayList_ensureCapacity($this, $this.$size0 + 1 | 0);
+ $i = $this.$size0;
+ while ($i > $index) {
+ $this.$array1.data[$i] = $this.$array1.data[$i - 1 | 0];
+ $i = $i + (-1) | 0;
+ }
+ $this.$array1.data[$index] = $element;
+ $this.$size0 = $this.$size0 + 1 | 0;
+ $this.$modCount0 = $this.$modCount0 + 1 | 0;
+ return;
+ }
+ $element = new jl_IndexOutOfBoundsException;
+ $element.$suppressionEnabled = 1;
+ $element.$writableStackTrace = 1;
+ $rt_throw($element);
+}
+function ju_ArrayList_remove($this, $i) {
+ var $old, var$3, var$4, $i_0;
+ if ($i >= 0 && $i < $this.$size0) {
+ $old = $this.$array1.data[$i];
+ $this.$size0 = $this.$size0 - 1 | 0;
+ while ($i < $this.$size0) {
+ var$3 = $this.$array1.data;
+ var$4 = $this.$array1.data;
+ $i_0 = $i + 1 | 0;
+ var$3[$i] = var$4[$i_0];
+ $i = $i_0;
+ }
+ $this.$array1.data[$this.$size0] = null;
+ $this.$modCount0 = $this.$modCount0 + 1 | 0;
+ return $old;
+ }
+ $old = new jl_IndexOutOfBoundsException;
+ $old.$suppressionEnabled = 1;
+ $old.$writableStackTrace = 1;
+ $rt_throw($old);
+}
+function ju_ArrayList_remove0($this, $o) {
+ var $index;
+ $index = ju_AbstractList_indexOf($this, $o);
+ if ($index < 0)
+ return 0;
+ ju_ArrayList_remove($this, $index);
+ return 1;
+}
+function ju_ArrayList_clear($this) {
+ ju_Arrays_fill($this.$array1, 0, $this.$size0, null);
+ $this.$size0 = 0;
+}
+function ju_ArrayList_checkIndex($this, $index) {
+ var var$2;
+ if ($index >= 0 && $index < $this.$size0)
+ return;
+ var$2 = new jl_IndexOutOfBoundsException;
+ var$2.$suppressionEnabled = 1;
+ var$2.$writableStackTrace = 1;
+ $rt_throw(var$2);
+}
+function nms_NBTTagList() {
+ var a = this; nms_NBTBase.call(a);
+ a.$tagList = null;
+ a.$tagType = 0;
+}
+function nms_NBTTagList__init_0() {
+ var var_0 = new nms_NBTTagList();
+ nms_NBTTagList__init_(var_0);
+ return var_0;
+}
+function nms_NBTTagList__init_1(var_0) {
+ var var_1 = new nms_NBTTagList();
+ nms_NBTTagList__init_2(var_1, var_0);
+ return var_1;
+}
+function nms_NBTTagList__init_($this) {
+ var var$1;
+ $this.$name0 = $rt_s(44);
+ var$1 = new ju_ArrayList;
+ var$1.$array1 = $rt_createArray(jl_Object, 10);
+ $this.$tagList = var$1;
+}
+function nms_NBTTagList__init_2($this, $par1Str) {
+ if ($par1Str !== null)
+ $this.$name0 = $par1Str;
+ else
+ $this.$name0 = $rt_s(44);
+ $par1Str = new ju_ArrayList;
+ $par1Str.$array1 = $rt_createArray(jl_Object, 10);
+ $this.$tagList = $par1Str;
+}
+function nms_NBTTagList_write($this, $par1DataOutput) {
+ var var$2, $var2;
+ if ($this.$tagList.$size0 ? 0 : 1)
+ $this.$tagType = 1;
+ else {
+ var$2 = $this.$tagList;
+ if (0 >= var$2.$size0) {
+ $par1DataOutput = new jl_IndexOutOfBoundsException;
+ $par1DataOutput.$suppressionEnabled = 1;
+ $par1DataOutput.$writableStackTrace = 1;
+ $rt_throw($par1DataOutput);
+ }
+ $this.$tagType = var$2.$array1.data[0].$getId();
+ }
+ $var2 = $this.$tagType;
+ $par1DataOutput.$out.$write0($var2);
+ $par1DataOutput.$written = $par1DataOutput.$written + 1 | 0;
+ ji_DataOutputStream_writeInt($par1DataOutput, $this.$tagList.$size0);
+ $var2 = 0;
+ a: {
+ while ($var2 < $this.$tagList.$size0) {
+ var$2 = $this.$tagList;
+ if ($var2 < 0)
+ break a;
+ if ($var2 >= var$2.$size0)
+ break a;
+ var$2.$array1.data[$var2].$write1($par1DataOutput);
+ $var2 = $var2 + 1 | 0;
+ }
+ return;
+ }
+ $par1DataOutput = new jl_IndexOutOfBoundsException;
+ $par1DataOutput.$suppressionEnabled = 1;
+ $par1DataOutput.$writableStackTrace = 1;
+ $rt_throw($par1DataOutput);
+}
+function nms_NBTTagList_load($this, $par1DataInput) {
+ var $var2, var$3, $var3, $var4;
+ $var2 = $par1DataInput.$in.$read1();
+ if ($var2 < 0) {
+ $par1DataInput = new ji_EOFException;
+ $par1DataInput.$suppressionEnabled = 1;
+ $par1DataInput.$writableStackTrace = 1;
+ $rt_throw($par1DataInput);
+ }
+ $this.$tagType = $var2 << 24 >> 24;
+ $var2 = ji_DataInputStream_readInt($par1DataInput);
+ var$3 = new ju_ArrayList;
+ var$3.$array1 = $rt_createArray(jl_Object, 10);
+ $this.$tagList = var$3;
+ $var3 = 0;
+ var$3 = null;
+ while ($var3 < $var2) {
+ $var4 = nms_NBTBase_newTag($this.$tagType, var$3);
+ $var4.$load1($par1DataInput);
+ ju_ArrayList_add($this.$tagList, $var4);
+ $var3 = $var3 + 1 | 0;
+ }
+}
+function nms_NBTTagList_getId($this) {
+ return 9;
+}
+function nms_NBTTagList_toString($this) {
+ var var$1, var$2, var$3;
+ var$1 = new jl_StringBuilder;
+ var$1.$buffer = $rt_createCharArray(16);
+ jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(44));
+ var$2 = $this.$tagList.$size0;
+ jl_AbstractStringBuilder_insert0(var$1, var$1.$length, var$2, 10);
+ jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(378));
+ var$3 = nms_NBTBase_getTagName($this.$tagType);
+ jl_AbstractStringBuilder_insert(var$1, var$1.$length, var$3);
+ return jl_String__init_0(var$1.$buffer, 0, var$1.$length);
+}
+function nms_NBTTagList_appendTag($this, $par1NBTBase) {
+ $this.$tagType = $par1NBTBase.$getId();
+ ju_ArrayList_add($this.$tagList, $par1NBTBase);
+}
+function nms_NBTTagList_removeTag($this, $par1) {
+ return ju_ArrayList_remove($this.$tagList, $par1);
+}
+function nms_NBTTagList_tagAt($this, $par1) {
+ var var$2;
+ var$2 = $this.$tagList;
+ if ($par1 >= 0 && $par1 < var$2.$size0)
+ return var$2.$array1.data[$par1];
+ var$2 = new jl_IndexOutOfBoundsException;
+ var$2.$suppressionEnabled = 1;
+ var$2.$writableStackTrace = 1;
+ $rt_throw(var$2);
+}
+function nms_NBTTagList_tagCount($this) {
+ return $this.$tagList.$size0;
+}
+function nms_NBTTagList_copy($this) {
+ var $var1, $var3, $var2, $var4;
+ $var1 = new nms_NBTTagList;
+ $var3 = $this.$name0 !== null ? $this.$name0 : $rt_s(44);
+ if ($var3 !== null)
+ $var1.$name0 = $var3;
+ else
+ $var1.$name0 = $rt_s(44);
+ $var3 = new ju_ArrayList;
+ $var3.$array1 = $rt_createArray(jl_Object, 10);
+ $var1.$tagList = $var3;
+ $var1.$tagType = $this.$tagType;
+ $var3 = $this.$tagList;
+ $var2 = new ju_AbstractList$1;
+ $var2.$this$0 = $var3;
+ $var2.$modCount = $var2.$this$0.$modCount0;
+ $var2.$size1 = $var2.$this$0.$size2();
+ $var2.$removeIndex = (-1);
+ while ($var2.$index >= $var2.$size1 ? 0 : 1) {
+ $var4 = ju_AbstractList$1_next($var2).$copy();
+ ju_ArrayList_add($var1.$tagList, $var4);
+ }
+ return $var1;
+}
+function nms_NBTTagList_equals($this, $par1Obj) {
+ var $var2;
+ if (nms_NBTBase_equals($this, $par1Obj)) {
+ $var2 = $par1Obj;
+ if ($this.$tagType == $var2.$tagType)
+ return ju_AbstractList_equals($this.$tagList, $var2.$tagList);
+ }
+ return 0;
+}
+function nms_NBTTagList_hashCode($this) {
+ return jl_String_hashCode($this.$name0) ^ 9 ^ ju_AbstractList_hashCode($this.$tagList);
+}
+function nle_EaglerProfile() {
+ jl_Object.call(this);
+}
+var nle_EaglerProfile_username = null;
+var nle_EaglerProfile_presetSkinId = 0;
+var nle_EaglerProfile_customSkinId = 0;
+var nle_EaglerProfile_myChannel = null;
+var nle_EaglerProfile_SKIN_DATA_SIZE = null;
+var nle_EaglerProfile_skinNames = null;
+var nle_EaglerProfile_skinDatas = null;
+var nle_EaglerProfile_glTex = null;
+var nle_EaglerProfile_rand = null;
+function nle_EaglerProfile_$callClinit() {
+ nle_EaglerProfile_$callClinit = $rt_eraseClinit(nle_EaglerProfile);
+ nle_EaglerProfile__clinit_();
+}
+function nle_EaglerProfile__init_0() {
+ var var_0 = new nle_EaglerProfile();
+ nle_EaglerProfile__init_(var_0);
+ return var_0;
+}
+function nle_EaglerProfile__init_($this) {
+ nle_EaglerProfile_$callClinit();
+}
+function nle_EaglerProfile_getSkinSize($len) {
+ var $i;
+ nle_EaglerProfile_$callClinit();
+ $i = 0;
+ while (true) {
+ if ($i >= nle_EaglerProfile_SKIN_DATA_SIZE.data.length)
+ return (-1);
+ if ($len == nle_EaglerProfile_SKIN_DATA_SIZE.data[$i])
+ break;
+ $i = $i + 1 | 0;
+ }
+ return $i;
+}
+function nle_EaglerProfile_getSkinPacket() {
+ var $d, $d2, var$3, var$4, var$5;
+ nle_EaglerProfile_$callClinit();
+ if (nle_EaglerProfile_presetSkinId != (-1)) {
+ $d = $rt_createByteArray(2);
+ $d2 = $d.data;
+ $d2[0] = 4;
+ $d2[1] = nle_EaglerProfile_presetSkinId << 24 >> 24;
+ return $d;
+ }
+ var$3 = nle_EaglerProfile_skinDatas;
+ var$4 = nle_EaglerProfile_customSkinId;
+ if (var$4 >= 0 && var$4 < var$3.$size0) {
+ $d = var$3.$array1.data[var$4];
+ var$5 = $d.data.length;
+ $d2 = $rt_createByteArray(1 + var$5 | 0);
+ $d2.data[0] = nle_EaglerProfile_getSkinSize(var$5) << 24 >> 24;
+ jl_System_arraycopy($d, 0, $d2, 1, var$5);
+ return $d2;
+ }
+ var$3 = new jl_IndexOutOfBoundsException;
+ var$3.$suppressionEnabled = 1;
+ var$3.$writableStackTrace = 1;
+ $rt_throw(var$3);
+}
+function nle_EaglerProfile_addSkin($name, $data) {
+ var $i, var$4, $w, $h, $im;
+ nle_EaglerProfile_$callClinit();
+ $i = ju_AbstractList_indexOf(nle_EaglerProfile_skinNames, $name);
+ var$4 = $rt_compare($i, (-1));
+ if (var$4)
+ ju_ArrayList_set(nle_EaglerProfile_skinDatas, $i, $data);
+ else {
+ ju_ArrayList_add(nle_EaglerProfile_skinNames, $name);
+ ju_ArrayList_add(nle_EaglerProfile_skinDatas, $data);
+ }
+ a: {
+ b: {
+ switch (nle_EaglerProfile_getSkinSize($data.data.length)) {
+ case 0:
+ break b;
+ case 1:
+ $w = 64;
+ $h = 64;
+ break a;
+ case 2:
+ $w = 128;
+ $h = 64;
+ break a;
+ case 3:
+ break;
+ default:
+ break b;
+ }
+ $w = 128;
+ $h = 128;
+ break a;
+ }
+ $w = 64;
+ $h = 32;
+ }
+ $im = nms_RenderEngine_setupTextureRaw(nmc_Minecraft_theMinecraft.$renderEngine, $data, $w, $h);
+ if (var$4)
+ ju_ArrayList_set(nle_EaglerProfile_glTex, $i, jl_Integer_valueOf($im));
+ else
+ ju_ArrayList_add(nle_EaglerProfile_glTex, jl_Integer_valueOf($im));
+ return $i;
+}
+function nle_EaglerProfile_loadFromStorage() {
+ var var$1, var$2, $n, $s, $s2, var$6;
+ nle_EaglerProfile_$callClinit();
+ var$1 = nle_LocalStorageManager_profileSettingsStorage.$tagMap.$elementCount ? 0 : 1;
+ a: {
+ if (!var$1) {
+ var$2 = nle_LocalStorageManager_profileSettingsStorage;
+ if (!(ju_HashMap_getEntry(var$2.$tagMap, $rt_s(379)) === null ? 0 : 1))
+ var$1 = 0;
+ else {
+ $n = ju_HashMap_getEntry(var$2.$tagMap, $rt_s(379));
+ var$1 = ($n === null ? null : $n.$value0).$data2;
+ }
+ nle_EaglerProfile_presetSkinId = var$1;
+ $n = nle_LocalStorageManager_profileSettingsStorage;
+ if (!(ju_HashMap_getEntry($n.$tagMap, $rt_s(380)) === null ? 0 : 1))
+ var$1 = 0;
+ else {
+ $n = ju_HashMap_getEntry($n.$tagMap, $rt_s(380));
+ var$1 = ($n === null ? null : $n.$value0).$data2;
+ }
+ nle_EaglerProfile_customSkinId = var$1;
+ $n = nle_LocalStorageManager_profileSettingsStorage;
+ if (!(ju_HashMap_getEntry($n.$tagMap, $rt_s(339)) === null ? 0 : 1))
+ $n = $rt_s(44);
+ else {
+ $n = ju_HashMap_getEntry($n.$tagMap, $rt_s(339));
+ $n = ($n === null ? null : $n.$value0).$data4;
+ }
+ nle_EaglerProfile_username = $n;
+ $n = new jl_StringBuilder;
+ $n.$buffer = $rt_createCharArray(16);
+ var$2 = nle_EaglerProfile_username;
+ jl_AbstractStringBuilder_insert($n, $n.$length, var$2);
+ jl_AbstractStringBuilder_insert($n, $n.$length, $rt_s(381));
+ var$1 = 100 + (Math.random() * 900.0 | 0) | 0;
+ jl_AbstractStringBuilder_insert0($n, $n.$length, var$1, 10);
+ nle_EaglerProfile_myChannel = jl_String__init_0($n.$buffer, 0, $n.$length);
+ $n = nle_LocalStorageManager_profileSettingsStorage;
+ if (!(ju_HashMap_getEntry($n.$tagMap, $rt_s(382)) === null ? 0 : 1)) {
+ $n = new nms_NBTTagCompound;
+ $n.$name0 = $rt_s(382);
+ $n.$tagMap = ju_HashMap__init_1(16, 0.75);
+ } else {
+ $n = ju_HashMap_getEntry($n.$tagMap, $rt_s(382));
+ $n = $n === null ? null : $n.$value0;
+ }
+ $s = $n.$tagMap;
+ if ($s.$cachedKeySet === null) {
+ var$2 = new ju_HashMap$1;
+ var$2.$this$01 = $s;
+ $s.$cachedKeySet = var$2;
+ }
+ var$2 = $s.$cachedKeySet.$iterator();
+ while (true) {
+ if (!var$2.$hasNext())
+ break a;
+ $s2 = var$2.$next();
+ if (!(ju_HashMap_getEntry($n.$tagMap, $s2) === null ? 0 : 1))
+ var$6 = $rt_createByteArray(0);
+ else {
+ $s = ju_HashMap_getEntry($n.$tagMap, $s2);
+ var$6 = ($s === null ? null : $s.$value0).$byteArray;
+ }
+ nle_EaglerProfile_addSkin($s2, var$6);
+ }
+ }
+ }
+}
+function nle_EaglerProfile__clinit_() {
+ var $usernameDefaultWords, var$2, var$3, var$4, var$5, var$6, var$7;
+ $usernameDefaultWords = $rt_createIntArray(5);
+ var$2 = $usernameDefaultWords.data;
+ var$2[0] = 8192;
+ var$2[1] = 16384;
+ var$2[2] = 32768;
+ var$2[3] = 65536;
+ var$2[4] = 2;
+ nle_EaglerProfile_SKIN_DATA_SIZE = $usernameDefaultWords;
+ var$3 = new ju_ArrayList;
+ var$3.$array1 = $rt_createArray(jl_Object, 10);
+ nle_EaglerProfile_skinNames = var$3;
+ var$3 = new ju_ArrayList;
+ var$3.$array1 = $rt_createArray(jl_Object, 10);
+ nle_EaglerProfile_skinDatas = var$3;
+ var$3 = new ju_ArrayList;
+ var$3.$array1 = $rt_createArray(jl_Object, 10);
+ nle_EaglerProfile_glTex = var$3;
+ $usernameDefaultWords = $rt_createArray(jl_String, 31).data;
+ $usernameDefaultWords[0] = $rt_s(383);
+ $usernameDefaultWords[1] = $rt_s(383);
+ $usernameDefaultWords[2] = $rt_s(384);
+ $usernameDefaultWords[3] = $rt_s(385);
+ $usernameDefaultWords[4] = $rt_s(386);
+ $usernameDefaultWords[5] = $rt_s(387);
+ $usernameDefaultWords[6] = $rt_s(388);
+ $usernameDefaultWords[7] = $rt_s(389);
+ $usernameDefaultWords[8] = $rt_s(389);
+ $usernameDefaultWords[9] = $rt_s(390);
+ $usernameDefaultWords[10] = $rt_s(390);
+ $usernameDefaultWords[11] = $rt_s(391);
+ $usernameDefaultWords[12] = $rt_s(392);
+ $usernameDefaultWords[13] = $rt_s(393);
+ $usernameDefaultWords[14] = $rt_s(394);
+ $usernameDefaultWords[15] = $rt_s(395);
+ $usernameDefaultWords[16] = $rt_s(396);
+ $usernameDefaultWords[17] = $rt_s(396);
+ $usernameDefaultWords[18] = $rt_s(396);
+ $usernameDefaultWords[19] = $rt_s(397);
+ $usernameDefaultWords[20] = $rt_s(398);
+ $usernameDefaultWords[21] = $rt_s(399);
+ $usernameDefaultWords[22] = $rt_s(400);
+ $usernameDefaultWords[23] = $rt_s(400);
+ $usernameDefaultWords[24] = $rt_s(401);
+ $usernameDefaultWords[25] = $rt_s(401);
+ $usernameDefaultWords[26] = $rt_s(402);
+ $usernameDefaultWords[27] = $rt_s(383);
+ $usernameDefaultWords[28] = $rt_s(403);
+ $usernameDefaultWords[29] = $rt_s(403);
+ $usernameDefaultWords[30] = $rt_s(404);
+ nle_EaglerProfile_rand = new ju_Random;
+ while (true) {
+ var$3 = new jl_StringBuilder;
+ var$3.$buffer = $rt_createCharArray(16);
+ var$4 = $usernameDefaultWords.length;
+ var$5 = Math.random();
+ var$6 = var$4;
+ var$7 = $usernameDefaultWords[var$5 * var$6 | 0];
+ jl_AbstractStringBuilder_insert(var$3, var$3.$length, var$7);
+ var$7 = $usernameDefaultWords[Math.random() * var$6 | 0];
+ jl_AbstractStringBuilder_insert(var$3, var$3.$length, var$7);
+ var$4 = 10 + (Math.random() * 90.0 | 0) | 0;
+ jl_AbstractStringBuilder_insert0(var$3, var$3.$length, var$4, 10);
+ nle_EaglerProfile_username = jl_String__init_0(var$3.$buffer, 0, var$3.$length);
+ if (nle_EaglerProfile_username.$characters.data.length > 16)
+ continue;
+ else
+ break;
+ }
+ var$4 = nle_GuiScreenEditProfile_defaultOptions.data.length;
+ nle_EaglerProfile_presetSkinId = Math.random() * var$4 | 0;
+ var$3 = new jl_StringBuilder;
+ var$3.$buffer = $rt_createCharArray(16);
+ var$7 = nle_EaglerProfile_username;
+ jl_AbstractStringBuilder_insert(var$3, var$3.$length, var$7);
+ jl_AbstractStringBuilder_insert(var$3, var$3.$length, $rt_s(381));
+ var$4 = 100 + (Math.random() * 900.0 | 0) | 0;
+ jl_AbstractStringBuilder_insert0(var$3, var$3.$length, var$4, 10);
+ nle_EaglerProfile_myChannel = jl_String__init_0(var$3.$buffer, 0, var$3.$length);
+ nle_EaglerProfile_customSkinId = (-1);
+}
+function nlea_EaglerAdapterImpl2$TextureGL() {
+ jl_Object.call(this);
+ this.$obj = null;
+}
+function cbpd_Decoder() {
+ jl_Object.call(this);
+ this.$in0 = null;
+}
+var cbpd_Decoder_head = null;
+function cbpd_Decoder__init_(var_0) {
+ var var_1 = new cbpd_Decoder();
+ cbpd_Decoder__init_0(var_1, var_0);
+ return var_1;
+}
+function cbpd_Decoder__init_0($this, $in) {
+ $this.$in0 = $in;
+}
+function cbpd_Decoder_readHeader($this) {
+ var $header, $i, var$3;
+ $header = $rt_createByteArray(8);
+ if (ji_ByteArrayInputStream_read0($this.$in0, $header, 0, 8) == (-1))
+ $header = null;
+ $i = 0;
+ while ($i < 8) {
+ if (($header.data[$i] & 255) != cbpd_Decoder_head.data[$i]) {
+ var$3 = new cbpd_DecodeException;
+ var$3.$suppressionEnabled = 1;
+ var$3.$writableStackTrace = 1;
+ var$3.$message = $rt_s(405);
+ $rt_throw(var$3);
+ }
+ $i = $i + 1 | 0;
+ }
+}
+function cbpd_Decoder_readChunk($this, $png, $chunkName, $length, $type, $data, $crc) {
+ var var$7, var$8, var$9, $chunkType;
+ var$7 = cbpc_ChunkType_$VALUES.$clone().data;
+ var$8 = var$7.length;
+ var$9 = 0;
+ while (var$9 < var$8) {
+ $chunkType = var$7[var$9];
+ if (jl_String_equals($chunkType.$name2, $chunkName)) {
+ $chunkType.$apply($png, $length, $type, $data, $crc);
+ return 1;
+ }
+ var$9 = var$9 + 1 | 0;
+ }
+ return 0;
+}
+function cbpd_Decoder_readInPNG($this) {
+ var $png, var$2, $length, $size, $type, $chunkName, var$7, $data, $crc, var$10;
+ $png = new cbpd_PNG;
+ var$2 = new cbpd_IDATManager;
+ var$2.$array1 = $rt_createArray(jl_Object, 10);
+ $png.$idats = var$2;
+ cbpd_Decoder_readHeader($this);
+ a: {
+ while (true) {
+ $length = $rt_createByteArray(4);
+ if (ji_ByteArrayInputStream_read0($this.$in0, $length, 0, 4) == (-1))
+ $length = null;
+ $size = cbpu_ByteHandler_byteToLong($length, 0, 4);
+ $type = $rt_createByteArray(4);
+ if (ji_ByteArrayInputStream_read0($this.$in0, $type, 0, 4) == (-1))
+ $type = null;
+ $chunkName = jl_String_toUpperCase(cbpu_ByteHandler_byteToString($type));
+ if (jl_String_equals($rt_s(406), $chunkName))
+ break;
+ var$7 = $size.lo;
+ $data = $rt_createByteArray(var$7);
+ if (ji_ByteArrayInputStream_read0($this.$in0, $data, 0, var$7) == (-1))
+ $data = null;
+ $crc = $rt_createByteArray(4);
+ if (ji_ByteArrayInputStream_read0($this.$in0, $crc, 0, 4) == (-1))
+ $crc = null;
+ cbpd_Decoder_readChunk($this, $png, $chunkName, $length, $type, $data, $crc);
+ $length = $data.data;
+ $size = cbpu_ByteHandler_byteToLong($crc, 0, 4);
+ var$10 = $length.length;
+ $length = $rt_createByteArray(4 + var$10 | 0);
+ $crc = $length.data;
+ jl_System_arraycopy($type, 0, $length, 0, 4);
+ jl_System_arraycopy($data, 0, $length, 4, var$10);
+ if (!(Long_ne($size, Long_xor(cbpu_CRC_updateCrc(new Long(4294967295, 0), $length, $crc.length), new Long(4294967295, 0))) ? 0 : 1)) {
+ $png = new cbpd_DecodeException;
+ $png.$suppressionEnabled = 1;
+ $png.$writableStackTrace = 1;
+ $png.$message = $rt_s(407);
+ $rt_throw($png);
+ }
+ if (!jl_String_equals($rt_s(406), $chunkName))
+ continue;
+ else
+ break a;
+ }
+ }
+ return $png;
+}
+function cbpd_Decoder__clinit_() {
+ var var$1, var$2;
+ var$1 = $rt_createCharArray(8);
+ var$2 = var$1.data;
+ var$2[0] = 137;
+ var$2[1] = 80;
+ var$2[2] = 78;
+ var$2[3] = 71;
+ var$2[4] = 13;
+ var$2[5] = 10;
+ var$2[6] = 26;
+ var$2[7] = 10;
+ cbpd_Decoder_head = var$1;
+}
+function cbpd_PNG() {
+ var a = this; jl_Object.call(a);
+ a.$ihdr = null;
+ a.$idats = null;
+ a.$plte = null;
+ a.$iend = null;
+}
+function cbpd_PNG__init_0() {
+ var var_0 = new cbpd_PNG();
+ cbpd_PNG__init_(var_0);
+ return var_0;
+}
+function cbpd_PNG__init_($this) {
+ var var$1;
+ var$1 = new cbpd_IDATManager;
+ var$1.$array1 = $rt_createArray(jl_Object, 10);
+ $this.$idats = var$1;
+}
+function cbpd_PNG_getColor($this) {
+ var $rawData, $uncompressData, var$3, var$4, $$je;
+ $rawData = cbpd_IDATManager_getIDATData($this.$idats);
+ a: {
+ try {
+ $uncompressData = nle_EaglerInflater_uncompress($rawData);
+ break a;
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof ji_IOException) {
+ var$3 = $$je;
+ } else {
+ throw $$e;
+ }
+ }
+ var$4 = new cbpd_DecodeException;
+ var$4.$suppressionEnabled = 1;
+ var$4.$writableStackTrace = 1;
+ var$4.$cause = var$3;
+ $rt_throw(var$4);
+ }
+ return cbpd_PNG_applyColorTransfer($this, cbpu_ReverseFilter_apply($uncompressData, $this.$ihdr.$width.lo, $this.$ihdr.$height.lo, cbpc_IHDR_getBpp($this.$ihdr)));
+}
+function cbpd_PNG_applyColorTransfer($this, $data) {
+ var $bpp, $width, $height, $colorType, $bitDepth, $colors, var$8, $i, var$10, $a, $j, $idx, var$14, var$15, var$16, var$17, $gap, var$19, var$20;
+ $bpp = cbpc_IHDR_getBpp($this.$ihdr);
+ $width = $this.$ihdr.$width.lo;
+ $height = $this.$ihdr.$height.lo;
+ $colorType = $this.$ihdr.$colorType;
+ $bitDepth = $this.$ihdr.$bitDepth;
+ $colors = $rt_createIntArray($rt_imul($width, $height));
+ var$8 = $colors.data;
+ $i = 0;
+ var$10 = $rt_compare($bitDepth, 8);
+ $a = (1 << $bitDepth) - 1 | 0;
+ a: {
+ while ($i < $height) {
+ $j = 0;
+ while ($j < $width) {
+ b: {
+ c: {
+ $idx = $rt_imul($i, $width) + $j | 0;
+ switch ($colorType) {
+ case 2:
+ if (var$10) {
+ var$14 = new cbpd_DecodeException;
+ var$14.$suppressionEnabled = 1;
+ var$14.$writableStackTrace = 1;
+ var$14.$message = $rt_s(408);
+ $rt_throw(var$14);
+ }
+ var$15 = $data.data;
+ var$16 = var$15[$i].data;
+ var$17 = $rt_imul($bpp, $j);
+ var$8[$idx] = (var$16[var$17] & 255) << 16 | (var$15[$i].data[var$17 + 1 | 0] & 255) << 8 | var$15[$i].data[var$17 + 2 | 0] & 255;
+ break b;
+ case 3:
+ break;
+ case 4:
+ case 5:
+ break a;
+ case 6:
+ break c;
+ default:
+ break a;
+ }
+ var$15 = $data.data;
+ $gap = 8 / $bitDepth | 0;
+ var$19 = $this.$plte;
+ $gap = var$15[$i].data[$j / $gap | 0] & $a;
+ var$8[$idx] = var$19.$color.data[$gap];
+ break b;
+ }
+ if (var$10) {
+ var$19 = new cbpd_DecodeException;
+ var$19.$suppressionEnabled = 1;
+ var$19.$writableStackTrace = 1;
+ var$19.$message = $rt_s(408);
+ $rt_throw(var$19);
+ }
+ var$15 = $data.data;
+ var$16 = var$15[$i].data;
+ $gap = $rt_imul($bpp, $j);
+ var$8[$idx] = (var$16[$gap] & 255) << 16 | (var$15[$i].data[$gap + 1 | 0] & 255) << 8 | var$15[$i].data[$gap + 2 | 0] & 255 | (var$15[$i].data[$gap + 3 | 0] & 255) << 24;
+ }
+ $j = $j + 1 | 0;
+ }
+ $i = $i + 1 | 0;
+ }
+ return $colors;
+ }
+ var$19 = new cbpd_DecodeException;
+ var$14 = new jl_StringBuilder;
+ var$14.$buffer = $rt_createCharArray(16);
+ jl_AbstractStringBuilder_insert(var$14, var$14.$length, $rt_s(409));
+ jl_AbstractStringBuilder_insert0(var$14, var$14.$length, $colorType, 10);
+ var$20 = jl_String__init_0(var$14.$buffer, 0, var$14.$length);
+ var$19.$suppressionEnabled = 1;
+ var$19.$writableStackTrace = 1;
+ var$19.$message = var$20;
+ $rt_throw(var$19);
+}
+function cbpd_PNG_setIhdr($this, $ihdr) {
+ $this.$ihdr = $ihdr;
+}
+function cbpd_PNG_setPlte($this, $plte) {
+ $this.$plte = $plte;
+}
+function cbpd_PNG_setIend($this, $iend) {
+ $this.$iend = $iend;
+}
+function cbpd_PNG_add($this, $idat) {
+ ju_ArrayList_add($this.$idats, $idat);
+}
+function cbpd_PNG_getWidth($this) {
+ return $this.$ihdr.$width;
+}
+function cbpd_PNG_getHeight($this) {
+ return $this.$ihdr.$height;
+}
+function cbpd_DecodeException() {
+ jl_Exception.call(this);
+}
+function cbpd_DecodeException__init_0() {
+ var var_0 = new cbpd_DecodeException();
+ cbpd_DecodeException__init_(var_0);
+ return var_0;
+}
+function cbpd_DecodeException__init_($this) {
+ $this.$suppressionEnabled = 1;
+ $this.$writableStackTrace = 1;
+}
+function jn_Buffer() {
+ var a = this; jl_Object.call(a);
+ a.$capacity = 0;
+ a.$position = 0;
+ a.$limit = 0;
+ a.$mark = 0;
+}
+function jn_Buffer_capacity($this) {
+ return $this.$capacity;
+}
+function jn_Buffer_position($this) {
+ return $this.$position;
+}
+function jn_Buffer_position0($this, $newPosition) {
+ var var$2, var$3, var$4, var$5;
+ if ($newPosition >= 0 && $newPosition <= $this.$limit) {
+ $this.$position = $newPosition;
+ if ($newPosition < $this.$mark)
+ $this.$mark = 0;
+ return $this;
+ }
+ var$2 = new jl_IllegalArgumentException;
+ var$3 = new jl_StringBuilder;
+ var$3.$buffer = $rt_createCharArray(16);
+ jl_AbstractStringBuilder_insert(var$3, var$3.$length, $rt_s(410));
+ jl_AbstractStringBuilder_insert0(var$3, var$3.$length, $newPosition, 10);
+ jl_AbstractStringBuilder_insert(var$3, var$3.$length, $rt_s(411));
+ var$4 = $this.$limit;
+ jl_AbstractStringBuilder_insert0(var$3, var$3.$length, var$4, 10);
+ jl_AbstractStringBuilder_insert(var$3, var$3.$length, $rt_s(268));
+ var$5 = jl_String__init_0(var$3.$buffer, 0, var$3.$length);
+ var$2.$suppressionEnabled = 1;
+ var$2.$writableStackTrace = 1;
+ var$2.$message = var$5;
+ $rt_throw(var$2);
+}
+function jn_Buffer_limit($this) {
+ return $this.$limit;
+}
+function jn_Buffer_limit0($this, $newLimit) {
+ var var$2, var$3, var$4;
+ if ($newLimit >= 0 && $newLimit <= $this.$capacity) {
+ if ($this.$mark > $newLimit)
+ $this.$mark = (-1);
+ $this.$limit = $newLimit;
+ if ($this.$position > $this.$limit)
+ $this.$position = $this.$limit;
+ return $this;
+ }
+ var$2 = new jl_IllegalArgumentException;
+ var$3 = new jl_StringBuilder;
+ var$3.$buffer = $rt_createCharArray(16);
+ jl_AbstractStringBuilder_insert(var$3, var$3.$length, $rt_s(412));
+ jl_AbstractStringBuilder_insert0(var$3, var$3.$length, $newLimit, 10);
+ jl_AbstractStringBuilder_insert(var$3, var$3.$length, $rt_s(411));
+ $newLimit = $this.$capacity;
+ jl_AbstractStringBuilder_insert0(var$3, var$3.$length, $newLimit, 10);
+ jl_AbstractStringBuilder_insert(var$3, var$3.$length, $rt_s(268));
+ var$4 = jl_String__init_0(var$3.$buffer, 0, var$3.$length);
+ var$2.$suppressionEnabled = 1;
+ var$2.$writableStackTrace = 1;
+ var$2.$message = var$4;
+ $rt_throw(var$2);
+}
+function jn_Buffer_remaining($this) {
+ return $this.$limit - $this.$position | 0;
+}
+function jn_Buffer_hasRemaining($this) {
+ return $this.$position >= $this.$limit ? 0 : 1;
+}
+function jn_IntBuffer() {
+ jn_Buffer.call(this);
+}
+function jn_IntBuffer_wrap($array) {
+ var var$2, var$3, var$4;
+ var$2 = $array.data.length;
+ var$3 = new jn_IntBufferOverArray;
+ var$4 = 0 + var$2 | 0;
+ var$3.$mark = (-1);
+ var$3.$capacity = var$2;
+ var$3.$limit = var$2;
+ var$3.$position = 0;
+ var$3.$limit = var$4;
+ var$3.$start1 = 0;
+ var$3.$readOnly1 = 0;
+ var$3.$array2 = $array;
+ return var$3;
+}
+function jn_IntBuffer_put0($this, $src, $offset, $length) {
+ var var$4, var$5, var$6, $pos, var$8, var$9, $i, var$11;
+ if ($this.$readOnly2()) {
+ var$4 = new jn_ReadOnlyBufferException;
+ var$4.$suppressionEnabled = 1;
+ var$4.$writableStackTrace = 1;
+ $rt_throw(var$4);
+ }
+ if (($this.$limit - $this.$position | 0) < $length) {
+ var$4 = new jn_BufferOverflowException;
+ var$4.$suppressionEnabled = 1;
+ var$4.$writableStackTrace = 1;
+ $rt_throw(var$4);
+ }
+ if ($offset >= 0) {
+ var$5 = $src.data;
+ var$6 = var$5.length;
+ if ($offset < var$6) {
+ $pos = $offset + $length | 0;
+ if ($pos > var$6) {
+ var$4 = new jl_IndexOutOfBoundsException;
+ var$8 = new jl_StringBuilder;
+ var$8.$buffer = $rt_createCharArray(16);
+ jl_AbstractStringBuilder_insert(var$8, var$8.$length, $rt_s(413));
+ jl_AbstractStringBuilder_insert0(var$8, var$8.$length, $pos, 10);
+ jl_AbstractStringBuilder_insert(var$8, var$8.$length, $rt_s(414));
+ jl_AbstractStringBuilder_insert0(var$8, var$8.$length, var$6, 10);
+ var$9 = jl_String__init_0(var$8.$buffer, 0, var$8.$length);
+ var$4.$suppressionEnabled = 1;
+ var$4.$writableStackTrace = 1;
+ var$4.$message = var$9;
+ $rt_throw(var$4);
+ }
+ if ($length >= 0) {
+ $pos = $this.$position;
+ $i = 0;
+ while ($i < $length) {
+ var$11 = $pos + 1 | 0;
+ var$6 = $offset + 1 | 0;
+ $this.$putElement($pos, var$5[$offset]);
+ $i = $i + 1 | 0;
+ $pos = var$11;
+ $offset = var$6;
+ }
+ $this.$position = $this.$position + $length | 0;
+ return $this;
+ }
+ var$4 = new jl_IndexOutOfBoundsException;
+ var$8 = new jl_StringBuilder;
+ var$8.$buffer = $rt_createCharArray(16);
+ jl_AbstractStringBuilder_insert(var$8, var$8.$length, $rt_s(415));
+ jl_AbstractStringBuilder_insert0(var$8, var$8.$length, $length, 10);
+ jl_AbstractStringBuilder_insert(var$8, var$8.$length, $rt_s(416));
+ var$9 = jl_String__init_0(var$8.$buffer, 0, var$8.$length);
+ var$4.$suppressionEnabled = 1;
+ var$4.$writableStackTrace = 1;
+ var$4.$message = var$9;
+ $rt_throw(var$4);
+ }
+ }
+ $src = $src.data;
+ var$8 = new jl_IndexOutOfBoundsException;
+ var$4 = new jl_StringBuilder;
+ var$4.$buffer = $rt_createCharArray(16);
+ jl_AbstractStringBuilder_insert(var$4, var$4.$length, $rt_s(417));
+ jl_AbstractStringBuilder_insert0(var$4, var$4.$length, $offset, 10);
+ jl_AbstractStringBuilder_insert(var$4, var$4.$length, $rt_s(411));
+ $offset = $src.length;
+ jl_AbstractStringBuilder_insert0(var$4, var$4.$length, $offset, 10);
+ jl_AbstractStringBuilder_insert(var$4, var$4.$length, $rt_s(64));
+ var$9 = jl_String__init_0(var$4.$buffer, 0, var$4.$length);
+ var$8.$suppressionEnabled = 1;
+ var$8.$writableStackTrace = 1;
+ var$8.$message = var$9;
+ $rt_throw(var$8);
+}
+function jn_IntBuffer_put($this, $src) {
+ return jn_IntBuffer_put0($this, $src, 0, $src.data.length);
+}
+function jn_IntBuffer_clear($this) {
+ $this.$position = 0;
+ $this.$limit = $this.$capacity;
+ $this.$mark = (-1);
+ return $this;
+}
+function jn_IntBuffer_flip($this) {
+ $this.$limit = $this.$position;
+ $this.$position = 0;
+ $this.$mark = (-1);
+ return $this;
+}
+function jn_IntBuffer_limit($this, $newLimit) {
+ jn_Buffer_limit0($this, $newLimit);
+ return $this;
+}
+function jn_IntBuffer_position($this, $newPosition) {
+ jn_Buffer_position0($this, $newPosition);
+ return $this;
+}
+function nlea_EaglerAdapterImpl2$BufferGL() {
+ jl_Object.call(this);
+ this.$obj2 = null;
+}
+function nlea_EaglerAdapterImpl2$ShaderGL() {
+ jl_Object.call(this);
+ this.$obj1 = null;
+}
+function nlea_EaglerAdapterImpl2$ProgramGL() {
+ var a = this; jl_Object.call(a);
+ a.$obj0 = null;
+ a.$hashcode = 0;
+}
+function nlea_EaglerAdapterImpl2$UniformGL() {
+ jl_Object.call(this);
+ this.$obj3 = null;
+}
+function nlea_EaglerAdapterImpl2$BufferArrayGL() {
+ var a = this; jl_Object.call(a);
+ a.$obj5 = null;
+ a.$isQuadBufferBound = 0;
+}
+function nlea_EaglerAdapterImpl2$BufferArrayGL__init_(var_0) {
+ var var_1 = new nlea_EaglerAdapterImpl2$BufferArrayGL();
+ nlea_EaglerAdapterImpl2$BufferArrayGL__init_0(var_1, var_0);
+ return var_1;
+}
+function nlea_EaglerAdapterImpl2$BufferArrayGL__init_0($this, $obj) {
+ $this.$obj5 = $obj;
+ $this.$isQuadBufferBound = 0;
+}
+function jnc_Charset$Charsets() {
+ jl_Object.call(this);
+}
+var jnc_Charset$Charsets_value = null;
+function jnc_Charset$Charsets__init_0() {
+ var var_0 = new jnc_Charset$Charsets();
+ jnc_Charset$Charsets__init_(var_0);
+ return var_0;
+}
+function jnc_Charset$Charsets__init_($this) {
+ return;
+}
+function jnc_Charset$Charsets__clinit_() {
+ var var$1, var$2;
+ jnc_Charset$Charsets_value = ju_HashMap__init_1(16, 0.75);
+ var$1 = jnc_Charset$Charsets_value;
+ var$2 = new jnci_UTF8Charset;
+ jnc_Charset__init_(var$2, $rt_s(2), $rt_createArray(jl_String, 0));
+ ju_HashMap_putImpl(var$1, $rt_s(2), var$2);
+}
+function jl_IllegalArgumentException() {
+ jl_RuntimeException.call(this);
+}
+function jl_IllegalArgumentException__init_0() {
+ var var_0 = new jl_IllegalArgumentException();
+ jl_IllegalArgumentException__init_(var_0);
+ return var_0;
+}
+function jl_IllegalArgumentException__init_1(var_0) {
+ var var_1 = new jl_IllegalArgumentException();
+ jl_IllegalArgumentException__init_2(var_1, var_0);
+ return var_1;
+}
+function jl_IllegalArgumentException__init_($this) {
+ $this.$suppressionEnabled = 1;
+ $this.$writableStackTrace = 1;
+}
+function jl_IllegalArgumentException__init_2($this, $message) {
+ $this.$suppressionEnabled = 1;
+ $this.$writableStackTrace = 1;
+ $this.$message = $message;
+}
+function jnc_UnsupportedCharsetException() {
+ jl_IllegalArgumentException.call(this);
+ this.$charsetName0 = null;
+}
+function jnci_UTF8Charset() {
+ jnc_Charset.call(this);
+}
+function jnci_UTF8Charset__init_0() {
+ var var_0 = new jnci_UTF8Charset();
+ jnci_UTF8Charset__init_(var_0);
+ return var_0;
+}
+function jnci_UTF8Charset__init_($this) {
+ jnc_Charset__init_($this, $rt_s(2), $rt_createArray(jl_String, 0));
+}
+function jnci_UTF8Charset_newDecoder($this) {
+ var var$1;
+ var$1 = new jnci_UTF8Decoder;
+ jnc_CharsetDecoder__init_(var$1, $this, 0.3333333432674408, 0.5);
+ return var$1;
+}
+function jnci_UTF8Charset_newEncoder($this) {
+ var var$1, var$2;
+ var$1 = new jnci_UTF8Encoder;
+ var$2 = $rt_createByteArray(1);
+ var$2.data[0] = 63;
+ var$1.$malformedAction = jnc_CodingErrorAction_REPORT;
+ var$1.$unmappableAction = jnc_CodingErrorAction_REPORT;
+ jnc_CharsetEncoder_checkReplacement(var$1, var$2);
+ var$1.$charset0 = $this;
+ var$1.$replacement = var$2.$clone();
+ var$1.$averageBytesPerChar = 2.0;
+ var$1.$maxBytesPerChar = 4.0;
+ return var$1;
+}
+function ju_Random() {
+ var a = this; jl_Object.call(a);
+ a.$storedGaussian = 0.0;
+ a.$haveStoredGaussian = 0;
+}
+function ju_Random__init_0() {
+ var var_0 = new ju_Random();
+ ju_Random__init_(var_0);
+ return var_0;
+}
+function ju_Random__init_1(var_0) {
+ var var_1 = new ju_Random();
+ ju_Random__init_2(var_1, var_0);
+ return var_1;
+}
+function ju_Random__init_($this) {
+ return;
+}
+function ju_Random__init_2($this, $seed) {
+ return;
+}
+function ju_Random_setSeed($this, $seed) {
+ return;
+}
+function ju_Random_next($this, $bits) {
+ var var$2;
+ if ($bits == 32)
+ return Math.random() * 4.294967295E9 + (-2.147483648E9) | 0;
+ var$2 = Math.random();
+ if (32 < $bits)
+ $bits = 32;
+ return var$2 * Long_toNumber(Long_shl(Long_fromInt(1), $bits)) | 0;
+}
+function ju_Random_nextInt($this) {
+ return ju_Random_next($this, 32);
+}
+function ju_Random_nextInt0($this, $n) {
+ return Math.random() * $n | 0;
+}
+function ju_Random_nextLong($this) {
+ return Long_or(Long_shl(Long_fromInt(ju_Random_next($this, 32)), 32), Long_fromInt(ju_Random_next($this, 32)));
+}
+function ju_Random_nextBoolean($this) {
+ return ju_Random_next($this, 32) % 2 | 0 ? 0 : 1;
+}
+function ju_Random_nextFloat($this) {
+ return Math.random();
+}
+function ju_Random_nextDouble($this) {
+ return Math.random();
+}
+function ju_Random_nextGaussian($this) {
+ var $v1, $v2, $s, $m;
+ if ($this.$haveStoredGaussian) {
+ $this.$haveStoredGaussian = 0;
+ return $this.$storedGaussian;
+ }
+ while (true) {
+ while (true) {
+ $v1 = 2.0 * Math.random() - 1.0;
+ $v2 = 2.0 * Math.random() - 1.0;
+ $s = $v1 * $v1 + $v2 * $v2;
+ if ($s >= 1.0)
+ continue;
+ else
+ break;
+ }
+ if ($s === 0.0)
+ continue;
+ else
+ break;
+ }
+ $m = jl_Math_sqrt((-2.0) * jl_Math_log($s) / $s);
+ $this.$storedGaussian = $v2 * $m;
+ $this.$haveStoredGaussian = 1;
+ return $v1 * $m;
+}
+function cbpc_Chunk() {
+ var a = this; jl_Object.call(a);
+ a.$length1 = Long_ZERO;
+ a.$type = null;
+ a.$data6 = null;
+ a.$crc = null;
+}
+function cbpc_Chunk__init_(var_0, var_1, var_2, var_3) {
+ var var_4 = new cbpc_Chunk();
+ cbpc_Chunk__init_0(var_4, var_0, var_1, var_2, var_3);
+ return var_4;
+}
+function cbpc_Chunk__init_0($this, $length, $type, $data, $crc) {
+ var var$5, var$6, $chunkType;
+ $this.$crc = $rt_createByteArray(4);
+ $this.$length1 = cbpu_ByteHandler_byteToLong($length, 0, 4);
+ $this.$data6 = $data;
+ $this.$crc = $crc;
+ $length = cbpc_ChunkType_$VALUES.$clone().data;
+ var$5 = $length.length;
+ var$6 = 0;
+ a: {
+ while (true) {
+ if (var$6 >= var$5)
+ break a;
+ $chunkType = $length[var$6];
+ if (jl_String_equals($chunkType.$name2, cbpu_ByteHandler_byteToString($type)))
+ break;
+ var$6 = var$6 + 1 | 0;
+ }
+ $this.$type = $chunkType;
+ }
+}
+function cbpc_Chunk_dataLength($this) {
+ return Long_fromInt($this.$data6.data.length);
+}
+function cbpc_Chunk_getData($this) {
+ return $this.$data6;
+}
+function cbpc_IHDR() {
+ var a = this; cbpc_Chunk.call(a);
+ a.$width = Long_ZERO;
+ a.$height = Long_ZERO;
+ a.$bitDepth = 0;
+ a.$colorType = 0;
+ a.$compressionMethod = 0;
+ a.$filterMethod = 0;
+ a.$interlaceMethod = 0;
+}
+var cbpc_IHDR_colorTypeValid = null;
+var cbpc_IHDR_mapColorBitDepth = null;
+function cbpc_IHDR_getBpp($this) {
+ if ($this.$colorType == 2)
+ return 3;
+ if ($this.$colorType == 6)
+ return 4;
+ if ($this.$colorType != 3)
+ return 0;
+ return 1;
+}
+function cbpc_IHDR_build($this) {
+ $this.$width = cbpu_ByteHandler_byteToLong($this.$data6, 0, 4);
+ $this.$height = cbpu_ByteHandler_byteToLong($this.$data6, 4, 4);
+ $this.$bitDepth = $this.$data6.data[8] & 255;
+ $this.$colorType = $this.$data6.data[9] & 255;
+ $this.$compressionMethod = $this.$data6.data[10] & 255;
+ $this.$filterMethod = $this.$data6.data[11] & 255;
+ $this.$interlaceMethod = $this.$data6.data[12] & 255;
+}
+function cbpc_IHDR_checkLegal($this) {
+ var $legal, var$2, var$3, $b, var$5, var$6, var$7;
+ $legal = 0;
+ var$2 = cbpc_IHDR_colorTypeValid.data;
+ var$3 = var$2.length;
+ $b = 0;
+ a: {
+ while ($b < var$3) {
+ if (var$2[$b] == $this.$colorType) {
+ $legal = 1;
+ break a;
+ }
+ $b = $b + 1 | 0;
+ }
+ }
+ if (!$legal) {
+ var$5 = new cbpd_DecodeException;
+ var$6 = new jl_StringBuilder;
+ var$6.$buffer = $rt_createCharArray(16);
+ jl_AbstractStringBuilder_insert(var$6, var$6.$length, $rt_s(418));
+ $b = $this.$colorType;
+ jl_AbstractStringBuilder_insert0(var$6, var$6.$length, $b, 10);
+ var$7 = jl_String__init_0(var$6.$buffer, 0, var$6.$length);
+ var$5.$suppressionEnabled = 1;
+ var$5.$writableStackTrace = 1;
+ var$5.$message = var$7;
+ $rt_throw(var$5);
+ }
+ var$2 = cbpc_IHDR_mapColorBitDepth.data[$this.$colorType].data;
+ $legal = var$2.length;
+ var$3 = 0;
+ while (true) {
+ if (var$3 >= $legal) {
+ var$6 = new cbpd_DecodeException;
+ var$5 = new jl_StringBuilder;
+ var$5.$buffer = $rt_createCharArray(16);
+ jl_AbstractStringBuilder_insert(var$5, var$5.$length, $rt_s(419));
+ $legal = $this.$bitDepth;
+ jl_AbstractStringBuilder_insert0(var$5, var$5.$length, $legal, 10);
+ jl_AbstractStringBuilder_insert(var$5, var$5.$length, $rt_s(420));
+ $legal = $this.$colorType;
+ jl_AbstractStringBuilder_insert0(var$5, var$5.$length, $legal, 10);
+ var$7 = jl_String__init_0(var$5.$buffer, 0, var$5.$length);
+ var$6.$suppressionEnabled = 1;
+ var$6.$writableStackTrace = 1;
+ var$6.$message = var$7;
+ $rt_throw(var$6);
+ }
+ if (var$2[var$3] == $this.$bitDepth)
+ break;
+ var$3 = var$3 + 1 | 0;
+ }
+}
+function cbpc_IHDR_getWidth($this) {
+ return $this.$width;
+}
+function cbpc_IHDR_getHeight($this) {
+ return $this.$height;
+}
+function cbpc_IHDR_getBitDepth($this) {
+ return $this.$bitDepth;
+}
+function cbpc_IHDR_getColorType($this) {
+ return $this.$colorType;
+}
+function cbpc_IHDR__clinit_() {
+ var var$1, var$2, var$3, var$4;
+ var$1 = $rt_createIntArray(5);
+ var$2 = var$1.data;
+ var$2[0] = 0;
+ var$2[1] = 2;
+ var$2[2] = 3;
+ var$2[3] = 4;
+ var$2[4] = 6;
+ cbpc_IHDR_colorTypeValid = var$1;
+ var$1 = $rt_createArray($rt_arraycls($rt_intcls()), 7);
+ var$3 = var$1.data;
+ var$2 = $rt_createIntArray(5);
+ var$4 = var$2.data;
+ var$4[0] = 1;
+ var$4[1] = 2;
+ var$4[2] = 4;
+ var$4[3] = 8;
+ var$4[4] = 16;
+ var$3[0] = var$2;
+ var$3[1] = $rt_createIntArray(0);
+ var$2 = $rt_createIntArray(2);
+ var$4 = var$2.data;
+ var$4[0] = 8;
+ var$4[1] = 16;
+ var$3[2] = var$2;
+ var$2 = $rt_createIntArray(4);
+ var$4 = var$2.data;
+ var$4[0] = 1;
+ var$4[1] = 2;
+ var$4[2] = 4;
+ var$4[3] = 8;
+ var$3[3] = var$2;
+ var$2 = $rt_createIntArray(2);
+ var$4 = var$2.data;
+ var$4[0] = 8;
+ var$4[1] = 16;
+ var$3[4] = var$2;
+ var$3[5] = $rt_createIntArray(0);
+ var$4 = $rt_createIntArray(2);
+ var$2 = var$4.data;
+ var$2[0] = 8;
+ var$2[1] = 16;
+ var$3[6] = var$4;
+ cbpc_IHDR_mapColorBitDepth = var$1;
+}
+function jn_ByteBuffer() {
+ var a = this; jn_Buffer.call(a);
+ a.$start = 0;
+ a.$array = null;
+ a.$order = null;
+}
+function jn_ByteBuffer_allocateDirect($capacity) {
+ var var$2, var$3, var$4, var$5;
+ if ($capacity >= 0) {
+ var$2 = new jn_ByteBufferImpl;
+ var$3 = $rt_createByteArray($capacity);
+ var$2.$mark = (-1);
+ var$2.$capacity = $capacity;
+ var$2.$limit = $capacity;
+ var$2.$order = jn_ByteOrder_BIG_ENDIAN;
+ var$2.$start = 0;
+ var$2.$array = var$3;
+ var$2.$position = 0;
+ var$2.$limit = $capacity;
+ var$2.$direct = 1;
+ var$2.$readOnly = 0;
+ return var$2;
+ }
+ var$2 = new jl_IllegalArgumentException;
+ var$4 = new jl_StringBuilder;
+ var$4.$buffer = $rt_createCharArray(16);
+ jl_AbstractStringBuilder_insert(var$4, var$4.$length, $rt_s(421));
+ jl_AbstractStringBuilder_insert0(var$4, var$4.$length, $capacity, 10);
+ var$5 = jl_String__init_0(var$4.$buffer, 0, var$4.$length);
+ var$2.$suppressionEnabled = 1;
+ var$2.$writableStackTrace = 1;
+ var$2.$message = var$5;
+ $rt_throw(var$2);
+}
+function jn_ByteBuffer_allocate($capacity) {
+ var var$2, var$3, var$4, var$5;
+ if ($capacity >= 0) {
+ var$2 = new jn_ByteBufferImpl;
+ var$3 = $rt_createByteArray($capacity);
+ var$2.$mark = (-1);
+ var$2.$capacity = $capacity;
+ var$2.$limit = $capacity;
+ var$2.$order = jn_ByteOrder_BIG_ENDIAN;
+ var$2.$start = 0;
+ var$2.$array = var$3;
+ var$2.$position = 0;
+ var$2.$limit = $capacity;
+ var$2.$direct = 0;
+ var$2.$readOnly = 0;
+ return var$2;
+ }
+ var$2 = new jl_IllegalArgumentException;
+ var$4 = new jl_StringBuilder;
+ var$4.$buffer = $rt_createCharArray(16);
+ jl_AbstractStringBuilder_insert(var$4, var$4.$length, $rt_s(421));
+ jl_AbstractStringBuilder_insert0(var$4, var$4.$length, $capacity, 10);
+ var$5 = jl_String__init_0(var$4.$buffer, 0, var$4.$length);
+ var$2.$suppressionEnabled = 1;
+ var$2.$writableStackTrace = 1;
+ var$2.$message = var$5;
+ $rt_throw(var$2);
+}
+function jn_ByteBuffer_get($this, $dst, $offset, $length) {
+ var var$4, var$5, $pos, var$7, var$8, var$9, $i, var$11;
+ if ($offset >= 0) {
+ var$4 = $dst.data;
+ var$5 = var$4.length;
+ if ($offset < var$5) {
+ $pos = $offset + $length | 0;
+ if ($pos > var$5) {
+ var$7 = new jl_IndexOutOfBoundsException;
+ var$8 = new jl_StringBuilder;
+ var$8.$buffer = $rt_createCharArray(16);
+ jl_AbstractStringBuilder_insert(var$8, var$8.$length, $rt_s(422));
+ jl_AbstractStringBuilder_insert0(var$8, var$8.$length, $pos, 10);
+ jl_AbstractStringBuilder_insert(var$8, var$8.$length, $rt_s(414));
+ jl_AbstractStringBuilder_insert0(var$8, var$8.$length, var$5, 10);
+ var$9 = jl_String__init_0(var$8.$buffer, 0, var$8.$length);
+ var$7.$suppressionEnabled = 1;
+ var$7.$writableStackTrace = 1;
+ var$7.$message = var$9;
+ $rt_throw(var$7);
+ }
+ if (($this.$limit - $this.$position | 0) < $length) {
+ var$7 = new jn_BufferUnderflowException;
+ var$7.$suppressionEnabled = 1;
+ var$7.$writableStackTrace = 1;
+ $rt_throw(var$7);
+ }
+ if ($length >= 0) {
+ $pos = $this.$position + $this.$start | 0;
+ $i = 0;
+ while ($i < $length) {
+ var$11 = $offset + 1 | 0;
+ $dst = $this.$array.data;
+ var$5 = $pos + 1 | 0;
+ var$4[$offset] = $dst[$pos];
+ $i = $i + 1 | 0;
+ $offset = var$11;
+ $pos = var$5;
+ }
+ $this.$position = $this.$position + $length | 0;
+ return $this;
+ }
+ var$7 = new jl_IndexOutOfBoundsException;
+ var$8 = new jl_StringBuilder;
+ var$8.$buffer = $rt_createCharArray(16);
+ jl_AbstractStringBuilder_insert(var$8, var$8.$length, $rt_s(415));
+ jl_AbstractStringBuilder_insert0(var$8, var$8.$length, $length, 10);
+ jl_AbstractStringBuilder_insert(var$8, var$8.$length, $rt_s(416));
+ var$9 = jl_String__init_0(var$8.$buffer, 0, var$8.$length);
+ var$7.$suppressionEnabled = 1;
+ var$7.$writableStackTrace = 1;
+ var$7.$message = var$9;
+ $rt_throw(var$7);
+ }
+ }
+ $dst = $dst.data;
+ var$8 = new jl_IndexOutOfBoundsException;
+ var$7 = new jl_StringBuilder;
+ var$7.$buffer = $rt_createCharArray(16);
+ jl_AbstractStringBuilder_insert(var$7, var$7.$length, $rt_s(417));
+ jl_AbstractStringBuilder_insert0(var$7, var$7.$length, $offset, 10);
+ jl_AbstractStringBuilder_insert(var$7, var$7.$length, $rt_s(411));
+ $offset = $dst.length;
+ jl_AbstractStringBuilder_insert0(var$7, var$7.$length, $offset, 10);
+ jl_AbstractStringBuilder_insert(var$7, var$7.$length, $rt_s(64));
+ var$9 = jl_String__init_0(var$7.$buffer, 0, var$7.$length);
+ var$8.$suppressionEnabled = 1;
+ var$8.$writableStackTrace = 1;
+ var$8.$message = var$9;
+ $rt_throw(var$8);
+}
+function jn_ByteBuffer_get0($this, $dst) {
+ return jn_ByteBuffer_get($this, $dst, 0, $dst.data.length);
+}
+function jn_ByteBuffer_put($this, $src) {
+ return jn_ByteBuffer_put0($this, $src.$array, $src.$start + $src.$position | 0, $src.$limit - $src.$position | 0);
+}
+function jn_ByteBuffer_put0($this, $src, $offset, $length) {
+ var var$4, var$5, var$6, $pos, var$8, var$9, $i, var$11;
+ if (!$length)
+ return $this;
+ if ($this.$readOnly) {
+ var$4 = new jn_ReadOnlyBufferException;
+ var$4.$suppressionEnabled = 1;
+ var$4.$writableStackTrace = 1;
+ $rt_throw(var$4);
+ }
+ if (($this.$limit - $this.$position | 0) < $length) {
+ var$4 = new jn_BufferOverflowException;
+ var$4.$suppressionEnabled = 1;
+ var$4.$writableStackTrace = 1;
+ $rt_throw(var$4);
+ }
+ if ($offset >= 0) {
+ var$5 = $src.data;
+ var$6 = var$5.length;
+ if ($offset < var$6) {
+ $pos = $offset + $length | 0;
+ if ($pos > var$6) {
+ var$4 = new jl_IndexOutOfBoundsException;
+ var$8 = new jl_StringBuilder;
+ var$8.$buffer = $rt_createCharArray(16);
+ jl_AbstractStringBuilder_insert(var$8, var$8.$length, $rt_s(423));
+ jl_AbstractStringBuilder_insert0(var$8, var$8.$length, $pos, 10);
+ jl_AbstractStringBuilder_insert(var$8, var$8.$length, $rt_s(414));
+ jl_AbstractStringBuilder_insert0(var$8, var$8.$length, var$6, 10);
+ var$9 = jl_String__init_0(var$8.$buffer, 0, var$8.$length);
+ var$4.$suppressionEnabled = 1;
+ var$4.$writableStackTrace = 1;
+ var$4.$message = var$9;
+ $rt_throw(var$4);
+ }
+ if ($length >= 0) {
+ $pos = $this.$position + $this.$start | 0;
+ $i = 0;
+ while ($i < $length) {
+ $src = $this.$array.data;
+ var$11 = $pos + 1 | 0;
+ var$6 = $offset + 1 | 0;
+ $src[$pos] = var$5[$offset];
+ $i = $i + 1 | 0;
+ $pos = var$11;
+ $offset = var$6;
+ }
+ $this.$position = $this.$position + $length | 0;
+ return $this;
+ }
+ var$4 = new jl_IndexOutOfBoundsException;
+ var$8 = new jl_StringBuilder;
+ var$8.$buffer = $rt_createCharArray(16);
+ jl_AbstractStringBuilder_insert(var$8, var$8.$length, $rt_s(415));
+ jl_AbstractStringBuilder_insert0(var$8, var$8.$length, $length, 10);
+ jl_AbstractStringBuilder_insert(var$8, var$8.$length, $rt_s(416));
+ var$9 = jl_String__init_0(var$8.$buffer, 0, var$8.$length);
+ var$4.$suppressionEnabled = 1;
+ var$4.$writableStackTrace = 1;
+ var$4.$message = var$9;
+ $rt_throw(var$4);
+ }
+ }
+ $src = $src.data;
+ var$8 = new jl_IndexOutOfBoundsException;
+ var$4 = new jl_StringBuilder;
+ var$4.$buffer = $rt_createCharArray(16);
+ jl_AbstractStringBuilder_insert(var$4, var$4.$length, $rt_s(417));
+ jl_AbstractStringBuilder_insert0(var$4, var$4.$length, $offset, 10);
+ jl_AbstractStringBuilder_insert(var$4, var$4.$length, $rt_s(411));
+ $offset = $src.length;
+ jl_AbstractStringBuilder_insert0(var$4, var$4.$length, $offset, 10);
+ jl_AbstractStringBuilder_insert(var$4, var$4.$length, $rt_s(64));
+ var$9 = jl_String__init_0(var$4.$buffer, 0, var$4.$length);
+ var$8.$suppressionEnabled = 1;
+ var$8.$writableStackTrace = 1;
+ var$8.$message = var$9;
+ $rt_throw(var$8);
+}
+function jn_ByteBuffer_put1($this, $src) {
+ return jn_ByteBuffer_put0($this, $src, 0, $src.data.length);
+}
+function jn_ByteBuffer_hasArray($this) {
+ return 1;
+}
+function jn_ByteBuffer_array($this) {
+ return $this.$array;
+}
+function jn_ByteBuffer_toString($this) {
+ var var$1, var$2, var$3, var$4;
+ var$1 = new jl_StringBuilder;
+ var$1.$buffer = $rt_createCharArray(16);
+ jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(424));
+ var$2 = $this.$position;
+ jl_AbstractStringBuilder_insert0(var$1, var$1.$length, var$2, 10);
+ jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(425));
+ var$2 = $this.$limit;
+ jl_AbstractStringBuilder_insert0(var$1, var$1.$length, var$2, 10);
+ jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(426));
+ var$2 = $this.$capacity;
+ jl_AbstractStringBuilder_insert0(var$1, var$1.$length, var$2, 10);
+ jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(427));
+ if ($this.$mark < 0)
+ var$3 = $rt_s(428);
+ else {
+ var$4 = new jl_StringBuilder;
+ var$4.$buffer = $rt_createCharArray(16);
+ jl_AbstractStringBuilder_insert(var$4, var$4.$length, $rt_s(429));
+ var$2 = $this.$mark;
+ jl_AbstractStringBuilder_insert0(var$4, var$4.$length, var$2, 10);
+ var$3 = jl_String__init_0(var$4.$buffer, 0, var$4.$length);
+ }
+ jl_AbstractStringBuilder_insert(var$1, var$1.$length, var$3);
+ jl_AbstractStringBuilder_insert(var$1, var$1.$length, $rt_s(268));
+ return jl_String__init_0(var$1.$buffer, 0, var$1.$length);
+}
+function jn_ByteBuffer_hashCode($this) {
+ var $hashCode, $pos, $i, var$4, var$5, var$6;
+ $hashCode = 0;
+ $pos = $this.$position + $this.$start | 0;
+ $i = $this.$position;
+ while ($i < $this.$limit) {
+ var$4 = 31 * $hashCode | 0;
+ var$5 = $this.$array.data;
+ var$6 = $pos + 1 | 0;
+ $hashCode = var$4 + var$5[$pos] | 0;
+ $i = $i + 1 | 0;
+ $pos = var$6;
+ }
+ return $hashCode;
+}
+function jn_ByteBuffer_equals($this, $obj) {
+ var $other, $sz, $a, $b, $i, var$7, var$8, var$9;
+ if ($this === $obj)
+ return 1;
+ if (!($obj instanceof jn_ByteBuffer))
+ return 0;
+ $other = $obj;
+ $sz = $this.$limit - $this.$position | 0;
+ if ($sz != ($other.$limit - $other.$position | 0))
+ return 0;
+ $a = $this.$position + $this.$start | 0;
+ $b = $other.$position + $other.$start | 0;
+ $i = 0;
+ while ($i < $sz) {
+ var$7 = $this.$array.data;
+ var$8 = $a + 1 | 0;
+ $a = var$7[$a];
+ var$7 = $other.$array.data;
+ var$9 = $b + 1 | 0;
+ if ($a != var$7[$b])
+ return 0;
+ $i = $i + 1 | 0;
+ $a = var$8;
+ $b = var$9;
+ }
+ return 1;
+}
+function jn_ByteBuffer_compareTo($this, $other) {
+ var $sz, $sz_0, $a, $b, $i, var$7, var$8, $r;
+ if ($this === $other)
+ return 0;
+ $sz = $this.$limit - $this.$position | 0;
+ $sz_0 = $other.$limit - $other.$position | 0;
+ if ($sz < $sz_0)
+ $sz_0 = $sz;
+ $a = $this.$position + $this.$start | 0;
+ $b = $other.$position + $other.$start | 0;
+ $i = 0;
+ while (true) {
+ if ($i >= $sz_0)
+ return $rt_compare($this.$limit - $this.$position | 0, $other.$limit - $other.$position | 0);
+ var$7 = $this.$array.data;
+ $sz = $a + 1 | 0;
+ $a = var$7[$a];
+ var$7 = $other.$array.data;
+ var$8 = $b + 1 | 0;
+ $r = $a - var$7[$b] | 0;
+ if ($r)
+ break;
+ $i = $i + 1 | 0;
+ $a = $sz;
+ $b = var$8;
+ }
+ return $r;
+}
+function jn_ByteBuffer_order($this, $bo) {
+ $this.$order = $bo;
+ return $this;
+}
+function jn_ByteBuffer_mark($this) {
+ $this.$mark = $this.$position;
+ return $this;
+}
+function jn_ByteBuffer_reset($this) {
+ var var$1;
+ if ($this.$mark >= 0) {
+ $this.$position = $this.$mark;
+ return $this;
+ }
+ var$1 = new jn_InvalidMarkException;
+ var$1.$suppressionEnabled = 1;
+ var$1.$writableStackTrace = 1;
+ $rt_throw(var$1);
+}
+function jn_ByteBuffer_clear($this) {
+ $this.$position = 0;
+ $this.$limit = $this.$capacity;
+ $this.$mark = (-1);
+ return $this;
+}
+function jn_ByteBuffer_flip($this) {
+ $this.$limit = $this.$position;
+ $this.$position = 0;
+ $this.$mark = (-1);
+ return $this;
+}
+function jn_ByteBuffer_limit($this, $newLimit) {
+ jn_Buffer_limit0($this, $newLimit);
+ return $this;
+}
+function jn_ByteBuffer_position($this, $newPosition) {
+ jn_Buffer_position0($this, $newPosition);
+ return $this;
+}
+function jn_ByteBuffer_compareTo0($this, var$1) {
+ return jn_ByteBuffer_compareTo($this, var$1);
+}
+function jn_ByteOrder() {
+ jl_Object.call(this);
+ this.$name3 = null;
+}
+var jn_ByteOrder_BIG_ENDIAN = null;
+var jn_ByteOrder_LITTLE_ENDIAN = null;
+function jn_ByteOrder_nativeOrder() {
+ return jn_ByteOrder_BIG_ENDIAN;
+}
+function jn_ByteOrder__clinit_() {
+ var var$1;
+ var$1 = new jn_ByteOrder;
+ var$1.$name3 = $rt_s(430);
+ jn_ByteOrder_BIG_ENDIAN = var$1;
+ var$1 = new jn_ByteOrder;
+ var$1.$name3 = $rt_s(431);
+ jn_ByteOrder_LITTLE_ENDIAN = var$1;
+}
+function jnc_IllegalCharsetNameException() {
+ jl_IllegalArgumentException.call(this);
+ this.$charsetName = null;
+}
+function cjj_ZStream() {
+ var a = this; jl_Object.call(a);
+ a.$next_in = null;
+ a.$next_in_index = 0;
+ a.$avail_in = 0;
+ a.$total_in = Long_ZERO;
+ a.$next_out = null;
+ a.$next_out_index = 0;
+ a.$avail_out = 0;
+ a.$total_out = Long_ZERO;
+ a.$msg = null;
+ a.$dstate = null;
+ a.$istate = null;
+ a.$data_type = 0;
+ a.$adler = null;
+}
+function cjj_ZStream__init_0() {
+ var var_0 = new cjj_ZStream();
+ cjj_ZStream__init_(var_0);
+ return var_0;
+}
+function cjj_ZStream__init_($this) {
+ var var$1;
+ var$1 = new cjj_Adler32;
+ var$1.$s1 = Long_fromInt(1);
+ var$1.$s2 = Long_ZERO;
+ $this.$adler = var$1;
+}
+function cjj_ZStream_flush_pending($this) {
+ var $len, var$2;
+ $len = $this.$dstate.$pending;
+ if ($len > $this.$avail_out)
+ $len = $this.$avail_out;
+ if (!$len)
+ return;
+ jl_System_arraycopy($this.$dstate.$pending_buf, $this.$dstate.$pending_out, $this.$next_out, $this.$next_out_index, $len);
+ $this.$next_out_index = $this.$next_out_index + $len | 0;
+ var$2 = $this.$dstate;
+ var$2.$pending_out = var$2.$pending_out + $len | 0;
+ $this.$total_out = Long_add($this.$total_out, Long_fromInt($len));
+ $this.$avail_out = $this.$avail_out - $len | 0;
+ var$2 = $this.$dstate;
+ var$2.$pending = var$2.$pending - $len | 0;
+ if (!$this.$dstate.$pending)
+ $this.$dstate.$pending_out = 0;
+}
+function cjj_ZStream_read_buf($this, $buf, $start, $size) {
+ var $len;
+ $len = $this.$avail_in;
+ if ($len <= $size)
+ $size = $len;
+ if (!$size)
+ return 0;
+ $this.$avail_in = $this.$avail_in - $size | 0;
+ if ($this.$dstate.$wrap1)
+ $this.$adler.$update($this.$next_in, $this.$next_in_index, $size);
+ jl_System_arraycopy($this.$next_in, $this.$next_in_index, $buf, $start, $size);
+ $this.$next_in_index = $this.$next_in_index + $size | 0;
+ $this.$total_in = Long_add($this.$total_in, Long_fromInt($size));
+ return $size;
+}
+function cjj_ZStream_free($this) {
+ $this.$next_in = null;
+ $this.$next_out = null;
+ $this.$msg = null;
+}
+function cjj_ZStream_setOutput($this, $buf, $off, $len) {
+ $this.$next_out = $buf;
+ $this.$next_out_index = $off;
+ $this.$avail_out = $len;
+}
+function cjj_ZStream_setInput($this, $buf, $off, $len, $append) {
+ var $tmp_0;
+ if ($len <= 0 && $append && $this.$next_in !== null)
+ return;
+ if ($this.$avail_in > 0 && $append) {
+ $tmp_0 = $rt_createByteArray($this.$avail_in + $len | 0);
+ jl_System_arraycopy($this.$next_in, $this.$next_in_index, $tmp_0, 0, $this.$avail_in);
+ jl_System_arraycopy($buf, $off, $tmp_0, $this.$avail_in, $len);
+ $this.$next_in = $tmp_0;
+ $this.$next_in_index = 0;
+ $this.$avail_in = $this.$avail_in + $len | 0;
+ } else {
+ $this.$next_in = $buf;
+ $this.$next_in_index = $off;
+ $this.$avail_in = $len;
+ }
+}
+function cjj_Inflater() {
+ cjj_ZStream.call(this);
+ this.$finished = 0;
+}
+function cjj_Inflater__init_1() {
+ var var_0 = new cjj_Inflater();
+ cjj_Inflater__init_(var_0);
+ return var_0;
+}
+function cjj_Inflater__init_0(var_0, var_1) {
+ var var_2 = new cjj_Inflater();
+ cjj_Inflater__init_2(var_2, var_0, var_1);
+ return var_2;
+}
+function cjj_Inflater__init_($this) {
+ var var$1;
+ var$1 = new cjj_Adler32;
+ var$1.$s1 = Long_fromInt(1);
+ var$1.$s2 = Long_ZERO;
+ $this.$adler = var$1;
+ $this.$finished = 0;
+ cjj_Inflater_init($this, 15, 0);
+}
+function cjj_Inflater__init_2($this, $w, $nowrap) {
+ var var$3, $ret, var$5, var$6;
+ var$3 = new cjj_Adler32;
+ var$3.$s1 = Long_fromInt(1);
+ var$3.$s2 = Long_ZERO;
+ $this.$adler = var$3;
+ $this.$finished = 0;
+ $ret = cjj_Inflater_init($this, $w, $nowrap);
+ if (!$ret)
+ return;
+ var$3 = new cjj_GZIPException;
+ var$5 = new jl_StringBuilder;
+ var$5.$buffer = $rt_createCharArray(16);
+ jl_AbstractStringBuilder_insert0(var$5, var$5.$length, $ret, 10);
+ jl_AbstractStringBuilder_insert(var$5, var$5.$length, $rt_s(48));
+ var$6 = $this.$msg;
+ jl_AbstractStringBuilder_insert(var$5, var$5.$length, var$6);
+ var$6 = jl_String__init_0(var$5.$buffer, 0, var$5.$length);
+ var$3.$suppressionEnabled = 1;
+ var$3.$writableStackTrace = 1;
+ var$3.$message = var$6;
+ $rt_throw(var$3);
+}
+function cjj_Inflater_init0($this) {
+ return cjj_Inflater_init($this, 15, 0);
+}
+function cjj_Inflater_init1($this, $w) {
+ return cjj_Inflater_init($this, $w, 0);
+}
+function cjj_Inflater_init($this, $w, $nowrap) {
+ var var$3;
+ $this.$finished = 0;
+ var$3 = new cjj_Inflate;
+ var$3.$was = Long_fromInt(-1);
+ var$3.$need_bytes = (-1);
+ var$3.$crcbuf = $rt_createByteArray(4);
+ var$3.$gheader = null;
+ var$3.$tmp_string = null;
+ var$3.$z2 = $this;
+ $this.$istate = var$3;
+ var$3 = $this.$istate;
+ if ($nowrap)
+ $w = -$w;
+ return cjj_Inflate_inflateInit(var$3, $w);
+}
+function cjj_Inflater_inflate($this, $f) {
+ var $ret;
+ if ($this.$istate === null)
+ return (-2);
+ $ret = cjj_Inflate_inflate($this.$istate, $f);
+ if ($ret == 1)
+ $this.$finished = 1;
+ return $ret;
+}
+function cjj_Inflater_end($this) {
+ var var$1;
+ $this.$finished = 1;
+ if ($this.$istate === null)
+ return (-2);
+ var$1 = $this.$istate;
+ if (var$1.$blocks !== null) {
+ var$1 = var$1.$blocks;
+ cjj_InfBlocks_reset(var$1);
+ var$1.$window = null;
+ var$1.$hufts = null;
+ }
+ return 0;
+}
+function cjj_Inflater_finished($this) {
+ return $this.$istate.$mode != 12 ? 0 : 1;
+}
+function nms_NBTTagEnd() {
+ nms_NBTBase.call(this);
+}
+function nms_NBTTagEnd__init_0() {
+ var var_0 = new nms_NBTTagEnd();
+ nms_NBTTagEnd__init_(var_0);
+ return var_0;
+}
+function nms_NBTTagEnd__init_($this) {
+ var var$1;
+ var$1 = null;
+ if (var$1 !== null)
+ $this.$name0 = var$1;
+ else
+ $this.$name0 = $rt_s(44);
+}
+function nms_NBTTagEnd_load($this, $par1DataInput) {
+ return;
+}
+function nms_NBTTagEnd_write($this, $par1DataOutput) {
+ return;
+}
+function nms_NBTTagEnd_getId($this) {
+ return 0;
+}
+function nms_NBTTagEnd_toString($this) {
+ return $rt_s(190);
+}
+function nms_NBTTagEnd_copy($this) {
+ var var$1, var$2;
+ var$1 = new nms_NBTTagEnd;
+ var$2 = null;
+ if (var$2 !== null)
+ var$1.$name0 = var$2;
+ else
+ var$1.$name0 = $rt_s(44);
+ return var$1;
+}
+function otjb_Performance() {
+ jl_Object.call(this);
+}
+function otjb_Performance__init_0() {
+ var var_0 = new otjb_Performance();
+ otjb_Performance__init_(var_0);
+ return var_0;
+}
+function otjb_Performance__init_($this) {
+ return;
+}
+function nms_Gui() {
+ jl_Object.call(this);
+ this.$zLevel = 0.0;
+}
+function nms_Gui__init_0() {
+ var var_0 = new nms_Gui();
+ nms_Gui__init_(var_0);
+ return var_0;
+}
+function nms_Gui__init_($this) {
+ $this.$zLevel = 0.0;
+}
+function nms_Gui_drawRect($par0, $par1, $par2, $par3, $par4) {
+ var var$6, $var10, $var6, $var7, $var8, $var9, var$12, var$13, var$14;
+ if ($par0 >= $par2) {
+ var$6 = $par2;
+ $par2 = $par0;
+ $par0 = var$6;
+ }
+ if ($par1 >= $par3) {
+ var$6 = $par3;
+ $par3 = $par1;
+ $par1 = var$6;
+ }
+ $var10 = ($par4 >> 24 & 255) / 255.0;
+ $var6 = ($par4 >> 16 & 255) / 255.0;
+ $var7 = ($par4 >> 8 & 255) / 255.0;
+ $var8 = ($par4 & 255) / 255.0;
+ nlea_Tessellator_$callClinit();
+ $var9 = nlea_Tessellator_instance;
+ nleg_EaglerAdapterGL30_glEnable(16);
+ nleg_EaglerAdapterGL30_glDisable(2);
+ nleg_EaglerAdapterGL30_glBlendFunc(42, 43);
+ nleg_EaglerAdapterGL30_colorR = $var6;
+ nleg_EaglerAdapterGL30_colorG = $var7;
+ nleg_EaglerAdapterGL30_colorB = $var8;
+ nleg_EaglerAdapterGL30_colorA = $var10;
+ nlea_Tessellator_startDrawing($var9, 98);
+ var$12 = $par2;
+ var$13 = $par1;
+ nlea_Tessellator_addVertex($var9, var$12, var$13, 0.0);
+ var$14 = $par0;
+ nlea_Tessellator_addVertex($var9, var$14, var$13, 0.0);
+ var$13 = $par3;
+ nlea_Tessellator_addVertex($var9, var$14, var$13, 0.0);
+ nlea_Tessellator_addVertex($var9, var$12, var$13, 0.0);
+ nlea_Tessellator_draw($var9);
+ nleg_EaglerAdapterGL30_glEnable(2);
+ nleg_EaglerAdapterGL30_glDisable(16);
+}
+function nms_Gui_drawGradientRect($this, $par1, $par2, $par3, $par4, $par5, $par6) {
+ var $var7, $var8, $var9, $var10, $var11, $var12, $var13, $var14, $var15, var$16, var$17, var$18;
+ $var7 = ($par5 >> 24 & 255) / 255.0;
+ $var8 = ($par5 >> 16 & 255) / 255.0;
+ $var9 = ($par5 >> 8 & 255) / 255.0;
+ $var10 = ($par5 & 255) / 255.0;
+ $var11 = ($par6 >> 24 & 255) / 255.0;
+ $var12 = ($par6 >> 16 & 255) / 255.0;
+ $var13 = ($par6 >> 8 & 255) / 255.0;
+ $var14 = ($par6 & 255) / 255.0;
+ nleg_EaglerAdapterGL30_glDisable(2);
+ nleg_EaglerAdapterGL30_glEnable(16);
+ nleg_EaglerAdapterGL30_glDisable(6);
+ nleg_EaglerAdapterGL30_glBlendFunc(42, 43);
+ nlea_Tessellator_$callClinit();
+ $var15 = nlea_Tessellator_instance;
+ nlea_Tessellator_startDrawing($var15, 98);
+ nlea_Tessellator_setColorRGBA($var15, $var8 * 255.0 | 0, $var9 * 255.0 | 0, $var10 * 255.0 | 0, $var7 * 255.0 | 0);
+ var$16 = $par3;
+ var$17 = $par2;
+ nlea_Tessellator_addVertex($var15, var$16, var$17, $this.$zLevel);
+ var$18 = $par1;
+ nlea_Tessellator_addVertex($var15, var$18, var$17, $this.$zLevel);
+ nlea_Tessellator_setColorRGBA($var15, $var12 * 255.0 | 0, $var13 * 255.0 | 0, $var14 * 255.0 | 0, $var11 * 255.0 | 0);
+ var$17 = $par4;
+ nlea_Tessellator_addVertex($var15, var$18, var$17, $this.$zLevel);
+ nlea_Tessellator_addVertex($var15, var$16, var$17, $this.$zLevel);
+ nlea_Tessellator_draw($var15);
+ nleg_EaglerAdapterGL30_glDisable(16);
+ nleg_EaglerAdapterGL30_glEnable(6);
+ nleg_EaglerAdapterGL30_glEnable(2);
+}
+function nms_Gui_drawCenteredString($this, $par1FontRenderer, $par2Str, $par3, $par4, $par5) {
+ nms_FontRenderer_drawString($par1FontRenderer, $par2Str, $par3 - (nms_FontRenderer_getStringWidth($par1FontRenderer, $par2Str) / 2 | 0) | 0, $par4, $par5, 1);
+}
+function nms_Gui_drawString($this, $par1FontRenderer, $par2Str, $par3, $par4, $par5) {
+ nms_FontRenderer_drawString($par1FontRenderer, $par2Str, $par3, $par4, $par5, 1);
+}
+function nms_Gui_drawTexturedModalRect($this, $par1, $par2, $par3, $par4, $par5, $par6) {
+ var $var9, var$8, var$9, var$10, var$11, var$12, var$13, var$14, var$15;
+ nlea_Tessellator_$callClinit();
+ $var9 = nlea_Tessellator_instance;
+ nlea_Tessellator_startDrawing($var9, 98);
+ var$8 = $par1 + 0 | 0;
+ var$9 = $par2 + $par6 | 0;
+ var$10 = $this.$zLevel;
+ var$11 = ($par3 + 0 | 0) * 0.00390625;
+ var$12 = ($par4 + $par6 | 0) * 0.00390625;
+ $var9.$hasTexture = 1;
+ var$13 = var$11;
+ $var9.$textureU = var$13;
+ var$14 = var$12;
+ $var9.$textureV = var$14;
+ nlea_Tessellator_addVertex($var9, var$8, var$9, var$10);
+ var$12 = $par1 + $par5 | 0;
+ var$11 = $this.$zLevel;
+ var$10 = ($par3 + $par5 | 0) * 0.00390625;
+ $var9.$hasTexture = 1;
+ var$15 = var$10;
+ $var9.$textureU = var$15;
+ $var9.$textureV = var$14;
+ nlea_Tessellator_addVertex($var9, var$12, var$9, var$11);
+ var$11 = $par2 + 0 | 0;
+ var$10 = $this.$zLevel;
+ var$9 = ($par4 + 0 | 0) * 0.00390625;
+ $var9.$hasTexture = 1;
+ $var9.$textureU = var$15;
+ var$15 = var$9;
+ $var9.$textureV = var$15;
+ nlea_Tessellator_addVertex($var9, var$12, var$11, var$10);
+ var$12 = $this.$zLevel;
+ $var9.$hasTexture = 1;
+ $var9.$textureU = var$13;
+ $var9.$textureV = var$15;
+ nlea_Tessellator_addVertex($var9, var$8, var$11, var$12);
+ nlea_Tessellator_draw($var9);
+}
+function nms_Gui_static_drawTexturedModalRect($par1, $par2, $par3, $par4, $par5, $par6) {
+ var $var9, var$8, var$9, var$10, var$11, var$12, var$13, $var7, $var8;
+ nlea_Tessellator_$callClinit();
+ $var9 = nlea_Tessellator_instance;
+ nlea_Tessellator_startDrawing($var9, 98);
+ var$8 = $par1 + 0 | 0;
+ var$9 = $par2 + $par6 | 0;
+ var$10 = ($par3 + 0 | 0) * 0.00390625;
+ var$11 = ($par4 + $par6 | 0) * 0.00390625;
+ $var9.$hasTexture = 1;
+ var$12 = var$10;
+ $var9.$textureU = var$12;
+ var$13 = var$11;
+ $var9.$textureV = var$13;
+ nlea_Tessellator_addVertex($var9, var$8, var$9, 0.0);
+ var$10 = $par1 + $par5 | 0;
+ var$11 = ($par3 + $par5 | 0) * 0.00390625;
+ $var9.$hasTexture = 1;
+ $var7 = var$11;
+ $var9.$textureU = $var7;
+ $var9.$textureV = var$13;
+ nlea_Tessellator_addVertex($var9, var$10, var$9, 0.0);
+ var$9 = $par2 + 0 | 0;
+ var$11 = ($par4 + 0 | 0) * 0.00390625;
+ $var9.$hasTexture = 1;
+ $var9.$textureU = $var7;
+ $var8 = var$11;
+ $var9.$textureV = $var8;
+ nlea_Tessellator_addVertex($var9, var$10, var$9, 0.0);
+ $var9.$hasTexture = 1;
+ $var9.$textureU = var$12;
+ $var9.$textureV = $var8;
+ nlea_Tessellator_addVertex($var9, var$8, var$9, 0.0);
+ nlea_Tessellator_draw($var9);
+}
+function nms_Gui_drawTexturedModelRectFromIcon($this, $par1, $par2, $par3Icon, $par4, $par5) {
+ var $var6, var$7, var$8, var$9, var$10, var$11, var$12;
+ nlea_Tessellator_$callClinit();
+ $var6 = nlea_Tessellator_instance;
+ nlea_Tessellator_startDrawing($var6, 98);
+ var$7 = $par1 + 0 | 0;
+ var$8 = $par2 + $par5 | 0;
+ var$9 = $this.$zLevel;
+ var$10 = $par3Icon.$minU;
+ var$11 = $par3Icon.$maxV;
+ $var6.$hasTexture = 1;
+ $var6.$textureU = var$10;
+ $var6.$textureV = var$11;
+ nlea_Tessellator_addVertex($var6, var$7, var$8, var$9);
+ var$12 = $par1 + $par4 | 0;
+ var$11 = $this.$zLevel;
+ var$9 = $par3Icon.$maxU;
+ var$10 = $par3Icon.$maxV;
+ $var6.$hasTexture = 1;
+ $var6.$textureU = var$9;
+ $var6.$textureV = var$10;
+ nlea_Tessellator_addVertex($var6, var$12, var$8, var$11);
+ var$9 = $par2 + 0 | 0;
+ var$10 = $this.$zLevel;
+ var$8 = $par3Icon.$maxU;
+ var$11 = $par3Icon.$minV;
+ $var6.$hasTexture = 1;
+ $var6.$textureU = var$8;
+ $var6.$textureV = var$11;
+ nlea_Tessellator_addVertex($var6, var$12, var$9, var$10);
+ var$10 = $this.$zLevel;
+ var$8 = $par3Icon.$minU;
+ var$11 = $par3Icon.$minV;
+ $var6.$hasTexture = 1;
+ $var6.$textureU = var$8;
+ $var6.$textureV = var$11;
+ nlea_Tessellator_addVertex($var6, var$7, var$9, var$10);
+ nlea_Tessellator_draw($var6);
+}
+function nms_GuiScreen() {
+ var a = this; nms_Gui.call(a);
+ a.$mc4 = null;
+ a.$width0 = 0;
+ a.$height0 = 0;
+ a.$buttonList = null;
+ a.$allowUserInput = 0;
+ a.$fontRenderer0 = null;
+ a.$guiParticles = null;
+ a.$selectedButton = null;
+ a.$eventButton = 0;
+ a.$field_85043_c = Long_ZERO;
+ a.$field_92018_d = 0;
+}
+var nms_GuiScreen_isMacOs = 0;
+var nms_GuiScreen_tex_background = null;
+function nms_GuiScreen_$callClinit() {
+ nms_GuiScreen_$callClinit = $rt_eraseClinit(nms_GuiScreen);
+ nms_GuiScreen__clinit_();
+}
+function nms_GuiScreen__init_0() {
+ var var_0 = new nms_GuiScreen();
+ nms_GuiScreen__init_(var_0);
+ return var_0;
+}
+function nms_GuiScreen__init_($this) {
+ var var$1;
+ nms_GuiScreen_$callClinit();
+ $this.$zLevel = 0.0;
+ var$1 = new ju_ArrayList;
+ var$1.$array1 = $rt_createArray(jl_Object, 10);
+ $this.$buttonList = var$1;
+ $this.$allowUserInput = 0;
+ $this.$selectedButton = null;
+ $this.$eventButton = 0;
+ $this.$field_85043_c = Long_ZERO;
+ $this.$field_92018_d = 0;
+}
+function nms_GuiScreen_drawScreen($this, $par1, $par2, $par3) {
+ var $var4, $var5;
+ $var4 = 0;
+ a: {
+ while ($var4 < $this.$buttonList.$size0) {
+ $var5 = $this.$buttonList;
+ if ($var4 < 0)
+ break a;
+ if ($var4 >= $var5.$size0)
+ break a;
+ $var5.$array1.data[$var4].$drawButton($this.$mc4, $par1, $par2);
+ $var4 = $var4 + 1 | 0;
+ }
+ return;
+ }
+ $var5 = new jl_IndexOutOfBoundsException;
+ $var5.$suppressionEnabled = 1;
+ $var5.$writableStackTrace = 1;
+ $rt_throw($var5);
+}
+function nms_GuiScreen_keyTyped($this, $par1, $par2) {
+ return;
+}
+function nms_GuiScreen_mouseClicked($this, $par1, $par2, $par3) {
+ var $var4, var$5, $var5, var$7, var$8, var$9, $ptr, $tmp;
+ $ptr = 0;
+ if ($rt_resuming()) {
+ var $thread = $rt_nativeThread();
+ $ptr = $thread.pop();var$9 = $thread.pop();var$8 = $thread.pop();var$7 = $thread.pop();$var5 = $thread.pop();var$5 = $thread.pop();$var4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop();
+ }
+ main: while (true) { switch ($ptr) {
+ case 0:
+ a: {
+ b: {
+ if (!$par3) {
+ $var4 = 0;
+ while (true) {
+ if ($var4 >= $this.$buttonList.$size0)
+ break b;
+ var$5 = $this.$buttonList;
+ if ($var4 < 0)
+ break a;
+ if ($var4 >= var$5.$size0)
+ break a;
+ $var5 = var$5.$array1.data[$var4];
+ if ($var5.$mousePressed($this.$mc4, $par1, $par2)) {
+ $this.$selectedButton = $var5;
+ var$7 = $this.$mc4.$sndManager;
+ var$5 = $rt_s(432);
+ var$8 = 1.0;
+ var$9 = 1.0;
+ $ptr = 1;
+ continue main;
+ }
+ $var4 = $var4 + 1 | 0;
+ }
+ }
+ }
+ return;
+ }
+ var$5 = new jl_IndexOutOfBoundsException;
+ var$5.$suppressionEnabled = 1;
+ var$5.$writableStackTrace = 1;
+ $rt_throw(var$5);
+ case 1:
+ nms_SoundManager_playSoundFX(var$7, var$5, var$8, var$9);
+ if ($rt_suspending()) {
+ break main;
+ }
+ $ptr = 2;
+ case 2:
+ $this.$actionPerformed($var5);
+ if ($rt_suspending()) {
+ break main;
+ }
+ a: {
+ while (true) {
+ $var4 = $var4 + 1 | 0;
+ if ($var4 >= $this.$buttonList.$size0)
+ break;
+ var$5 = $this.$buttonList;
+ if ($var4 < 0)
+ break a;
+ if ($var4 >= var$5.$size0)
+ break a;
+ $var5 = var$5.$array1.data[$var4];
+ if (!$var5.$mousePressed($this.$mc4, $par1, $par2))
+ continue;
+ else {
+ $this.$selectedButton = $var5;
+ var$7 = $this.$mc4.$sndManager;
+ var$5 = $rt_s(432);
+ var$8 = 1.0;
+ var$9 = 1.0;
+ $ptr = 1;
+ continue main;
+ }
+ }
+ return;
+ }
+ var$5 = new jl_IndexOutOfBoundsException;
+ var$5.$suppressionEnabled = 1;
+ var$5.$writableStackTrace = 1;
+ $rt_throw(var$5);
+ default: $rt_invalidPointer();
+ }}
+ $rt_nativeThread().push($this, $par1, $par2, $par3, $var4, var$5, $var5, var$7, var$8, var$9, $ptr);
+}
+function nms_GuiScreen_mouseMovedOrUp($this, $par1, $par2, $par3) {
+ if ($this.$selectedButton !== null && !$par3) {
+ $this.$selectedButton.$mouseReleased($par1, $par2);
+ $this.$selectedButton = null;
+ }
+}
+function nms_GuiScreen_func_85041_a($this, $par1, $par2, $par3, $par4) {
+ return;
+}
+function nms_GuiScreen_actionPerformed($this, $par1GuiButton) {
+ return;
+}
+function nms_GuiScreen_setWorldAndResolution($this, $par1Minecraft, $par2, $par3) {
+ var var$4, var$5, $ptr, $tmp;
+ $ptr = 0;
+ if ($rt_resuming()) {
+ var $thread = $rt_nativeThread();
+ $ptr = $thread.pop();var$5 = $thread.pop();var$4 = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1Minecraft = $thread.pop();$this = $thread.pop();
+ }
+ main: while (true) { switch ($ptr) {
+ case 0:
+ var$4 = new nms_GuiParticle;
+ var$4.$zLevel = 0.0;
+ var$5 = new ju_ArrayList;
+ var$5.$array1 = $rt_createArray(jl_Object, 10);
+ var$4.$particles = var$5;
+ var$4.$mc5 = $par1Minecraft;
+ $this.$guiParticles = var$4;
+ $this.$mc4 = $par1Minecraft;
+ $this.$fontRenderer0 = $par1Minecraft.$fontRenderer;
+ $this.$width0 = $par2;
+ $this.$height0 = $par3;
+ $par1Minecraft = $this.$buttonList;
+ ju_Arrays_fill($par1Minecraft.$array1, 0, $par1Minecraft.$size0, null);
+ $par1Minecraft.$size0 = 0;
+ $ptr = 1;
+ case 1:
+ $this.$initGui();
+ if ($rt_suspending()) {
+ break main;
+ }
+ return;
+ default: $rt_invalidPointer();
+ }}
+ $rt_nativeThread().push($this, $par1Minecraft, $par2, $par3, var$4, var$5, $ptr);
+}
+function nms_GuiScreen_handleInput($this) {
+ var $ptr, $tmp;
+ $ptr = 0;
+ if ($rt_resuming()) {
+ var $thread = $rt_nativeThread();
+ $ptr = $thread.pop();$this = $thread.pop();
+ }
+ main: while (true) { switch ($ptr) {
+ case 0:
+ if (nlea_EaglerAdapterImpl2_mouseNext()) {
+ $ptr = 1;
+ continue main;
+ }
+ if (!nlea_EaglerAdapterImpl2_keysNext())
+ return;
+ $ptr = 2;
+ continue main;
+ case 1:
+ $this.$handleMouseInput();
+ if ($rt_suspending()) {
+ break main;
+ }
+ if (nlea_EaglerAdapterImpl2_mouseNext()) {
+ continue main;
+ }
+ if (!nlea_EaglerAdapterImpl2_keysNext())
+ return;
+ $ptr = 2;
+ case 2:
+ nms_GuiScreen_handleKeyboardInput($this);
+ if ($rt_suspending()) {
+ break main;
+ }
+ if (!nlea_EaglerAdapterImpl2_keysNext())
+ return;
+ continue main;
+ default: $rt_invalidPointer();
+ }}
+ $rt_nativeThread().push($this, $ptr);
+}
+function nms_GuiScreen_handleMouseInput($this) {
+ var $var2, $var1, var$3, $var3, $ptr, $tmp;
+ $ptr = 0;
+ if ($rt_resuming()) {
+ var $thread = $rt_nativeThread();
+ $ptr = $thread.pop();$var3 = $thread.pop();var$3 = $thread.pop();$var1 = $thread.pop();$var2 = $thread.pop();$this = $thread.pop();
+ }
+ main: while (true) { switch ($ptr) {
+ case 0:
+ nlea_EaglerAdapterImpl2_$callClinit();
+ $var2 = nlea_EaglerAdapterImpl2_currentEvent === null ? (-1) : nlea_EaglerAdapterImpl2_currentEvent.clientX;
+ $var1 = $rt_imul($var2, $this.$width0) / $this.$mc4.$displayWidth | 0;
+ $var2 = ($this.$height0 - ($rt_imul(nlea_EaglerAdapterImpl2_mouseGetEventY(), $this.$height0) / $this.$mc4.$displayHeight | 0) | 0) - 1 | 0;
+ if (nlea_EaglerAdapterImpl2_currentEvent === null ? 0 : jl_String_equals($rt_str(nlea_EaglerAdapterImpl2_currentEvent.type), $rt_s(66))) {
+ if ($this.$mc4.$gameSettings.$touchscreen) {
+ var$3 = $this.$field_92018_d;
+ $this.$field_92018_d = var$3 + 1 | 0;
+ if (var$3 > 0)
+ return;
+ }
+ $this.$eventButton = nlea_EaglerAdapterImpl2_mouseGetEventButton();
+ $this.$field_85043_c = jl_System_currentTimeMillis();
+ var$3 = $this.$eventButton;
+ $ptr = 1;
+ continue main;
+ }
+ if (nlea_EaglerAdapterImpl2_mouseGetEventButton() == (-1)) {
+ if ($this.$eventButton != (-1) && Long_gt($this.$field_85043_c, Long_ZERO)) {
+ $var3 = Long_sub(jl_System_currentTimeMillis(), $this.$field_85043_c);
+ var$3 = $this.$eventButton;
+ $ptr = 3;
+ continue main;
+ }
+ return;
+ }
+ if ($this.$mc4.$gameSettings.$touchscreen) {
+ var$3 = $this.$field_92018_d - 1 | 0;
+ $this.$field_92018_d = var$3;
+ if (var$3 > 0)
+ return;
+ }
+ $this.$eventButton = (-1);
+ var$3 = nlea_EaglerAdapterImpl2_mouseGetEventButton();
+ $ptr = 2;
+ continue main;
+ case 1:
+ $this.$mouseClicked($var1, $var2, var$3);
+ if ($rt_suspending()) {
+ break main;
+ }
+ return;
+ case 2:
+ $this.$mouseMovedOrUp($var1, $var2, var$3);
+ if ($rt_suspending()) {
+ break main;
+ }
+ return;
+ case 3:
+ $this.$func_85041_a($var1, $var2, var$3, $var3);
+ if ($rt_suspending()) {
+ break main;
+ }
+ return;
+ default: $rt_invalidPointer();
+ }}
+ $rt_nativeThread().push($this, $var2, $var1, var$3, $var3, $ptr);
+}
+function nms_GuiScreen_handleKeyboardInput($this) {
+ var $var1, $var2, $ptr, $tmp;
+ $ptr = 0;
+ if ($rt_resuming()) {
+ var $thread = $rt_nativeThread();
+ $ptr = $thread.pop();$var2 = $thread.pop();$var1 = $thread.pop();$this = $thread.pop();
+ }
+ main: while (true) { switch ($ptr) {
+ case 0:
+ if (!nlea_EaglerAdapterImpl2_getEventKeyState())
+ return;
+ $var1 = nlea_EaglerAdapterImpl2_currentEventK === null ? (-1) : nlea_EaglerAdapterImpl2_remapKey(nlea_EaglerAdapterImpl2_currentEventK.keyCode);
+ $var2 = nlea_EaglerAdapterImpl2_getEventChar();
+ if ($var1 == 87)
+ return;
+ if (nms_GuiScreen_isMacOs && $var1 == 28 && !$var2)
+ $var1 = 29;
+ $ptr = 1;
+ case 1:
+ $this.$keyTyped($var2, $var1);
+ if ($rt_suspending()) {
+ break main;
+ }
+ return;
+ default: $rt_invalidPointer();
+ }}
+ $rt_nativeThread().push($this, $var1, $var2, $ptr);
+}
+function nms_GuiScreen_updateScreen($this) {
+ return;
+}
+function nms_GuiScreen_onGuiClosed($this) {
+ return;
+}
+function nms_GuiScreen_drawDefaultBackground($this) {
+ if ($this.$mc4.$theWorld === null)
+ nms_GuiScreen_drawBackground($this, 0);
+ else
+ nms_Gui_drawGradientRect($this, 0, 0, $this.$width0, $this.$height0, (-1072689136), (-804253680));
+}
+function nms_GuiScreen_drawWorldBackground($this, $par1) {
+ if ($this.$mc4.$theWorld === null)
+ nms_GuiScreen_drawBackground($this, $par1);
+ else
+ nms_Gui_drawGradientRect($this, 0, 0, $this.$width0, $this.$height0, (-1072689136), (-804253680));
+}
+function nms_GuiScreen_drawBackground($this, $par1) {
+ var $var2, var$3, var$4, var$5, var$6, var$7, var$8;
+ nleg_EaglerAdapterGL30_glDisable(13);
+ nleg_EaglerAdapterGL30_glDisable(14);
+ nlea_Tessellator_$callClinit();
+ $var2 = nlea_Tessellator_instance;
+ nle_TextureLocation_bindTexture(nms_GuiScreen_tex_background);
+ nleg_EaglerAdapterGL30_colorR = 1.0;
+ nleg_EaglerAdapterGL30_colorG = 1.0;
+ nleg_EaglerAdapterGL30_colorB = 1.0;
+ nleg_EaglerAdapterGL30_colorA = 1.0;
+ nlea_Tessellator_startDrawing($var2, 98);
+ nlea_Tessellator_setColorRGBA($var2, 64, 64, 64, 255);
+ var$3 = $this.$height0;
+ var$4 = $this.$height0 / 32.0;
+ var$5 = $par1;
+ var$6 = var$4 + var$5;
+ $var2.$hasTexture = 1;
+ $var2.$textureU = 0.0;
+ $var2.$textureV = var$6;
+ nlea_Tessellator_addVertex($var2, 0.0, var$3, 0.0);
+ var$7 = $this.$width0;
+ var$6 = $this.$height0;
+ var$3 = $this.$width0 / 32.0;
+ var$8 = $this.$height0 / 32.0 + var$5;
+ $var2.$hasTexture = 1;
+ $var2.$textureU = var$3;
+ $var2.$textureV = var$8;
+ nlea_Tessellator_addVertex($var2, var$7, var$6, 0.0);
+ var$7 = $this.$width0;
+ var$3 = $this.$width0 / 32.0;
+ var$8 = $par1;
+ $var2.$hasTexture = 1;
+ $var2.$textureU = var$3;
+ var$5 = var$8;
+ $var2.$textureV = var$5;
+ nlea_Tessellator_addVertex($var2, var$7, 0.0, 0.0);
+ $var2.$hasTexture = 1;
+ $var2.$textureU = 0.0;
+ $var2.$textureV = var$5;
+ nlea_Tessellator_addVertex($var2, 0.0, 0.0, 0.0);
+ nlea_Tessellator_draw($var2);
+}
+function nms_GuiScreen_isCtrlKeyDown() {
+ var $var0;
+ nms_GuiScreen_$callClinit();
+ nlea_EaglerAdapterImpl2_$callClinit();
+ $var0 = nlea_EaglerAdapterImpl2_keyStates.data[28] && !nlea_EaglerAdapterImpl2_getEventChar() ? 1 : 0;
+ a: {
+ b: {
+ if (!nlea_EaglerAdapterImpl2_keyStates.data[29] && !nlea_EaglerAdapterImpl2_keyStates.data[157]) {
+ if (!nms_GuiScreen_isMacOs)
+ break b;
+ if (!$var0 && !nlea_EaglerAdapterImpl2_keyStates.data[219] && !nlea_EaglerAdapterImpl2_keyStates.data[220])
+ break b;
+ }
+ $var0 = 1;
+ break a;
+ }
+ $var0 = 0;
+ }
+ return $var0;
+}
+function nms_GuiScreen_isShiftKeyDown() {
+ nms_GuiScreen_$callClinit();
+ nlea_EaglerAdapterImpl2_$callClinit();
+ return !nlea_EaglerAdapterImpl2_keyStates.data[42] && !nlea_EaglerAdapterImpl2_keyStates.data[54] ? 0 : 1;
+}
+function nms_GuiScreen__clinit_() {
+ var var$1;
+ nms_GuiScreen_isMacOs = nmc_Minecraft_getOs() !== nms_EnumOS_MACOS ? 0 : 1;
+ var$1 = new nle_TextureLocation;
+ var$1.$path = $rt_s(433);
+ var$1.$glObject = (-1);
+ ju_ArrayList_add(nle_TextureLocation_locations, var$1);
+ nms_GuiScreen_tex_background = var$1;
+}
+function nle_GuiScreenEditProfile() {
+ var a = this; nms_GuiScreen.call(a);
+ a.$parent = null;
+ a.$username = null;
+ a.$dropDownOpen = 0;
+ a.$dropDownOptions = null;
+ a.$slotsVisible = 0;
+ a.$selectedSlot = 0;
+ a.$scrollPos = 0;
+ a.$skinsHeight = 0;
+ a.$dragging = 0;
+ a.$mousex = 0;
+ a.$mousey = 0;
+ a.$screenTitle = null;
+ a.$button0 = null;
+ a.$button1 = null;
+ a.$button2 = null;
+}
+var nle_GuiScreenEditProfile_gui = null;
+var nle_GuiScreenEditProfile_defaultOptions = null;
+function nle_GuiScreenEditProfile__init_(var_0) {
+ var var_1 = new nle_GuiScreenEditProfile();
+ nle_GuiScreenEditProfile__init_0(var_1, var_0);
+ return var_1;
+}
+function nle_GuiScreenEditProfile__init_0($this, $parent) {
+ var var$2, var$3, var$4, var$5, var$6, var$7;
+ nms_GuiScreen__init_($this);
+ $this.$dropDownOpen = 0;
+ $this.$slotsVisible = 0;
+ $this.$selectedSlot = 0;
+ $this.$scrollPos = (-1);
+ $this.$skinsHeight = 0;
+ $this.$dragging = 0;
+ $this.$mousex = 0;
+ $this.$mousey = 0;
+ $this.$screenTitle = $rt_s(434);
+ $this.$parent = $parent;
+ nle_EaglerProfile_$callClinit();
+ var$2 = ju_AbstractCollection_toArray0(nle_EaglerProfile_skinNames, $rt_createArray(jl_String, 0));
+ var$3 = var$2.data;
+ var$4 = nle_GuiScreenEditProfile_defaultOptions;
+ var$5 = var$4.data;
+ var$6 = var$3.length;
+ var$7 = var$5.length;
+ var$3 = $rt_createArray(jl_String, var$6 + var$7 | 0);
+ jl_System_arraycopy(var$2, 0, var$3, 0, var$6);
+ jl_System_arraycopy(var$4, 0, var$3, var$6, var$7);
+ $this.$dropDownOptions = var$3;
+}
+function nle_GuiScreenEditProfile_initGui($this) {
+ var $var1, var$2, var$3, var$4;
+ nlea_EaglerAdapterImpl2_$callClinit();
+ nlea_EaglerAdapterImpl2_enableRepeatEvents = 1;
+ $var1 = nms_StringTranslate_instance;
+ $this.$screenTitle = nms_StringTranslate_translateKey($var1, $rt_s(435));
+ $this.$username = nms_GuiTextField__init_($this.$fontRenderer0, (($this.$width0 / 2 | 0) - 20 | 0) + 1 | 0, (($this.$height0 / 6 | 0) + 24 | 0) + 1 | 0, 138, 20);
+ var$2 = $this.$username;
+ if (!var$2.$isFocused)
+ var$2.$cursorCounter = 0;
+ var$2.$isFocused = 1;
+ var$2 = $this.$username;
+ nle_EaglerProfile_$callClinit();
+ nms_GuiTextField_setText(var$2, nle_EaglerProfile_username);
+ $this.$selectedSlot = nle_EaglerProfile_presetSkinId == (-1) ? nle_EaglerProfile_customSkinId : nle_EaglerProfile_presetSkinId + nle_EaglerProfile_skinNames.$size0 | 0;
+ var$3 = $this.$buttonList;
+ var$4 = nms_GuiButton__init_(200, ($this.$width0 / 2 | 0) - 100 | 0, ($this.$height0 / 6 | 0) + 168 | 0, 200, 20, nms_StringTranslate_translateKey($var1, $rt_s(436)));
+ $this.$button0 = var$4;
+ ju_ArrayList_add(var$3, var$4);
+ var$3 = $this.$buttonList;
+ var$4 = nms_GuiButton__init_(2, ($this.$width0 / 2 | 0) - 21 | 0, ($this.$height0 / 6 | 0) + 110 | 0, 71, 20, nms_StringTranslate_translateKey($var1, $rt_s(437)));
+ $this.$button1 = var$4;
+ ju_ArrayList_add(var$3, var$4);
+ var$2 = $this.$buttonList;
+ var$3 = nms_GuiButton__init_(3, (($this.$width0 / 2 | 0) - 21 | 0) + 71 | 0, ($this.$height0 / 6 | 0) + 110 | 0, 72, 20, nms_StringTranslate_translateKey($var1, $rt_s(438)));
+ $this.$button2 = var$3;
+ ju_ArrayList_add(var$2, var$3);
+}
+function nle_GuiScreenEditProfile_drawScreen($this, $mx, $my, $par3) {
+ var $var1, $skinX, $skinY, $skinWidth, $skinHeight, $i, $xx, $yy, var$12, $scrollerPos, var$14, var$15, var$16, $scrollerSize;
+ $var1 = nms_StringTranslate_getInstance();
+ nms_GuiScreen_drawDefaultBackground($this);
+ nms_Gui_drawCenteredString($this, $this.$fontRenderer0, $this.$screenTitle, $this.$width0 / 2 | 0, 15, 16777215);
+ nms_Gui_drawString($this, $this.$fontRenderer0, nms_StringTranslate_translateKey($var1, $rt_s(439)), ($this.$width0 / 2 | 0) - 20 | 0, ($this.$height0 / 6 | 0) + 8 | 0, 10526880);
+ nms_Gui_drawString($this, $this.$fontRenderer0, nms_StringTranslate_translateKey($var1, $rt_s(440)), ($this.$width0 / 2 | 0) - 20 | 0, ($this.$height0 / 6 | 0) + 66 | 0, 10526880);
+ $this.$mousex = $mx;
+ $this.$mousey = $my;
+ $skinX = ($this.$width0 / 2 | 0) - 120 | 0;
+ $skinY = ($this.$height0 / 6 | 0) + 8 | 0;
+ $skinWidth = $skinX + 80 | 0;
+ $skinHeight = $skinY + 130 | 0;
+ nms_Gui_drawRect($skinX, $skinY, $skinWidth, $skinHeight, (-6250336));
+ nms_Gui_drawRect($skinX + 1 | 0, $skinY + 1 | 0, $skinWidth - 1 | 0, $skinHeight - 1 | 0, (-16777195));
+ nms_GuiTextField_drawTextBox($this.$username);
+ if (!$this.$dropDownOpen)
+ nms_GuiScreen_drawScreen($this, $mx, $my, $par3);
+ else
+ nms_GuiScreen_drawScreen($this, 0, 0, $par3);
+ $skinX = ($this.$width0 / 2 | 0) - 20 | 0;
+ $skinY = ($this.$height0 / 6 | 0) + 82 | 0;
+ $skinWidth = $skinX + 140 | 0;
+ $skinHeight = $skinY + 22 | 0;
+ nms_Gui_drawRect($skinX, $skinY, $skinWidth, $skinHeight, (-6250336));
+ $i = $skinX + 1 | 0;
+ $xx = $skinY + 1 | 0;
+ $yy = $skinWidth - 21 | 0;
+ $skinHeight = $skinHeight - 1 | 0;
+ nms_Gui_drawRect($i, $xx, $yy, $skinHeight, (-16777216));
+ nms_Gui_drawRect($skinWidth - 20 | 0, $xx, $skinWidth - 1 | 0, $skinHeight, (-16777216));
+ nleg_EaglerAdapterGL30_glColor4f(1.0, 1.0, 1.0, 1.0);
+ nle_TextureLocation_bindTexture(nle_GuiScreenEditProfile_gui);
+ nms_Gui_drawTexturedModalRect($this, $skinWidth - 18 | 0, $skinY + 3 | 0, 0, 240, 16, 16);
+ nms_FontRenderer_drawStringWithShadow($this.$fontRenderer0, $this.$dropDownOptions.data[$this.$selectedSlot], $skinX + 5 | 0, $skinY + 7 | 0, 14737632);
+ $skinX = ($this.$width0 / 2 | 0) - 20 | 0;
+ $skinY = ($this.$height0 / 6 | 0) + 103 | 0;
+ $this.$slotsVisible = (($this.$height0 - $skinY | 0) - 10 | 0) / 10 | 0;
+ if ($this.$slotsVisible > $this.$dropDownOptions.data.length)
+ $this.$slotsVisible = $this.$dropDownOptions.data.length;
+ $skinHeight = ($this.$slotsVisible * 10 | 0) + 7 | 0;
+ $this.$skinsHeight = $skinHeight;
+ if ($this.$scrollPos == (-1))
+ $this.$scrollPos = $this.$selectedSlot - 2 | 0;
+ if ($this.$scrollPos > ($this.$dropDownOptions.data.length - $this.$slotsVisible | 0))
+ $this.$scrollPos = $this.$dropDownOptions.data.length - $this.$slotsVisible | 0;
+ if ($this.$scrollPos < 0)
+ $this.$scrollPos = 0;
+ if ($this.$dropDownOpen) {
+ $skinWidth = $skinX + 140 | 0;
+ $i = $skinY + $skinHeight | 0;
+ nms_Gui_drawRect($skinX, $skinY, $skinWidth, $i, (-6250336));
+ $xx = $skinX + 1 | 0;
+ $yy = $skinY + 1 | 0;
+ var$12 = $skinWidth - 1 | 0;
+ nms_Gui_drawRect($xx, $yy, var$12, $i - 1 | 0, (-16777216));
+ $i = 0;
+ $scrollerPos = $skinX + 5 | 0;
+ var$14 = $skinY + 5 | 0;
+ var$15 = $rt_compare($mx, $skinX);
+ var$16 = $rt_compare($mx, $skinWidth - 10 | 0);
+ while ($i < $this.$slotsVisible) {
+ if (($i + $this.$scrollPos | 0) < $this.$dropDownOptions.data.length) {
+ if ($this.$selectedSlot == ($i + $this.$scrollPos | 0)) {
+ $skinX = $skinY + ($i * 10 | 0) | 0;
+ nms_Gui_drawRect($xx, $skinX + 4 | 0, var$12, $skinX + 14 | 0, 2013265919);
+ } else if (var$15 >= 0 && var$16 < 0) {
+ $skinX = $skinY + ($i * 10 | 0) | 0;
+ if ($my >= ($skinX + 5 | 0) && $my < ($skinX + 15 | 0))
+ nms_Gui_drawRect($xx, $skinX + 4 | 0, var$12, $skinX + 14 | 0, 1442840575);
+ }
+ nms_FontRenderer_drawStringWithShadow($this.$fontRenderer0, $this.$dropDownOptions.data[$i + $this.$scrollPos | 0], $scrollerPos, var$14 + ($i * 10 | 0) | 0, 14737632);
+ }
+ $i = $i + 1 | 0;
+ }
+ $scrollerSize = $rt_imul($skinHeight, $this.$slotsVisible) / $this.$dropDownOptions.data.length | 0;
+ $scrollerPos = $rt_imul($skinHeight, $this.$scrollPos) / $this.$dropDownOptions.data.length | 0;
+ $skinX = $skinWidth - 4 | 0;
+ $skinY = $skinY + $scrollerPos | 0;
+ nms_Gui_drawRect($skinX, $skinY + 1 | 0, var$12, $skinY + $scrollerSize | 0, (-7829368));
+ }
+ nle_DefaultSkinRenderer_renderPlayerPreview(($this.$width0 / 2 | 0) - 80 | 0, ($this.$height0 / 6 | 0) + 130 | 0, $mx, $my, $this.$selectedSlot);
+}
+function nle_GuiScreenEditProfile_handleMouseInput($this) {
+ var $var1, $ptr, $tmp;
+ $ptr = 0;
+ if ($rt_resuming()) {
+ var $thread = $rt_nativeThread();
+ $ptr = $thread.pop();$var1 = $thread.pop();$this = $thread.pop();
+ }
+ main: while (true) { switch ($ptr) {
+ case 0:
+ $ptr = 1;
+ case 1:
+ nms_GuiScreen_handleMouseInput($this);
+ if ($rt_suspending()) {
+ break main;
+ }
+ if ($this.$dropDownOpen) {
+ $var1 = nlea_EaglerAdapterImpl2_mouseGetEventDWheel();
+ if ($var1 < 0)
+ $this.$scrollPos = $this.$scrollPos + 3 | 0;
+ if ($var1 > 0)
+ $this.$scrollPos = $this.$scrollPos - 3 | 0;
+ }
+ return;
+ default: $rt_invalidPointer();
+ }}
+ $rt_nativeThread().push($this, $var1, $ptr);
+}
+function nle_GuiScreenEditProfile_actionPerformed($this, $par1GuiButton) {
+ var $i, $skins, var$4, $i_0, var$6, $$je, $ptr, $tmp;
+ $ptr = 0;
+ if ($rt_resuming()) {
+ var $thread = $rt_nativeThread();
+ $ptr = $thread.pop();var$6 = $thread.pop();$i_0 = $thread.pop();var$4 = $thread.pop();$skins = $thread.pop();$i = $thread.pop();$par1GuiButton = $thread.pop();$this = $thread.pop();
+ }
+ main: while (true) { switch ($ptr) {
+ case 0:
+ if (!$this.$dropDownOpen) {
+ if ($par1GuiButton.$id2 == 200) {
+ $par1GuiButton = $this.$username.$text;
+ nle_EaglerProfile_$callClinit();
+ nle_EaglerProfile_username = $par1GuiButton;
+ nle_EaglerProfile_presetSkinId = $this.$selectedSlot - nle_EaglerProfile_skinNames.$size0 | 0;
+ if (nle_EaglerProfile_presetSkinId >= 0)
+ nle_EaglerProfile_customSkinId = (-1);
+ else {
+ nle_EaglerProfile_presetSkinId = (-1);
+ nle_EaglerProfile_customSkinId = $this.$selectedSlot;
+ }
+ $par1GuiButton = nle_LocalStorageManager_profileSettingsStorage;
+ $i = nle_EaglerProfile_presetSkinId;
+ $skins = $par1GuiButton.$tagMap;
+ $par1GuiButton = new nms_NBTTagInt;
+ $par1GuiButton.$name0 = $rt_s(379);
+ $par1GuiButton.$data2 = $i;
+ ju_HashMap_putImpl($skins, $rt_s(379), $par1GuiButton);
+ $par1GuiButton = nle_LocalStorageManager_profileSettingsStorage;
+ $i = nle_EaglerProfile_customSkinId;
+ $skins = $par1GuiButton.$tagMap;
+ $par1GuiButton = new nms_NBTTagInt;
+ $par1GuiButton.$name0 = $rt_s(380);
+ $par1GuiButton.$data2 = $i;
+ ju_HashMap_putImpl($skins, $rt_s(380), $par1GuiButton);
+ $par1GuiButton = nle_LocalStorageManager_profileSettingsStorage;
+ $skins = nle_EaglerProfile_username;
+ var$4 = $par1GuiButton.$tagMap;
+ $par1GuiButton = new nms_NBTTagString;
+ $par1GuiButton.$name0 = $rt_s(339);
+ $par1GuiButton.$data4 = $skins;
+ if ($skins === null) {
+ $i_0 = new jl_IllegalArgumentException;
+ $i_0.$suppressionEnabled = 1;
+ $i_0.$writableStackTrace = 1;
+ $i_0.$message = $rt_s(264);
+ $rt_throw($i_0);
+ }
+ ju_HashMap_putImpl(var$4, $rt_s(339), $par1GuiButton);
+ $skins = new nms_NBTTagCompound;
+ $skins.$name0 = $rt_s(44);
+ $skins.$tagMap = ju_HashMap__init_1(16, 0.75);
+ $i = 0;
+ a: {
+ while (true) {
+ if ($i >= nle_EaglerProfile_skinNames.$size0) {
+ $par1GuiButton = nle_LocalStorageManager_profileSettingsStorage.$tagMap;
+ $skins.$name0 = $rt_s(382);
+ ju_HashMap_putImpl($par1GuiButton, $rt_s(382), $skins);
+ b: {
+ try {
+ nlea_EaglerAdapterImpl2_saveLocalStorage($rt_s(203), nms_CompressedStreamTools_writeUncompressed(nle_LocalStorageManager_profileSettingsStorage));
+ break b;
+ } catch ($$e) {
+ $$je = $rt_wrapException($$e);
+ if ($$je instanceof ji_IOException) {
+ } else {
+ throw $$e;
+ }
+ }
+ }
+ $par1GuiButton = $this.$mc4;
+ $i_0 = $this.$parent;
+ $ptr = 1;
+ continue main;
+ }
+ $par1GuiButton = nle_EaglerProfile_skinNames;
+ if ($i < 0)
+ break a;
+ if ($i >= $par1GuiButton.$size0)
+ break a;
+ $par1GuiButton = $par1GuiButton.$array1.data[$i];
+ $i_0 = nle_EaglerProfile_skinDatas;
+ if ($i < 0)
+ break;
+ if ($i >= $i_0.$size0)
+ break;
+ var$6 = $i_0.$array1.data[$i];
+ var$4 = $skins.$tagMap;
+ $i_0 = new nms_NBTTagByteArray;
+ if ($par1GuiButton !== null)
+ $i_0.$name0 = $par1GuiButton;
+ else
+ $i_0.$name0 = $rt_s(44);
+ $i_0.$byteArray = var$6;
+ ju_HashMap_putImpl(var$4, $par1GuiButton, $i_0);
+ $i = $i + 1 | 0;
+ }
+ $par1GuiButton = new jl_IndexOutOfBoundsException;
+ $par1GuiButton.$suppressionEnabled = 1;
+ $par1GuiButton.$writableStackTrace = 1;
+ $rt_throw($par1GuiButton);
+ }
+ $par1GuiButton = new jl_IndexOutOfBoundsException;
+ $par1GuiButton.$suppressionEnabled = 1;
+ $par1GuiButton.$writableStackTrace = 1;
+ $rt_throw($par1GuiButton);
+ }
+ if ($par1GuiButton.$id2 == 2)
+ window.eagsFileChooser.openFileChooser("png", "image/png");
+ else if ($par1GuiButton.$id2 == 3) {
+ nle_EaglerProfile_$callClinit();
+ $par1GuiButton = nle_EaglerProfile_skinDatas;
+ ju_Arrays_fill($par1GuiButton.$array1, 0, $par1GuiButton.$size0, null);
+ $par1GuiButton.$size0 = 0;
+ $par1GuiButton = nle_EaglerProfile_skinNames;
+ ju_Arrays_fill($par1GuiButton.$array1, 0, $par1GuiButton.$size0, null);
+ $par1GuiButton.$size0 = 0;
+ $par1GuiButton = nle_EaglerProfile_glTex;
+ $skins = new ju_AbstractList$1;
+ $skins.$this$0 = $par1GuiButton;
+ $skins.$modCount = $skins.$this$0.$modCount0;
+ $skins.$size1 = $skins.$this$0.$size2();
+ $skins.$removeIndex = (-1);
+ while (ju_AbstractList$1_hasNext($skins)) {
+ $i_0 = ju_AbstractList$1_next($skins);
+ nms_RenderEngine_deleteTexture($this.$mc4.$renderEngine, $i_0.$value);
+ }
+ $par1GuiButton = nle_EaglerProfile_glTex;
+ ju_Arrays_fill($par1GuiButton.$array1, 0, $par1GuiButton.$size0, null);
+ $par1GuiButton.$size0 = 0;
+ $this.$dropDownOptions = nle_GuiScreenEditProfile_defaultOptions;
+ $this.$selectedSlot = 0;
+ }
+ }
+ return;
+ case 1:
+ nmc_Minecraft_displayGuiScreen($par1GuiButton, $i_0);
+ if ($rt_suspending()) {
+ break main;
+ }
+ return;
+ default: $rt_invalidPointer();
+ }}
+ $rt_nativeThread().push($this, $par1GuiButton, $i, $skins, var$4, $i_0, var$6, $ptr);
+}
+function nle_GuiScreenEditProfile_updateScreen($this) {
+ var $img, $skinX, $skinY, $scrollerSize, $rawSkin, var$6, $i, $i2, $i3, $name, var$11, var$12, $skinWidth;
+ $img = $this.$username;
+ $img.$cursorCounter = $img.$cursorCounter + 1 | 0;
+ if (!$this.$dropDownOpen)
+ $this.$dragging = 0;
+ else {
+ nlea_EaglerAdapterImpl2_$callClinit();
+ if (!nlea_EaglerAdapterImpl2_buttonStates.data[0])
+ $this.$dragging = 0;
+ else {
+ $skinX = ($this.$width0 / 2 | 0) - 20 | 0;
+ $skinY = ($this.$height0 / 6 | 0) + 103 | 0;
+ $scrollerSize = $this.$mousex;
+ $skinX = $skinX + 140 | 0;
+ if ($scrollerSize >= ($skinX - 10 | 0) && $this.$mousex < $skinX && $this.$mousey >= $skinY && $this.$mousey < ($skinY + $this.$skinsHeight | 0))
+ $this.$dragging = 1;
+ if ($this.$dragging) {
+ $scrollerSize = $rt_imul($this.$skinsHeight, $this.$slotsVisible) / $this.$dropDownOptions.data.length | 0;
+ $this.$scrollPos = $rt_imul(($this.$mousey - $skinY | 0) - ($scrollerSize / 2 | 0) | 0, $this.$dropDownOptions.data.length) / $this.$skinsHeight | 0;
+ }
+ }
+ }
+ $rawSkin = nlea_EaglerAdapterImpl2_getFileChooserResult();
+ if ($rawSkin !== null && $rawSkin.data.length > 0) {
+ $img = nle_EaglerImage_loadImage($rawSkin);
+ if (!($img.$w0 == 64 && $img.$h == 32) && !($img.$w0 == 64 && $img.$h == 64) && !($img.$w0 == 128 && $img.$h == 64) && !($img.$w0 == 128 && $img.$h == 128))
+ return;
+ $rawSkin = $rt_createByteArray($img.$data.data.length * 4 | 0);
+ var$6 = $rawSkin.data;
+ $i = 0;
+ while ($i < $img.$data.data.length) {
+ $i2 = $i * 4 | 0;
+ $i3 = $img.$data.data[$i];
+ var$6[$i2] = $i3 << 24 >> 24;
+ var$6[$i2 + 1 | 0] = $i3 >> 8 << 24 >> 24;
+ var$6[$i2 + 2 | 0] = $i3 >> 16 << 24 >> 24;
+ var$6[$i2 + 3 | 0] = $i3 >> 24 << 24 >> 24;
+ $i = $i + 1 | 0;
+ }
+ $name = $rt_str(nlea_EaglerAdapterImpl2_getFileChooserResultName$js_body$_152());
+ nle_EaglerProfile_addSkin($name.$characters.data.length <= 32 ? $name : jl_String__init_0($name.$characters, 0, 32), $rawSkin);
+ $this.$selectedSlot = nle_EaglerProfile_skinNames.$size0 - 1 | 0;
+ $rawSkin = ju_AbstractCollection_toArray0(nle_EaglerProfile_skinNames, $rt_createArray(jl_String, 0));
+ var$11 = $rawSkin.data;
+ var$12 = nle_GuiScreenEditProfile_defaultOptions;
+ var$6 = var$12.data;
+ $skinY = var$11.length;
+ $skinWidth = var$6.length;
+ var$6 = $rt_createArray(jl_String, $skinY + $skinWidth | 0);
+ jl_System_arraycopy($rawSkin, 0, var$6, 0, $skinY);
+ jl_System_arraycopy(var$12, 0, var$6, $skinY, $skinWidth);
+ $this.$dropDownOptions = var$6;
+ }
+}
+function nle_GuiScreenEditProfile_onGuiClosed($this) {
+ nlea_EaglerAdapterImpl2_$callClinit();
+ nlea_EaglerAdapterImpl2_enableRepeatEvents = 0;
+}
+function nle_GuiScreenEditProfile_keyTyped($this, $par1, $par2) {
+ var $text, var$4;
+ nms_GuiTextField_textboxKeyTyped($this.$username, $par1, $par2);
+ $text = $this.$username.$text;
+ var$4 = $text.$characters.data.length <= 16 ? $text : jl_String__init_0($text.$characters, 0, 16);
+ $text = jur_Matcher_replaceAll(jur_Matcher__init_(jur_Pattern_compile($rt_s(441), 0), var$4), $rt_s(381));
+ nms_GuiTextField_setText($this.$username, $text);
+ if ($par2 == 200 && $this.$selectedSlot > 0) {
+ $this.$selectedSlot = $this.$selectedSlot - 1 | 0;
+ $this.$scrollPos = $this.$selectedSlot - 2 | 0;
+ }
+ if ($par2 == 208 && $this.$selectedSlot < ($this.$dropDownOptions.data.length - 1 | 0)) {
+ $this.$selectedSlot = $this.$selectedSlot + 1 | 0;
+ $this.$scrollPos = $this.$selectedSlot - 2 | 0;
+ }
+}
+function nle_GuiScreenEditProfile_mouseClicked($this, $par1, $par2, $par3) {
+ var $skinX, $skinY, $skinWidth, $skinHeight, $i, $ptr, $tmp;
+ $ptr = 0;
+ if ($rt_resuming()) {
+ var $thread = $rt_nativeThread();
+ $ptr = $thread.pop();$i = $thread.pop();$skinHeight = $thread.pop();$skinWidth = $thread.pop();$skinY = $thread.pop();$skinX = $thread.pop();$par3 = $thread.pop();$par2 = $thread.pop();$par1 = $thread.pop();$this = $thread.pop();
+ }
+ main: while (true) { switch ($ptr) {
+ case 0:
+ $ptr = 1;
+ case 1:
+ a: {
+ nms_GuiScreen_mouseClicked($this, $par1, $par2, $par3);
+ if ($rt_suspending()) {
+ break main;
+ }
+ nms_GuiTextField_mouseClicked($this.$username, $par1, $par2, $par3);
+ if (!$par3) {
+ $skinX = (($this.$width0 / 2 | 0) + 140 | 0) - 40 | 0;
+ $skinY = ($this.$height0 / 6 | 0) + 82 | 0;
+ if ($par1 >= $skinX && $par1 < ($skinX + 20 | 0) && $par2 >= $skinY && $par2 < ($skinY + 22 | 0))
+ $this.$dropDownOpen = $this.$dropDownOpen ? 0 : 1;
+ $skinX = ($this.$width0 / 2 | 0) - 20 | 0;
+ $skinWidth = ($this.$height0 / 6 | 0) + 82 | 0;
+ $skinHeight = $this.$skinsHeight;
+ $skinY = $rt_compare($par1, $skinX);
+ if (!($skinY >= 0 && $par1 < ($skinX + 140 | 0) && $par2 >= $skinWidth && $par2 < (($skinWidth + $skinHeight | 0) + 22 | 0))) {
+ $this.$dropDownOpen = 0;
+ $this.$dragging = 0;
+ }
+ $par3 = $skinWidth + 21 | 0;
+ if ($this.$dropDownOpen && !$this.$dragging) {
+ $i = 0;
+ $skinX = $rt_compare($par1, ($skinX + 140 | 0) - 10 | 0);
+ while (true) {
+ if ($i >= $this.$slotsVisible)
+ break a;
+ if (($i + $this.$scrollPos | 0) < $this.$dropDownOptions.data.length && $this.$selectedSlot != ($i + $this.$scrollPos | 0) && $skinY >= 0 && $skinX < 0) {
+ $par1 = $par3 + ($i * 10 | 0) | 0;
+ if ($par2 >= ($par1 + 5 | 0) && $par2 < ($par1 + 15 | 0) && $this.$selectedSlot != ($i + $this.$scrollPos | 0)) {
+ $this.$selectedSlot = $i + $this.$scrollPos | 0;
+ $this.$dropDownOpen = 0;
+ $this.$dragging = 0;
+ }
+ }
+ $i = $i + 1 | 0;
+ }
+ }
+ }
+ }
+ return;
+ default: $rt_invalidPointer();
+ }}
+ $rt_nativeThread().push($this, $par1, $par2, $par3, $skinX, $skinY, $skinWidth, $skinHeight, $i, $ptr);
+}
+function nle_GuiScreenEditProfile__clinit_() {
+ var var$1, var$2, var$3;
+ var$1 = new nle_TextureLocation;
+ var$1.$path = $rt_s(442);
+ var$1.$glObject = (-1);
+ ju_ArrayList_add(nle_TextureLocation_locations, var$1);
+ nle_GuiScreenEditProfile_gui = var$1;
+ var$2 = $rt_createArray(jl_String, 35);
+ var$3 = var$2.data;
+ var$3[0] = $rt_s(443);
+ var$3[1] = $rt_s(444);
+ var$3[2] = $rt_s(445);
+ var$3[3] = $rt_s(446);
+ var$3[4] = $rt_s(447);
+ var$3[5] = $rt_s(448);
+ var$3[6] = $rt_s(449);
+ var$3[7] = $rt_s(450);
+ var$3[8] = $rt_s(451);
+ var$3[9] = $rt_s(452);
+ var$3[10] = $rt_s(453);
+ var$3[11] = $rt_s(454);
+ var$3[12] = $rt_s(455);
+ var$3[13] = $rt_s(456);
+ var$3[14] = $rt_s(457);
+ var$3[15] = $rt_s(458);
+ var$3[16] = $rt_s(459);
+ var$3[17] = $rt_s(460);
+ var$3[18] = $rt_s(461);
+ var$3[19] = $rt_s(462);
+ var$3[20] = $rt_s(463);
+ var$3[21] = $rt_s(464);
+ var$3[22] = $rt_s(465);
+ var$3[23] = $rt_s(466);
+ var$3[24] = $rt_s(467);
+ var$3[25] = $rt_s(468);
+ var$3[26] = $rt_s(469);
+ var$3[27] = $rt_s(470);
+ var$3[28] = $rt_s(471);
+ var$3[29] = $rt_s(472);
+ var$3[30] = $rt_s(473);
+ var$3[31] = $rt_s(474);
+ var$3[32] = $rt_s(475);
+ var$3[33] = $rt_s(476);
+ var$3[34] = $rt_s(477);
+ nle_GuiScreenEditProfile_defaultOptions = var$2;
+}
+function ji_ByteArrayOutputStream() {
+ var a = this; ji_OutputStream.call(a);
+ a.$buf1 = null;
+ a.$count1 = 0;
+}
+function ji_ByteArrayOutputStream__init_0() {
+ var var_0 = new ji_ByteArrayOutputStream();
+ ji_ByteArrayOutputStream__init_(var_0);
+ return var_0;
+}
+function ji_ByteArrayOutputStream__init_($this) {
+ $this.$buf1 = $rt_createByteArray(32);
+}
+function ji_ByteArrayOutputStream_write($this, $b) {
+ var var$2, var$3;
+ ji_ByteArrayOutputStream_ensureCapacity($this, $this.$count1 + 1 | 0);
+ var$2 = $this.$buf1.data;
+ var$3 = $this.$count1;
+ $this.$count1 = var$3 + 1 | 0;
+ var$2[var$3] = $b << 24 >> 24;
+}
+function ji_ByteArrayOutputStream_write0($this, $b, $off, $len) {
+ var $i, var$5, var$6, var$7, var$8;
+ ji_ByteArrayOutputStream_ensureCapacity($this, $this.$count1 + $len | 0);
+ $i = 0;
+ while ($i < $len) {
+ var$5 = $b.data;
+ var$6 = $this.$buf1.data;
+ var$7 = $this.$count1;
+ $this.$count1 = var$7 + 1 | 0;
+ var$8 = $off + 1 | 0;
+ var$6[var$7] = var$5[$off];
+ $i = $i + 1 | 0;
+ $off = var$8;
+ }
+}
+function ji_ByteArrayOutputStream_ensureCapacity($this, $capacity) {
+ var var$2;
+ if ($this.$buf1.data.length < $capacity) {
+ var$2 = ($this.$buf1.data.length * 3 | 0) / 2 | 0;
+ if ($capacity > var$2)
+ var$2 = $capacity;
+ $this.$buf1 = ju_Arrays_copyOf0($this.$buf1, var$2);
+ }
+}
+function ji_ByteArrayOutputStream_toByteArray($this) {
+ return ju_Arrays_copyOf0($this.$buf1, $this.$count1);
+}
+function ji_ByteArrayOutputStream_reset($this) {
+ $this.$count1 = 0;
+}
+function ji_DataOutput() {
+}
+function ji_DataOutputStream() {
+ var a = this; ji_FilterOutputStream.call(a);
+ a.$written = 0;
+ a.$buff0 = null;
+}
+function ji_DataOutputStream__init_(var_0) {
+ var var_1 = new ji_DataOutputStream();
+ ji_DataOutputStream__init_0(var_1, var_0);
+ return var_1;
+}
+function ji_DataOutputStream__init_0($this, $out) {
+ $this.$out = $out;
+ $this.$buff0 = $rt_createByteArray(8);
+}
+function ji_DataOutputStream_write($this, $buffer, $offset, $count) {
+ var var$4;
+ if ($buffer !== null) {
+ $this.$out.$write2($buffer, $offset, $count);
+ $this.$written = $this.$written + $count | 0;
+ return;
+ }
+ var$4 = new jl_NullPointerException;
+ var$4.$suppressionEnabled = 1;
+ var$4.$writableStackTrace = 1;
+ $rt_throw(var$4);
+}
+function ji_DataOutputStream_write0($this, $oneByte) {
+ $this.$out.$write0($oneByte);
+ $this.$written = $this.$written + 1 | 0;
+}
+function ji_DataOutputStream_writeBoolean($this, $val) {
+ $this.$out.$write0(!$val ? 0 : 1);
+ $this.$written = $this.$written + 1 | 0;
+}
+function ji_DataOutputStream_writeByte($this, $val) {
+ $this.$out.$write0($val);
+ $this.$written = $this.$written + 1 | 0;
+}
+function ji_DataOutputStream_writeChars($this, $str) {
+ var $newBytes, var$3, $index, $newIndex, var$6;
+ $newBytes = $rt_createByteArray($str.$characters.data.length * 2 | 0);
+ var$3 = $newBytes.data;
+ $index = 0;
+ while ($index < $str.$characters.data.length) {
+ $newIndex = !$index ? $index : $index * 2 | 0;
+ var$3[$newIndex] = jl_String_charAt($str, $index) >> 8 << 24 >> 24;
+ var$3[$newIndex + 1 | 0] = jl_String_charAt($str, $index) << 24 >> 24;
+ $index = $index + 1 | 0;
+ }
+ $str = $this.$out;
+ var$6 = var$3.length;
+ $str.$write2($newBytes, 0, var$6);
+ $this.$written = $this.$written + var$6 | 0;
+}
+function ji_DataOutputStream_writeDouble($this, $val) {
+ ji_DataOutputStream_writeLong($this, $rt_doubleToLongBits($val));
+}
+function ji_DataOutputStream_writeFloat($this, $val) {
+ ji_DataOutputStream_writeInt($this, $rt_floatToIntBits($val));
+}
+function ji_DataOutputStream_writeInt($this, $val) {
+ $this.$buff0.data[0] = $val >> 24 << 24 >> 24;
+ $this.$buff0.data[1] = $val >> 16 << 24 >> 24;
+ $this.$buff0.data[2] = $val >> 8 << 24 >> 24;
+ $this.$buff0.data[3] = $val << 24 >> 24;
+ $this.$out.$write2($this.$buff0, 0, 4);
+ $this.$written = $this.$written + 4 | 0;
+}
+function ji_DataOutputStream_writeLong($this, $val) {
+ $this.$buff0.data[0] = Long_shr($val, 56).lo << 24 >> 24;
+ $this.$buff0.data[1] = Long_shr($val, 48).lo << 24 >> 24;
+ $this.$buff0.data[2] = Long_shr($val, 40).lo << 24 >> 24;
+ $this.$buff0.data[3] = $val.hi << 24 >> 24;
+ $this.$buff0.data[4] = Long_shr($val, 24).lo << 24 >> 24;
+ $this.$buff0.data[5] = Long_shr($val, 16).lo << 24 >> 24;
+ $this.$buff0.data[6] = Long_shr($val, 8).lo << 24 >> 24;
+ $this.$buff0.data[7] = $val.lo << 24 >> 24;
+ $this.$out.$write2($this.$buff0, 0, 8);
+ $this.$written = $this.$written + 8 | 0;
+}
+function ji_DataOutputStream_writeShort($this, $val) {
+ $this.$buff0.data[0] = $val >> 8 << 24 >> 24;
+ $this.$buff0.data[1] = $val << 24 >> 24;
+ $this.$out.$write2($this.$buff0, 0, 2);
+ $this.$written = $this.$written + 2 | 0;
+}
+function ji_DataOutputStream_writeShortToBuffer($this, $val, $buffer, $offset) {
+ var var$4;
+ $buffer = $buffer.data;
+ var$4 = $offset + 1 | 0;
+ $buffer[$offset] = $val >> 8 << 24 >> 24;
+ $offset = var$4 + 1 | 0;
+ $buffer[var$4] = $val << 24 >> 24;
+ return $offset;
+}
+function ji_DataOutputStream_writeUTF($this, $str) {
+ var $utfCount, var$3, $buffer, var$5;
+ $utfCount = ji_DataOutputStream_countUTFBytes($this, $str);
+ if (Long_gt($utfCount, Long_fromInt(65535))) {
+ $str = new ji_IOException;
+ $str.$suppressionEnabled = 1;
+ $str.$writableStackTrace = 1;
+ $str.$message = $rt_s(478);
+ $rt_throw($str);
+ }
+ var$3 = $utfCount.lo;
+ $buffer = $rt_createByteArray(var$3 + 2 | 0);
+ var$5 = $buffer.data;
+ var$5[0] = var$3 >> 8 << 24 >> 24;
+ var$5[1] = var$3 << 24 >> 24;
+ var$3 = ji_DataOutputStream_writeUTFBytesToBuffer($this, $str, $buffer, 2);
+ $this.$out.$write2($buffer, 0, var$3);
+ $this.$written = $this.$written + var$3 | 0;
+}
+function ji_DataOutputStream_countUTFBytes($this, $str) {
+ var $utfCount, $length, $i, $charValue;
+ $utfCount = 0;
+ $length = $str.$characters.data.length;
+ $i = 0;
+ while ($i < $length) {
+ $charValue = jl_String_charAt($str, $i);
+ $utfCount = $charValue > 0 && $charValue <= 127 ? $utfCount + 1 | 0 : $charValue > 2047 ? $utfCount + 3 | 0 : $utfCount + 2 | 0;
+ $i = $i + 1 | 0;
+ }
+ return Long_fromInt($utfCount);
+}
+function ji_DataOutputStream_writeUTFBytesToBuffer($this, $str, $buffer, $offset) {
+ var $length, $i, $charValue, var$7, var$8, var$9, var$10;
+ $length = $str.$characters.data.length;
+ $i = 0;
+ while ($i < $length) {
+ $charValue = jl_String_charAt($str, $i);
+ if ($charValue > 0 && $charValue <= 127) {
+ var$7 = $buffer.data;
+ var$8 = $offset + 1 | 0;
+ var$7[$offset] = $charValue << 24 >> 24;
+ } else if ($charValue <= 2047) {
+ var$7 = $buffer.data;
+ var$9 = $offset + 1 | 0;
+ var$7[$offset] = (192 | 31 & $charValue >> 6) << 24 >> 24;
+ var$8 = var$9 + 1 | 0;
+ var$7[var$9] = (128 | 63 & $charValue) << 24 >> 24;
+ } else {
+ var$7 = $buffer.data;
+ var$8 = $offset + 1 | 0;
+ var$7[$offset] = (224 | 15 & $charValue >> 12) << 24 >> 24;
+ var$10 = var$8 + 1 | 0;
+ var$7[var$8] = (128 | 63 & $charValue >> 6) << 24 >> 24;
+ var$8 = var$10 + 1 | 0;
+ var$7[var$10] = (128 | 63 & $charValue) << 24 >> 24;
+ }
+ $i = $i + 1 | 0;
+ $offset = var$8;
+ }
+ return $offset;
+}
+function nleg_GLObjectMap() {
+ var a = this; jl_Object.call(a);
+ a.$values = null;
+ a.$size3 = 0;
+ a.$insertIndex = 0;
+ a.$allocatedObjects = 0;
+}
+function nleg_GLObjectMap_register($this, $obj) {
+ var $start;
+ $start = $this.$insertIndex;
+ while (true) {
+ $this.$insertIndex = $this.$insertIndex + 1 | 0;
+ if ($this.$insertIndex >= $this.$size3)
+ $this.$insertIndex = 0;
+ if ($this.$insertIndex == $start)
+ break;
+ if ($this.$values.data[$this.$insertIndex] !== null)
+ continue;
+ else {
+ $this.$values.data[$this.$insertIndex] = $obj;
+ $this.$allocatedObjects = $this.$allocatedObjects + 1 | 0;
+ return $this.$insertIndex;
+ }
+ }
+ nleg_GLObjectMap_resize($this);
+ return nleg_GLObjectMap_register($this, $obj);
+}
+function nleg_GLObjectMap_free($this, $obj) {
+ var $ret;
+ if ($obj < $this.$size3 && $obj >= 0) {
+ $ret = $this.$values.data[$obj];
+ $this.$values.data[$obj] = null;
+ $this.$allocatedObjects = $this.$allocatedObjects - 1 | 0;
+ return $ret;
+ }
+ return null;
+}
+function nleg_GLObjectMap_get($this, $obj) {
+ if ($obj < $this.$size3 && $obj >= 0)
+ return $this.$values.data[$obj];
+ return null;
+}
+function nleg_GLObjectMap_resize($this) {
+ var $oldSize, $oldValues;
+ $oldSize = $this.$size3;
+ $this.$size3 = $this.$size3 + ($this.$size3 / 2 | 0) | 0;
+ $oldValues = $this.$values;
+ $this.$values = $rt_createArray(jl_Object, $this.$size3);
+ jl_System_arraycopy($oldValues, 0, $this.$values, 0, $oldSize);
+}
+function nlegv_Matrix() {
+ jl_Object.call(this);
+}
+function nlegv_Matrix__init_() {
+ var var_0 = new nlegv_Matrix();
+ nlegv_Matrix__init_0(var_0);
+ return var_0;
+}
+function nlegv_Matrix__init_0($this) {
+ return;
+}
+function nlegv_Matrix4f() {
+ var a = this; nlegv_Matrix.call(a);
+ a.$m00 = 0.0;
+ a.$m01 = 0.0;
+ a.$m02 = 0.0;
+ a.$m03 = 0.0;
+ a.$m10 = 0.0;
+ a.$m11 = 0.0;
+ a.$m12 = 0.0;
+ a.$m13 = 0.0;
+ a.$m20 = 0.0;
+ a.$m21 = 0.0;
+ a.$m22 = 0.0;
+ a.$m23 = 0.0;
+ a.$m30 = 0.0;
+ a.$m31 = 0.0;
+ a.$m32 = 0.0;
+ a.$m33 = 0.0;
+}
+function nlegv_Matrix4f__init_0() {
+ var var_0 = new nlegv_Matrix4f();
+ nlegv_Matrix4f__init_(var_0);
+ return var_0;
+}
+function nlegv_Matrix4f__init_($this) {
+ nlegv_Matrix4f_setIdentity($this);
+}
+function nlegv_Matrix4f_setIdentity0($this) {
+ return nlegv_Matrix4f_setIdentity($this);
+}
+function nlegv_Matrix4f_setIdentity($m) {
+ $m.$m00 = 1.0;
+ $m.$m01 = 0.0;
+ $m.$m02 = 0.0;
+ $m.$m03 = 0.0;
+ $m.$m10 = 0.0;
+ $m.$m11 = 1.0;
+ $m.$m12 = 0.0;
+ $m.$m13 = 0.0;
+ $m.$m20 = 0.0;
+ $m.$m21 = 0.0;
+ $m.$m22 = 1.0;
+ $m.$m23 = 0.0;
+ $m.$m30 = 0.0;
+ $m.$m31 = 0.0;
+ $m.$m32 = 0.0;
+ $m.$m33 = 1.0;
+ return $m;
+}
+function nlegv_Matrix4f_setZero0($this) {
+ return nlegv_Matrix4f_setZero($this);
+}
+function nlegv_Matrix4f_setZero($m) {
+ $m.$m00 = 0.0;
+ $m.$m01 = 0.0;
+ $m.$m02 = 0.0;
+ $m.$m03 = 0.0;
+ $m.$m10 = 0.0;
+ $m.$m11 = 0.0;
+ $m.$m12 = 0.0;
+ $m.$m13 = 0.0;
+ $m.$m20 = 0.0;
+ $m.$m21 = 0.0;
+ $m.$m22 = 0.0;
+ $m.$m23 = 0.0;
+ $m.$m30 = 0.0;
+ $m.$m31 = 0.0;
+ $m.$m32 = 0.0;
+ $m.$m33 = 0.0;
+ return $m;
+}
+function nlegv_Matrix4f_load1($this, $src) {
+ return nlegv_Matrix4f_load($src, $this);
+}
+function nlegv_Matrix4f_load($src, $dest) {
+ if ($dest === null) {
+ $dest = new nlegv_Matrix4f;
+ nlegv_Matrix4f_setIdentity($dest);
+ }
+ $dest.$m00 = $src.$m00;
+ $dest.$m01 = $src.$m01;
+ $dest.$m02 = $src.$m02;
+ $dest.$m03 = $src.$m03;
+ $dest.$m10 = $src.$m10;
+ $dest.$m11 = $src.$m11;
+ $dest.$m12 = $src.$m12;
+ $dest.$m13 = $src.$m13;
+ $dest.$m20 = $src.$m20;
+ $dest.$m21 = $src.$m21;
+ $dest.$m22 = $src.$m22;
+ $dest.$m23 = $src.$m23;
+ $dest.$m30 = $src.$m30;
+ $dest.$m31 = $src.$m31;
+ $dest.$m32 = $src.$m32;
+ $dest.$m33 = $src.$m33;
+ return $dest;
+}
+function nlegv_Matrix4f_load0($this, $buf) {
+ $this.$m00 = jn_FloatBufferImpl_get($buf);
+ $this.$m01 = jn_FloatBufferImpl_get($buf);
+ $this.$m02 = jn_FloatBufferImpl_get($buf);
+ $this.$m03 = jn_FloatBufferImpl_get($buf);
+ $this.$m10 = jn_FloatBufferImpl_get($buf);
+ $this.$m11 = jn_FloatBufferImpl_get($buf);
+ $this.$m12 = jn_FloatBufferImpl_get($buf);
+ $this.$m13 = jn_FloatBufferImpl_get($buf);
+ $this.$m20 = jn_FloatBufferImpl_get($buf);
+ $this.$m21 = jn_FloatBufferImpl_get($buf);
+ $this.$m22 = jn_FloatBufferImpl_get($buf);
+ $this.$m23 = jn_FloatBufferImpl_get($buf);
+ $this.$m30 = jn_FloatBufferImpl_get($buf);
+ $this.$m31 = jn_FloatBufferImpl_get($buf);
+ $this.$m32 = jn_FloatBufferImpl_get($buf);
+ $this.$m33 = jn_FloatBufferImpl_get($buf);
+ return $this;
+}
+function nlegv_Matrix4f_store($this, $buf) {
+ jn_FloatBufferImpl_put($buf, $this.$m00);
+ jn_FloatBufferImpl_put($buf, $this.$m01);
+ jn_FloatBufferImpl_put($buf, $this.$m02);
+ jn_FloatBufferImpl_put($buf, $this.$m03);
+ jn_FloatBufferImpl_put($buf, $this.$m10);
+ jn_FloatBufferImpl_put($buf, $this.$m11);
+ jn_FloatBufferImpl_put($buf, $this.$m12);
+ jn_FloatBufferImpl_put($buf, $this.$m13);
+ jn_FloatBufferImpl_put($buf, $this.$m20);
+ jn_FloatBufferImpl_put($buf, $this.$m21);
+ jn_FloatBufferImpl_put($buf, $this.$m22);
+ jn_FloatBufferImpl_put($buf, $this.$m23);
+ jn_FloatBufferImpl_put($buf, $this.$m30);
+ jn_FloatBufferImpl_put($buf, $this.$m31);
+ jn_FloatBufferImpl_put($buf, $this.$m32);
+ jn_FloatBufferImpl_put($buf, $this.$m33);
+ return $this;
+}
+function nlegv_Matrix4f_store0($this, $buf) {
+ $buf = $buf.data;
+ $buf[0] = $this.$m00;
+ $buf[1] = $this.$m01;
+ $buf[2] = $this.$m02;
+ $buf[3] = $this.$m03;
+ $buf[4] = $this.$m10;
+ $buf[5] = $this.$m11;
+ $buf[6] = $this.$m12;
+ $buf[7] = $this.$m13;
+ $buf[8] = $this.$m20;
+ $buf[9] = $this.$m21;
+ $buf[10] = $this.$m22;
+ $buf[11] = $this.$m23;
+ $buf[12] = $this.$m30;
+ $buf[13] = $this.$m31;
+ $buf[14] = $this.$m32;
+ $buf[15] = $this.$m33;
+ return $this;
+}
+function nlegv_Matrix4f_mul($left, $right, $dest) {
+ var $m00, $m01, $m02, $m03, $m10, $m11, $m12, $m13, $m20, $m21, $m22, $m23, $m30, $m31, $m32, $m33;
+ if ($dest === null) {
+ $dest = new nlegv_Matrix4f;
+ nlegv_Matrix4f_setIdentity($dest);
+ }
+ $m00 = $left.$m00 * $right.$m00 + $left.$m10 * $right.$m01 + $left.$m20 * $right.$m02 + $left.$m30 * $right.$m03;
+ $m01 = $left.$m01 * $right.$m00 + $left.$m11 * $right.$m01 + $left.$m21 * $right.$m02 + $left.$m31 * $right.$m03;
+ $m02 = $left.$m02 * $right.$m00 + $left.$m12 * $right.$m01 + $left.$m22 * $right.$m02 + $left.$m32 * $right.$m03;
+ $m03 = $left.$m03 * $right.$m00 + $left.$m13 * $right.$m01 + $left.$m23 * $right.$m02 + $left.$m33 * $right.$m03;
+ $m10 = $left.$m00 * $right.$m10 + $left.$m10 * $right.$m11 + $left.$m20 * $right.$m12 + $left.$m30 * $right.$m13;
+ $m11 = $left.$m01 * $right.$m10 + $left.$m11 * $right.$m11 + $left.$m21 * $right.$m12 + $left.$m31 * $right.$m13;
+ $m12 = $left.$m02 * $right.$m10 + $left.$m12 * $right.$m11 + $left.$m22 * $right.$m12 + $left.$m32 * $right.$m13;
+ $m13 = $left.$m03 * $right.$m10 + $left.$m13 * $right.$m11 + $left.$m23 * $right.$m12 + $left.$m33 * $right.$m13;
+ $m20 = $left.$m00 * $right.$m20 + $left.$m10 * $right.$m21 + $left.$m20 * $right.$m22 + $left.$m30 * $right.$m23;
+ $m21 = $left.$m01 * $right.$m20 + $left.$m11 * $right.$m21 + $left.$m21 * $right.$m22 + $left.$m31 * $right.$m23;
+ $m22 = $left.$m02 * $right.$m20 + $left.$m12 * $right.$m21 + $left.$m22 * $right.$m22 + $left.$m32 * $right.$m23;
+ $m23 = $left.$m03 * $right.$m20 + $left.$m13 * $right.$m21 + $left.$m23 * $right.$m22 + $left.$m33 * $right.$m23;
+ $m30 = $left.$m00 * $right.$m30 + $left.$m10 * $right.$m31 + $left.$m20 * $right.$m32 + $left.$m30 * $right.$m33;
+ $m31 = $left.$m01 * $right.$m30 + $left.$m11 * $right.$m31 + $left.$m21 * $right.$m32 + $left.$m31 * $right.$m33;
+ $m32 = $left.$m02 * $right.$m30 + $left.$m12 * $right.$m31 + $left.$m22 * $right.$m32 + $left.$m32 * $right.$m33;
+ $m33 = $left.$m03 * $right.$m30 + $left.$m13 * $right.$m31 + $left.$m23 * $right.$m32 + $left.$m33 * $right.$m33;
+ $dest.$m00 = $m00;
+ $dest.$m01 = $m01;
+ $dest.$m02 = $m02;
+ $dest.$m03 = $m03;
+ $dest.$m10 = $m10;
+ $dest.$m11 = $m11;
+ $dest.$m12 = $m12;
+ $dest.$m13 = $m13;
+ $dest.$m20 = $m20;
+ $dest.$m21 = $m21;
+ $dest.$m22 = $m22;
+ $dest.$m23 = $m23;
+ $dest.$m30 = $m30;
+ $dest.$m31 = $m31;
+ $dest.$m32 = $m32;
+ $dest.$m33 = $m33;
+ return $dest;
+}
+function nlegv_Matrix4f_transform($left, $right, $dest) {
+ var $x, $y, $z, $w;
+ if ($dest === null)
+ $dest = new nlegv_Vector4f;
+ $x = $left.$m00 * $right.$x0 + $left.$m10 * $right.$y0 + $left.$m20 * $right.$z0 + $left.$m30 * $right.$w;
+ $y = $left.$m01 * $right.$x0 + $left.$m11 * $right.$y0 + $left.$m21 * $right.$z0 + $left.$m31 * $right.$w;
+ $z = $left.$m02 * $right.$x0 + $left.$m12 * $right.$y0 + $left.$m22 * $right.$z0 + $left.$m32 * $right.$w;
+ $w = $left.$m03 * $right.$x0 + $left.$m13 * $right.$y0 + $left.$m23 * $right.$z0 + $left.$m33 * $right.$w;
+ $dest.$x0 = $x;
+ $dest.$y0 = $y;
+ $dest.$z0 = $z;
+ $dest.$w = $w;
+ return $dest;
+}
+function nlegv_Matrix4f_transpose0($this) {
+ return nlegv_Matrix4f_transpose($this, $this);
+}
+function nlegv_Matrix4f_translate0($this, $vec) {
+ return nlegv_Matrix4f_translate($vec, $this, $this);
+}
+function nlegv_Matrix4f_scale0($this, $vec) {
+ return nlegv_Matrix4f_scale($vec, $this, $this);
+}
+function nlegv_Matrix4f_scale($vec, $src, $dest) {
+ if ($dest === null) {
+ $dest = new nlegv_Matrix4f;
+ nlegv_Matrix4f_setIdentity($dest);
+ }
+ $dest.$m00 = $src.$m00 * $vec.$x;
+ $dest.$m01 = $src.$m01 * $vec.$x;
+ $dest.$m02 = $src.$m02 * $vec.$x;
+ $dest.$m03 = $src.$m03 * $vec.$x;
+ $dest.$m10 = $src.$m10 * $vec.$y;
+ $dest.$m11 = $src.$m11 * $vec.$y;
+ $dest.$m12 = $src.$m12 * $vec.$y;
+ $dest.$m13 = $src.$m13 * $vec.$y;
+ $dest.$m20 = $src.$m20 * $vec.$z;
+ $dest.$m21 = $src.$m21 * $vec.$z;
+ $dest.$m22 = $src.$m22 * $vec.$z;
+ $dest.$m23 = $src.$m23 * $vec.$z;
+ return $dest;
+}
+function nlegv_Matrix4f_rotate0($this, $angle, $axis) {
+ return nlegv_Matrix4f_rotate($angle, $axis, $this, $this);
+}
+function nlegv_Matrix4f_rotate1($this, $angle, $axis, $dest) {
+ return nlegv_Matrix4f_rotate($angle, $axis, $this, $dest);
+}
+function nlegv_Matrix4f_rotate($angle, $axis, $src, $dest) {
+ var var$5, $c, $s, $oneminusc, $xy, $yz, $xz, $xs, $ys, $zs, $f00, $f01, $t13, $f02, $f10, $f11, $f12, $f20, $f21, $f22, $t00, $t01, $t02, $t03, $t10, $t11, $t12;
+ if ($dest === null) {
+ $dest = new nlegv_Matrix4f;
+ nlegv_Matrix4f_setIdentity($dest);
+ }
+ var$5 = $angle;
+ $c = jl_Math_cos(var$5);
+ $s = jl_Math_sin(var$5);
+ $oneminusc = 1.0 - $c;
+ $xy = $axis.$x * $axis.$y;
+ $yz = $axis.$y * $axis.$z;
+ $xz = $axis.$x * $axis.$z;
+ $xs = $axis.$x * $s;
+ $ys = $axis.$y * $s;
+ $zs = $axis.$z * $s;
+ $f00 = $axis.$x * $axis.$x * $oneminusc + $c;
+ $angle = $xy * $oneminusc;
+ $f01 = $angle + $zs;
+ $t13 = $xz * $oneminusc;
+ $f02 = $t13 - $ys;
+ $f10 = $angle - $zs;
+ $f11 = $axis.$y * $axis.$y * $oneminusc + $c;
+ $angle = $yz * $oneminusc;
+ $f12 = $angle + $xs;
+ $f20 = $t13 + $ys;
+ $f21 = $angle - $xs;
+ $f22 = $axis.$z * $axis.$z * $oneminusc + $c;
+ $t00 = $src.$m00 * $f00 + $src.$m10 * $f01 + $src.$m20 * $f02;
+ $t01 = $src.$m01 * $f00 + $src.$m11 * $f01 + $src.$m21 * $f02;
+ $t02 = $src.$m02 * $f00 + $src.$m12 * $f01 + $src.$m22 * $f02;
+ $t03 = $src.$m03 * $f00 + $src.$m13 * $f01 + $src.$m23 * $f02;
+ $t10 = $src.$m00 * $f10 + $src.$m10 * $f11 + $src.$m20 * $f12;
+ $t11 = $src.$m01 * $f10 + $src.$m11 * $f11 + $src.$m21 * $f12;
+ $t12 = $src.$m02 * $f10 + $src.$m12 * $f11 + $src.$m22 * $f12;
+ $t13 = $src.$m03 * $f10 + $src.$m13 * $f11 + $src.$m23 * $f12;
+ $dest.$m20 = $src.$m00 * $f20 + $src.$m10 * $f21 + $src.$m20 * $f22;
+ $dest.$m21 = $src.$m01 * $f20 + $src.$m11 * $f21 + $src.$m21 * $f22;
+ $dest.$m22 = $src.$m02 * $f20 + $src.$m12 * $f21 + $src.$m22 * $f22;
+ $dest.$m23 = $src.$m03 * $f20 + $src.$m13 * $f21 + $src.$m23 * $f22;
+ $dest.$m00 = $t00;
+ $dest.$m01 = $t01;
+ $dest.$m02 = $t02;
+ $dest.$m03 = $t03;
+ $dest.$m10 = $t10;
+ $dest.$m11 = $t11;
+ $dest.$m12 = $t12;
+ $dest.$m13 = $t13;
+ return $dest;
+}
+function nlegv_Matrix4f_translate1($this, $vec, $dest) {
+ return nlegv_Matrix4f_translate($vec, $this, $dest);
+}
+function nlegv_Matrix4f_translate($vec, $src, $dest) {
+ if ($dest === null) {
+ $dest = new nlegv_Matrix4f;
+ nlegv_Matrix4f_setIdentity($dest);
+ }
+ $dest.$m30 = $dest.$m30 + $src.$m00 * $vec.$x + $src.$m10 * $vec.$y + $src.$m20 * $vec.$z;
+ $dest.$m31 = $dest.$m31 + $src.$m01 * $vec.$x + $src.$m11 * $vec.$y + $src.$m21 * $vec.$z;
+ $dest.$m32 = $dest.$m32 + $src.$m02 * $vec.$x + $src.$m12 * $vec.$y + $src.$m22 * $vec.$z;
+ $dest.$m33 = $dest.$m33 + $src.$m03 * $vec.$x + $src.$m13 * $vec.$y + $src.$m23 * $vec.$z;
+ return $dest;
+}
+function nlegv_Matrix4f_transpose1($this, $dest) {
+ return nlegv_Matrix4f_transpose($this, $dest);
+}
+function nlegv_Matrix4f_transpose($src, $dest) {
+ var $m00, $m01, $m02, $m03, $m10, $m11, $m12, $m13, $m20, $m21, $m22, $m23, $m30, $m31, $m32, $m33;
+ if ($dest === null) {
+ $dest = new nlegv_Matrix4f;
+ nlegv_Matrix4f_setIdentity($dest);
+ }
+ $m00 = $src.$m00;
+ $m01 = $src.$m10;
+ $m02 = $src.$m20;
+ $m03 = $src.$m30;
+ $m10 = $src.$m01;
+ $m11 = $src.$m11;
+ $m12 = $src.$m21;
+ $m13 = $src.$m31;
+ $m20 = $src.$m02;
+ $m21 = $src.$m12;
+ $m22 = $src.$m22;
+ $m23 = $src.$m32;
+ $m30 = $src.$m03;
+ $m31 = $src.$m13;
+ $m32 = $src.$m23;
+ $m33 = $src.$m33;
+ $dest.$m00 = $m00;
+ $dest.$m01 = $m01;
+ $dest.$m02 = $m02;
+ $dest.$m03 = $m03;
+ $dest.$m10 = $m10;
+ $dest.$m11 = $m11;
+ $dest.$m12 = $m12;
+ $dest.$m13 = $m13;
+ $dest.$m20 = $m20;
+ $dest.$m21 = $m21;
+ $dest.$m22 = $m22;
+ $dest.$m23 = $m23;
+ $dest.$m30 = $m30;
+ $dest.$m31 = $m31;
+ $dest.$m32 = $m32;
+ $dest.$m33 = $m33;
+ return $dest;
+}
+function nlegv_Matrix4f_determinant($this) {
+ return $this.$m00 * ($this.$m11 * $this.$m22 * $this.$m33 + $this.$m12 * $this.$m23 * $this.$m31 + $this.$m13 * $this.$m21 * $this.$m32 - $this.$m13 * $this.$m22 * $this.$m31 - $this.$m11 * $this.$m23 * $this.$m32 - $this.$m12 * $this.$m21 * $this.$m33) - $this.$m01 * ($this.$m10 * $this.$m22 * $this.$m33 + $this.$m12 * $this.$m23 * $this.$m30 + $this.$m13 * $this.$m20 * $this.$m32 - $this.$m13 * $this.$m22 * $this.$m30 - $this.$m10 * $this.$m23 * $this.$m32 - $this.$m12 * $this.$m20 * $this.$m33) + $this.$m02
+ * ($this.$m10 * $this.$m21 * $this.$m33 + $this.$m11 * $this.$m23 * $this.$m30 + $this.$m13 * $this.$m20 * $this.$m31 - $this.$m13 * $this.$m21 * $this.$m30 - $this.$m10 * $this.$m23 * $this.$m31 - $this.$m11 * $this.$m20 * $this.$m33) - $this.$m03 * ($this.$m10 * $this.$m21 * $this.$m32 + $this.$m11 * $this.$m22 * $this.$m30 + $this.$m12 * $this.$m20 * $this.$m31 - $this.$m12 * $this.$m21 * $this.$m30 - $this.$m10 * $this.$m22 * $this.$m31 - $this.$m11 * $this.$m20 * $this.$m32);
+}
+function nlegv_Matrix4f_determinant3x3($t00, $t01, $t02, $t10, $t11, $t12, $t20, $t21, $t22) {
+ return $t00 * ($t11 * $t22 - $t12 * $t21) + $t01 * ($t12 * $t20 - $t10 * $t22) + $t02 * ($t10 * $t21 - $t11 * $t20);
+}
+function nlegv_Matrix4f_invert0($this) {
+ return nlegv_Matrix4f_invert($this, $this);
+}
+function nlegv_Matrix4f_invert($src, $dest) {
+ var $determinant, $determinant_inv, $t03, $t32, $t33, var$8, var$9, var$10, var$11, var$12, $t00, $t01, $t02, var$16, var$17, $t10, $t11, $t12, $t13, $t20, $t21, $t22, $t23, $t30, $t31;
+ $determinant = nlegv_Matrix4f_determinant($src);
+ if ($determinant === 0.0)
+ return null;
+ if ($dest === null) {
+ $dest = new nlegv_Matrix4f;
+ nlegv_Matrix__init_0($dest);
+ nlegv_Matrix4f_setIdentity0($dest);
+ }
+ $determinant_inv = 1.0 / $determinant;
+ $determinant = $src.$m11;
+ $t03 = $src.$m12;
+ $t32 = $src.$m13;
+ $t33 = $src.$m21;
+ var$8 = $src.$m22;
+ var$9 = $src.$m23;
+ var$10 = $src.$m31;
+ var$11 = $src.$m32;
+ var$12 = $src.$m33;
+ $t00 = $determinant * (var$8 * var$12 - var$9 * var$11) + $t03 * (var$9 * var$10 - $t33 * var$12) + $t32 * ($t33 * var$11 - var$8 * var$10);
+ $determinant = $src.$m10;
+ $t03 = $src.$m12;
+ $t32 = $src.$m13;
+ $t33 = $src.$m20;
+ var$8 = $src.$m22;
+ var$9 = $src.$m23;
+ var$10 = $src.$m30;
+ var$11 = $src.$m32;
+ var$12 = $src.$m33;
+ $t01 = -($determinant * (var$8 * var$12 - var$9 * var$11) + $t03 * (var$9 * var$10 - $t33 * var$12) + $t32 * ($t33 * var$11 - var$8 * var$10));
+ $determinant = $src.$m10;
+ $t03 = $src.$m11;
+ $t32 = $src.$m13;
+ $t33 = $src.$m20;
+ var$8 = $src.$m21;
+ var$9 = $src.$m23;
+ var$10 = $src.$m30;
+ var$11 = $src.$m31;
+ var$12 = $src.$m33;
+ $t02 = $determinant * (var$8 * var$12 - var$9 * var$11) + $t03 * (var$9 * var$10 - $t33 * var$12) + $t32 * ($t33 * var$11 - var$8 * var$10);
+ $determinant = $src.$m10;
+ $t03 = $src.$m11;
+ $t32 = $src.$m12;
+ $t33 = $src.$m20;
+ var$8 = $src.$m21;
+ var$9 = $src.$m22;
+ var$10 = $src.$m30;
+ var$11 = $src.$m31;
+ var$12 = $src.$m32;
+ $t03 = -($determinant * (var$8 * var$12 - var$9 * var$11) + $t03 * (var$9 * var$10 - $t33 * var$12) + $t32 * ($t33 * var$11 - var$8 * var$10));
+ $determinant = $src.$m01;
+ $t32 = $src.$m02;
+ var$9 = $src.$m03;
+ var$10 = $src.$m21;
+ var$11 = $src.$m22;
+ var$8 = $src.$m23;
+ var$12 = $src.$m31;
+ var$16 = $src.$m32;
+ var$17 = $src.$m33;
+ $t10 = -($determinant * (var$11 * var$17 - var$8 * var$16) + $t32 * (var$8 * var$12 - var$10 * var$17) + var$9 * (var$10 * var$16 - var$11 * var$12));
+ $t33 = $src.$m00;
+ var$8 = $src.$m02;
+ var$9 = $src.$m03;
+ var$10 = $src.$m20;
+ var$11 = $src.$m22;
+ var$12 = $src.$m23;
+ var$16 = $src.$m30;
+ var$17 = $src.$m32;
+ $t11 = $src.$m33;
+ $t11 = $t33